solid-panes 4.4.0 → 4.4.1
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 +4 -2
- package/dist/RDFXMLPane.css +70 -0
- package/dist/RDFXMLPane.d.ts +13 -0
- package/dist/RDFXMLPane.d.ts.map +1 -0
- package/dist/RDFXMLPane.js +46 -5
- package/dist/dataContentPane.css +271 -0
- package/dist/dataContentPane.d.ts +14 -0
- package/dist/dataContentPane.d.ts.map +1 -0
- package/dist/dataContentPane.js +68 -101
- package/dist/defaultPane.css +97 -0
- package/dist/defaultPane.d.ts +14 -0
- package/dist/defaultPane.d.ts.map +1 -0
- package/dist/defaultPane.js +9 -2
- package/dist/form/formPane.css +120 -0
- package/dist/form/pane.d.ts +4 -0
- package/dist/form/pane.d.ts.map +1 -0
- package/dist/form/pane.js +120 -54
- package/dist/humanReadablePane.css +129 -0
- package/dist/humanReadablePane.d.ts +13 -0
- package/dist/humanReadablePane.d.ts.map +1 -0
- package/dist/humanReadablePane.js +29 -18
- package/dist/icons/signUp.svg +9 -0
- package/dist/imagePane.css +4 -0
- package/dist/imagePane.d.ts +12 -0
- package/dist/imagePane.d.ts.map +1 -0
- package/dist/imagePane.js +19 -21
- package/dist/internal/internalPane.css +14 -0
- package/dist/internal/internalPane.d.ts +1 -0
- package/dist/internal/internalPane.d.ts.map +1 -1
- package/dist/internal/internalPane.js +5 -6
- package/dist/mainPage/header.js +2 -2
- package/dist/mainPage/index.d.ts +2 -1
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.js +23 -0
- package/dist/mainPage/menu.d.ts.map +1 -1
- package/dist/mainPage/menu.js +29 -2
- package/dist/n3Pane.css +49 -0
- package/dist/n3Pane.d.ts +13 -0
- package/dist/n3Pane.d.ts.map +1 -0
- package/dist/n3Pane.js +36 -5
- package/dist/outline/manager.js +20 -1
- package/dist/pad/padPane.css +6 -2
- package/dist/pad/padPane.js +1 -1
- package/dist/registerPanes.js +8 -8
- package/dist/schedule/schedulePane.css +294 -0
- package/dist/schedule/schedulePane.d.ts +23 -0
- package/dist/schedule/schedulePane.d.ts.map +1 -0
- package/dist/schedule/schedulePane.js +161 -61
- package/dist/social/editProfileDetails.d.ts +3 -3
- package/dist/social/editProfileDetails.d.ts.map +1 -1
- package/dist/social/editProfileDetails.js +222 -127
- package/dist/social/icons.d.ts +2 -0
- package/dist/social/icons.d.ts.map +1 -1
- package/dist/social/icons.js +39 -4
- package/dist/social/socialPane.css +838 -178
- package/dist/social/socialPane.d.ts.map +1 -1
- package/dist/social/socialPane.js +136 -43
- package/dist/social/socialSections.d.ts +11 -0
- package/dist/social/socialSections.d.ts.map +1 -1
- package/dist/social/socialSections.js +138 -62
- package/dist/social/spinner.d.ts +3 -0
- package/dist/social/spinner.d.ts.map +1 -0
- package/dist/social/spinner.js +13 -0
- package/dist/social/triage.d.ts +17 -0
- package/dist/social/triage.d.ts.map +1 -0
- package/dist/social/triage.js +79 -0
- package/dist/solid-panes.js +25772 -9576
- package/dist/solid-panes.js.map +1 -1
- package/dist/solid-panes.min.js +2583 -927
- package/dist/solid-panes.min.js.map +1 -1
- package/dist/{style → styles}/tabbedtab.css +0 -157
- package/dist/styles/utilities.css +5 -0
- package/dist/versionInfo.js +14 -14
- package/package.json +26 -25
- package/dist/icons/signup.png +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
# solid-panes
|
|
2
|
-
|
|
3
2
|
A set of core solid-compatible applets based on solid-ui
|
|
4
3
|
|
|
5
4
|
These are a set of interlinked applications, or parts of applications,
|
|
@@ -115,8 +114,11 @@ I want the menu to have a tiny button on the bottom margin left with an arrow to
|
|
|
115
114
|
|
|
116
115
|
* Raprot mini: instead of this code (index.ts of footer), I want to make use of a new footer web component with the readme: # solid-ui-footer component
|
|
117
116
|
|
|
118
|
-
* Raptor mini: The footer created
|
|
117
|
+
* Raptor mini: The footer created should actually be part of the left side menu only. Should be displayed inside it and should collaps and expand as the menu.
|
|
119
118
|
|
|
120
119
|
* Raptor mini: the footer should completely dissapear when menu folded up.
|
|
121
120
|
|
|
122
121
|
* Raptor mini: Please always keep the footer at the bottom of the menu
|
|
122
|
+
|
|
123
|
+
* GPT-5.4 Model: Add a compatibility shim in the form pane for mixed `ui:Group` plus field typing.
|
|
124
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.rdfxml-pane {
|
|
2
|
+
padding: 1rem;
|
|
3
|
+
border-top: solid 2px var(--color-data-pane-border-top, black);
|
|
4
|
+
border-left: solid 2px var(--color-data-pane-border-top, black);
|
|
5
|
+
border-bottom: solid 2px var(--color-data-pane-border-side, #777);
|
|
6
|
+
border-right: solid 2px var(--color-data-pane-border-side, #777);
|
|
7
|
+
color: var(--color-text-brown, #440);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.rdfxml-pane__source {
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
font-family: monospace;
|
|
16
|
+
font-size: 120%;
|
|
17
|
+
margin: 0;
|
|
18
|
+
white-space: pre;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.rdfxml-pane__line {
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: var(--rdfxml-indent, 0) minmax(max-content, auto);
|
|
24
|
+
align-items: start;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.rdfxml-pane__line-indent {
|
|
28
|
+
display: block;
|
|
29
|
+
width: var(--rdfxml-indent, 0);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rdfxml-pane__line-content {
|
|
33
|
+
white-space: pre;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.rdfxml-pane[data-layout='mobile'] .rdfxml-pane__source {
|
|
37
|
+
overflow-wrap: anywhere;
|
|
38
|
+
word-break: break-word;
|
|
39
|
+
white-space: normal;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.rdfxml-pane[data-layout='mobile'] .rdfxml-pane__line {
|
|
43
|
+
grid-template-columns: var(--rdfxml-indent, 0) minmax(0, 1fr);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rdfxml-pane[data-layout='mobile'] .rdfxml-pane__line-content {
|
|
47
|
+
white-space: pre-wrap;
|
|
48
|
+
overflow-wrap: anywhere;
|
|
49
|
+
word-break: break-word;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (max-width: 576px) {
|
|
54
|
+
.rdfxml-pane__source {
|
|
55
|
+
overflow-wrap: anywhere;
|
|
56
|
+
word-break: break-word;
|
|
57
|
+
white-space: normal;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.rdfxml-pane__line {
|
|
61
|
+
grid-template-columns: var(--rdfxml-indent, 0) minmax(0, 1fr);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.rdfxml-pane__line-content {
|
|
65
|
+
white-space: pre-wrap;
|
|
66
|
+
overflow-wrap: anywhere;
|
|
67
|
+
word-break: break-word;
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DataBrowserContext } from 'pane-registry';
|
|
2
|
+
import type { NamedNode } from 'rdflib';
|
|
3
|
+
import './RDFXMLPane.css';
|
|
4
|
+
type RDFXMLPaneDefinition = {
|
|
5
|
+
icon: string;
|
|
6
|
+
name: string;
|
|
7
|
+
audience: NamedNode[];
|
|
8
|
+
label: (subject: NamedNode, context: DataBrowserContext) => string | null;
|
|
9
|
+
render: (subject: NamedNode, context: DataBrowserContext) => HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
export declare const RDFXMLPane: RDFXMLPaneDefinition;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=RDFXMLPane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RDFXMLPane.d.ts","sourceRoot":"","sources":["../src/RDFXMLPane.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAa,MAAM,QAAQ,CAAA;AAClD,OAAO,kBAAkB,CAAA;AAIzB,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,EAAE,CAAA;IACrB,KAAK,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,KAAK,MAAM,GAAG,IAAI,CAAA;IACzE,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,KAAK,cAAc,CAAA;CAC5E,CAAA;AA0BD,eAAO,MAAM,UAAU,EAAE,oBAmFxB,CAAA"}
|
package/dist/RDFXMLPane.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.RDFXMLPane = void 0;
|
|
7
7
|
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
8
|
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
9
|
+
require("./RDFXMLPane.css");
|
|
9
10
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
11
|
/* RDF/XML content Pane
|
|
11
12
|
**
|
|
@@ -15,6 +16,27 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
const ns = UI.ns;
|
|
19
|
+
function leadingIndentWidth(line) {
|
|
20
|
+
if (line.trim().length === 0) {
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
let width = 0;
|
|
24
|
+
for (const character of line) {
|
|
25
|
+
if (character === ' ') {
|
|
26
|
+
width += 1;
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (character === '\t') {
|
|
30
|
+
width += 2;
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
return Math.max(width, 2);
|
|
36
|
+
}
|
|
37
|
+
function trimLeadingIndent(line) {
|
|
38
|
+
return line.replace(/^[ \t]+/, '');
|
|
39
|
+
}
|
|
18
40
|
const RDFXMLPane = exports.RDFXMLPane = {
|
|
19
41
|
icon: UI.icons.originalIconBase + '22-text-xml4.png',
|
|
20
42
|
name: 'RDFXML',
|
|
@@ -31,8 +53,13 @@ const RDFXMLPane = exports.RDFXMLPane = {
|
|
|
31
53
|
render: function (subject, context) {
|
|
32
54
|
const myDocument = context.dom;
|
|
33
55
|
const kb = context.session.store;
|
|
56
|
+
function applyEnvironmentAttributes(element) {
|
|
57
|
+
const environment = context.environment ?? {};
|
|
58
|
+
element.dataset.layout = environment.layout ?? 'desktop';
|
|
59
|
+
}
|
|
34
60
|
const div = myDocument.createElement('div');
|
|
35
|
-
div.setAttribute('class', '
|
|
61
|
+
div.setAttribute('class', 'rdfxml-pane');
|
|
62
|
+
applyEnvironmentAttributes(div);
|
|
36
63
|
// Because of smushing etc, this will not be a copy of the original source
|
|
37
64
|
// We could instead either fetch and re-parse the source,
|
|
38
65
|
// or we could keep all the pre-smushed triples.
|
|
@@ -48,10 +75,24 @@ const RDFXMLPane = exports.RDFXMLPane = {
|
|
|
48
75
|
sz.suggestNamespaces(kb.namespaces);
|
|
49
76
|
sz.setBase(subject.uri);
|
|
50
77
|
const str = sz.statementsToXML(sts);
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
78
|
+
const source = myDocument.createElement('div');
|
|
79
|
+
source.classList.add('rdfxml-pane__source');
|
|
80
|
+
str.split('\n').forEach(line => {
|
|
81
|
+
const lineElement = myDocument.createElement('div');
|
|
82
|
+
const indentElement = myDocument.createElement('span');
|
|
83
|
+
const contentElement = myDocument.createElement('span');
|
|
84
|
+
const indentWidth = leadingIndentWidth(line);
|
|
85
|
+
lineElement.classList.add('rdfxml-pane__line');
|
|
86
|
+
lineElement.style.setProperty('--rdfxml-indent', `${indentWidth}ch`);
|
|
87
|
+
indentElement.classList.add('rdfxml-pane__line-indent');
|
|
88
|
+
indentElement.setAttribute('aria-hidden', 'true');
|
|
89
|
+
contentElement.classList.add('rdfxml-pane__line-content');
|
|
90
|
+
contentElement.textContent = line.length > 0 ? trimLeadingIndent(line) : ' ';
|
|
91
|
+
lineElement.appendChild(indentElement);
|
|
92
|
+
lineElement.appendChild(contentElement);
|
|
93
|
+
source.appendChild(lineElement);
|
|
94
|
+
});
|
|
95
|
+
div.appendChild(source);
|
|
55
96
|
return div;
|
|
56
97
|
}
|
|
57
98
|
};
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
.data-content-pane__literal {
|
|
2
|
+
white-space: pre-wrap;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
div.data-content-pane {
|
|
6
|
+
border-top: solid 1px var(--color-data-pane-border-top, black);
|
|
7
|
+
border-left: solid 1px var(--color-data-pane-border-top, black);
|
|
8
|
+
border-bottom: solid 1px var(--color-data-pane-border-side, #777);
|
|
9
|
+
border-right: solid 1px var(--color-data-pane-border-side, #777);
|
|
10
|
+
padding: var(--spacing-base, 0.5rem);
|
|
11
|
+
margin-top: var(--spacing-base, 0.5rem);
|
|
12
|
+
margin-bottom: var(--spacing-base, 0.5rem);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.data-content-pane table.data-content-pane__table {
|
|
16
|
+
width: 100%;
|
|
17
|
+
border-collapse: separate;
|
|
18
|
+
border-spacing: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.data-content-pane table.data-content-pane__table--root {
|
|
22
|
+
table-layout: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
div.data-content-pane .data-content-pane__row--root {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
div.data-content-pane .data-content-pane__row--root > td {
|
|
31
|
+
vertical-align: top;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
div.data-content-pane .data-content-pane__subject-cell {
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
width: clamp(7rem, 12%, 10rem);
|
|
37
|
+
padding-right: 0.8rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
div.data-content-pane .data-content-pane__details-cell {
|
|
41
|
+
flex: 0 1 auto;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
div.data-content-pane .data-content-pane__subject-cell,
|
|
46
|
+
div.data-content-pane td.data-content-pane__predicate-cell,
|
|
47
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell),
|
|
48
|
+
div.data-content-pane .data-content-pane__subject-cell a,
|
|
49
|
+
div.data-content-pane td.data-content-pane__predicate-cell a,
|
|
50
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell) a {
|
|
51
|
+
white-space: normal;
|
|
52
|
+
overflow-wrap: anywhere;
|
|
53
|
+
word-break: break-word;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div.data-content-pane table.data-content-pane__table--property {
|
|
57
|
+
table-layout: auto;
|
|
58
|
+
width: auto;
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.data-content-pane__nested-formula {
|
|
63
|
+
border-top: solid 1px var(--color-data-pane-border-top, black);
|
|
64
|
+
border-left: solid 1px var(--color-data-pane-border-top, black);
|
|
65
|
+
border-bottom: solid 1px var(--color-data-pane-border-side, #777);
|
|
66
|
+
border-right: solid 1px var(--color-data-pane-border-side, #777);
|
|
67
|
+
padding: var(--spacing-base, 0.5rem);
|
|
68
|
+
border-radius: var(--border-radius-md, 0.5rem);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
div.data-content-pane td {
|
|
72
|
+
padding-left: var(--spacing-xxxs, 0.2rem);
|
|
73
|
+
padding-top: var(--spacing-small, 0.1rem);
|
|
74
|
+
padding-right: var(--spacing-xxxs, 0.2rem);
|
|
75
|
+
padding-bottom: 0.05rem;
|
|
76
|
+
vertical-align: top;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
div.data-content-pane table.data-content-pane__table--property td {
|
|
80
|
+
padding-top: 0.3rem;
|
|
81
|
+
padding-bottom: 0.3rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
div.data-content-pane tr {
|
|
85
|
+
margin-bottom: var(--spacing-2xs, 0.625rem);
|
|
86
|
+
padding-top: var(--spacing-small, 0.1rem);
|
|
87
|
+
padding-bottom: var(--spacing-small, 0.1rem);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.data-content-pane a {
|
|
91
|
+
color: var(--color-text-link, #3b5998);
|
|
92
|
+
text-decoration: none;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.data-content-pane a:link {
|
|
97
|
+
color: var(--color-text-link, #3b5998);
|
|
98
|
+
text-decoration: none;
|
|
99
|
+
font-weight: bold;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.data-content-pane a:visited {
|
|
103
|
+
color: var(--color-text-link-visited, #3b5998);
|
|
104
|
+
text-decoration: none;
|
|
105
|
+
font-weight: bold;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.data-content-pane a:hover {
|
|
109
|
+
color: var(--color-text-link-hover, #3b5998);
|
|
110
|
+
text-decoration: underline;
|
|
111
|
+
font-weight: bold;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.data-content-pane a:active {
|
|
115
|
+
color: var(--color-text-link-active, #888);
|
|
116
|
+
text-decoration: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.data-content-pane.embeddedText {
|
|
120
|
+
white-space: pre-wrap;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
div.data-content-pane td.data-content-pane__predicate-cell {
|
|
124
|
+
min-width: 8.5rem;
|
|
125
|
+
width: clamp(8.5rem, 18vw, 12rem);
|
|
126
|
+
max-width: 12rem;
|
|
127
|
+
padding-right: var(--spacing-base, 0.5rem);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell) {
|
|
131
|
+
padding-left: var(--spacing-xxs, 0.3125rem);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
div.data-content-pane td.data-content-pane__predicate-cell a {
|
|
135
|
+
color: var(--color-text-muted, #444);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.data-content-pane__row--even {
|
|
139
|
+
background-color: var(--color-background-row-alternate, #f0f0f0);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.data-content-pane__row--odd {
|
|
143
|
+
background-color: var(--color-background-row-default, white);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.data-content-pane__row--top-aligned {
|
|
147
|
+
vertical-align: top;
|
|
148
|
+
margin-top: 0;
|
|
149
|
+
margin-bottom: 0;
|
|
150
|
+
padding-top: 0;
|
|
151
|
+
padding-bottom: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.data-content-pane__nested-table--light {
|
|
155
|
+
background-color: var(--color-background-row-default, white);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.data-content-pane__nested-table--dark {
|
|
159
|
+
background-color: var(--color-background-row-alternate, #f0f0f0);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__row--root {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: flex-start;
|
|
165
|
+
padding-bottom: var(--spacing-xs, 0.75rem);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__subject-cell {
|
|
169
|
+
flex: 0 0 40%;
|
|
170
|
+
width: 40%;
|
|
171
|
+
max-width: 40%;
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
padding-right: var(--spacing-xs, 0.75rem);
|
|
174
|
+
padding-bottom: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__details-cell {
|
|
178
|
+
flex: 0 0 60%;
|
|
179
|
+
width: 60%;
|
|
180
|
+
max-width: 60%;
|
|
181
|
+
min-width: 0;
|
|
182
|
+
box-sizing: border-box;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property > tbody > tr,
|
|
186
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property > tr {
|
|
187
|
+
margin-bottom: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__row--top-aligned + .data-content-pane__row--top-aligned {
|
|
191
|
+
margin-top: 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
div.data-content-pane[data-layout='mobile'] .data-content-pane__row--top-aligned {
|
|
195
|
+
display: block;
|
|
196
|
+
margin-bottom: 0;
|
|
197
|
+
padding-top: 0;
|
|
198
|
+
padding-bottom: 0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property,
|
|
202
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property > tbody {
|
|
203
|
+
display: block;
|
|
204
|
+
width: 100%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property td {
|
|
208
|
+
display: block;
|
|
209
|
+
width: 100%;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property td.data-content-pane__predicate-cell {
|
|
214
|
+
width: 100%;
|
|
215
|
+
min-width: 0;
|
|
216
|
+
padding-bottom: 0.1rem;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
div.data-content-pane[data-layout='mobile'] table.data-content-pane__table--property td:not(.data-content-pane__predicate-cell) {
|
|
220
|
+
padding-top: 0;
|
|
221
|
+
padding-left: 0.85rem;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media (max-width: 700px) {
|
|
225
|
+
div.data-content-pane .data-content-pane__row--root {
|
|
226
|
+
display: flex;
|
|
227
|
+
align-items: flex-start;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
div.data-content-pane .data-content-pane__subject-cell {
|
|
231
|
+
flex: 0 0 40%;
|
|
232
|
+
width: 40%;
|
|
233
|
+
max-width: 40%;
|
|
234
|
+
padding-right: var(--spacing-xs, 0.75rem);
|
|
235
|
+
padding-bottom: 0;
|
|
236
|
+
box-sizing: border-box;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
div.data-content-pane .data-content-pane__details-cell {
|
|
240
|
+
flex: 0 0 60%;
|
|
241
|
+
width: 60%;
|
|
242
|
+
max-width: 60%;
|
|
243
|
+
box-sizing: border-box;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
div.data-content-pane .data-content-pane__row--top-aligned {
|
|
247
|
+
display: block;
|
|
248
|
+
margin-top: 0;
|
|
249
|
+
margin-bottom: 0;
|
|
250
|
+
padding-top: 0;
|
|
251
|
+
padding-bottom: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td {
|
|
255
|
+
display: block;
|
|
256
|
+
width: 100%;
|
|
257
|
+
box-sizing: border-box;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td.data-content-pane__predicate-cell {
|
|
261
|
+
min-width: 0;
|
|
262
|
+
max-width: none;
|
|
263
|
+
width: 100%;
|
|
264
|
+
padding-bottom: var(--spacing-small, 0.1rem);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
div.data-content-pane .data-content-pane__row--top-aligned > td:not(.data-content-pane__predicate-cell) {
|
|
268
|
+
padding-top: 0;
|
|
269
|
+
padding-left: 0.85rem;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DataBrowserContext } from 'pane-registry';
|
|
2
|
+
import type { BlankNode, NamedNode, Statement } from 'rdflib';
|
|
3
|
+
import './dataContentPane.css';
|
|
4
|
+
type SubjectTerm = NamedNode | BlankNode;
|
|
5
|
+
export declare const dataContentPane: {
|
|
6
|
+
icon: string;
|
|
7
|
+
name: string;
|
|
8
|
+
audience: any[];
|
|
9
|
+
label: (subject: NamedNode, context: DataBrowserContext) => string | null;
|
|
10
|
+
statementsAsTables: (sts: Statement[], context: DataBrowserContext, initialRoots?: SubjectTerm[]) => HTMLTableElement;
|
|
11
|
+
render: (subject: NamedNode, context: DataBrowserContext) => HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=dataContentPane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataContentPane.d.ts","sourceRoot":"","sources":["../src/dataContentPane.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,kBAAkB,EAAqB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EACV,SAAS,EAET,SAAS,EACT,SAAS,EACV,MAAM,QAAQ,CAAA;AACf,OAAO,uBAAuB,CAAA;AAI9B,KAAK,WAAW,GAAG,SAAS,GAAG,SAAS,CAAA;AAiBxC,eAAO,MAAM,eAAe;;;;qBAOA,SAAS,WAAW,kBAAkB;8BAsBzD,SAAS,EAAE,WACP,kBAAkB,iBACZ,WAAW,EAAE,KAC3B,gBAAgB;sBA+LR,SAAS,WACT,kBAAkB,KAC1B,cAAc;CAoClB,CAAA"}
|