solid-panes 4.2.3-aa096857 → 4.2.3-b259fee7
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/RDFXMLPane.js +1 -2
- package/dist/argument/argumentPane.js +1 -2
- package/dist/attach/attachPane.js +1 -2
- package/dist/audio/audioPane.js +1 -2
- package/dist/classInstancePane.js +1 -2
- package/dist/dataContentPane.js +12 -10
- package/dist/defaultPane.js +1 -2
- package/dist/dokieli/dokieliPane.js +1 -2
- package/dist/dokieli/new.js +1 -2
- package/dist/form/pane.js +1 -2
- package/dist/humanReadablePane.js +12 -10
- package/dist/imagePane.js +1 -2
- package/dist/microblogPane/mbStyle.css +267 -0
- package/dist/microblogPane/microblogPane.js +1 -2
- package/dist/n3Pane.js +1 -2
- package/dist/outline/manager.css +80 -0
- package/dist/outline/manager.js +14 -11
- package/dist/outline/outlineIcons.js +1 -2
- package/dist/outline/queryByExample.js +1 -2
- package/dist/outline/userInput.js +1 -2
- package/dist/playlist/playlistPane.js +1 -2
- package/dist/registerPanes.js +1 -2
- package/dist/schedule/schedulePane.js +1 -2
- package/dist/slideshow/slideshowPane.js +1 -2
- package/dist/socialPane.js +1 -2
- package/dist/solid-panes.js +49526 -0
- package/dist/solid-panes.js.map +1 -0
- package/dist/solid-panes.min.js +290 -0
- package/dist/solid-panes.min.js.map +1 -0
- package/dist/styles/dataContentPane.css +23 -0
- package/dist/styles/humanReadablePane.css +8 -0
- package/dist/styles/tabbedtab.css +1347 -0
- package/dist/tableViewPane.js +1 -2
- package/dist/transaction/pane.js +1 -2
- package/dist/transaction/period.js +1 -2
- package/dist/trip/tripPane.js +1 -2
- package/dist/ui/pane.js +1 -2
- package/dist/video/videoPane.js +1 -2
- package/package.json +8 -7
- package/dist/RDFXMLPane.js.map +0 -1
- package/dist/argument/argumentPane.js.map +0 -1
- package/dist/attach/attachPane.js.map +0 -1
- package/dist/audio/audioPane.js.map +0 -1
- package/dist/classInstancePane.js.map +0 -1
- package/dist/dashboard/basicPreferences.js +0 -147
- package/dist/dashboard/basicPreferences.js.map +0 -1
- package/dist/dashboard/dashboardPane.js +0 -68
- package/dist/dashboard/dashboardPane.js.map +0 -1
- package/dist/dashboard/homepage.js +0 -73
- package/dist/dashboard/homepage.js.map +0 -1
- package/dist/dataContentPane.js.map +0 -1
- package/dist/defaultPane.js.map +0 -1
- package/dist/dokieli/dokieliPane.js.map +0 -1
- package/dist/dokieli/new.js.map +0 -1
- package/dist/form/pane.js.map +0 -1
- package/dist/home/homePane.js +0 -73
- package/dist/home/homePane.js.map +0 -1
- package/dist/humanReadablePane.js.map +0 -1
- package/dist/imagePane.js.map +0 -1
- package/dist/index.js +0 -109
- package/dist/index.js.map +0 -1
- package/dist/internal/internalPane.js +0 -184
- package/dist/internal/internalPane.js.map +0 -1
- package/dist/mainPage/footer.js +0 -22
- package/dist/mainPage/footer.js.map +0 -1
- package/dist/mainPage/header.js +0 -86
- package/dist/mainPage/header.js.map +0 -1
- package/dist/mainPage/index.js +0 -25
- package/dist/mainPage/index.js.map +0 -1
- package/dist/microblogPane/microblogPane.js.map +0 -1
- package/dist/n3Pane.js.map +0 -1
- package/dist/outline/context.js +0 -19
- package/dist/outline/context.js.map +0 -1
- package/dist/outline/manager.js.map +0 -1
- package/dist/outline/outlineIcons.js.map +0 -1
- package/dist/outline/propertyViews.js +0 -44
- package/dist/outline/propertyViews.js.map +0 -1
- package/dist/outline/queryByExample.js.map +0 -1
- package/dist/outline/userInput.js.map +0 -1
- package/dist/outline/viewAsImage.js +0 -15
- package/dist/outline/viewAsImage.js.map +0 -1
- package/dist/outline/viewAsMbox.js +0 -22
- package/dist/outline/viewAsMbox.js.map +0 -1
- package/dist/pad/padPane.js +0 -411
- package/dist/pad/padPane.js.map +0 -1
- package/dist/playlist/playlistPane.js.map +0 -1
- package/dist/registerPanes.js.map +0 -1
- package/dist/schedule/schedulePane.js.map +0 -1
- package/dist/sharing/sharingPane.js +0 -49
- package/dist/sharing/sharingPane.js.map +0 -1
- package/dist/slideshow/slideshowPane.js.map +0 -1
- package/dist/socialPane.js.map +0 -1
- package/dist/tabbed/tabbedPane.js +0 -58
- package/dist/tabbed/tabbedPane.js.map +0 -1
- package/dist/tableViewPane.js.map +0 -1
- package/dist/transaction/pane.js.map +0 -1
- package/dist/transaction/period.js.map +0 -1
- package/dist/trip/tripPane.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.dom.js +0 -146
- package/dist/trustedApplications/trustedApplications.dom.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.utils.js +0 -24
- package/dist/trustedApplications/trustedApplications.utils.js.map +0 -1
- package/dist/trustedApplications/trustedApplications.view.js +0 -56
- package/dist/trustedApplications/trustedApplications.view.js.map +0 -1
- package/dist/ui/pane.js.map +0 -1
- package/dist/versionInfo.js +0 -36
- package/dist/versionInfo.js.map +0 -1
- package/dist/video/videoPane.js.map +0 -1
package/dist/RDFXMLPane.js
CHANGED
package/dist/audio/audioPane.js
CHANGED
package/dist/dataContentPane.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.dataContentPane = void 0;
|
|
7
7
|
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
8
|
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
9
|
+
require("./styles/dataContentPane.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
|
/* Data content Pane
|
|
11
12
|
**
|
|
@@ -68,6 +69,7 @@ const dataContentPane = exports.dataContentPane = {
|
|
|
68
69
|
for (let i = 0; i < sts.length; i++) {
|
|
69
70
|
const st = sts[i];
|
|
70
71
|
const tr = myDocument.createElement('tr');
|
|
72
|
+
tr.classList.add('dataContentPaneTopAlignedRow');
|
|
71
73
|
if (st.predicate.uri !== lastPred) {
|
|
72
74
|
if (lastPred && same > 1) {
|
|
73
75
|
predicateTD.setAttribute('rowspan', '' + same);
|
|
@@ -106,12 +108,12 @@ const dataContentPane = exports.dataContentPane = {
|
|
|
106
108
|
case 'Literal':
|
|
107
109
|
if (!obj.datatype || !obj.datatype.uri) {
|
|
108
110
|
res = myDocument.createElement('div');
|
|
109
|
-
res.
|
|
111
|
+
res.classList.add('contentPaneLiteral');
|
|
110
112
|
res.textContent = obj.value;
|
|
111
113
|
return res;
|
|
112
114
|
} else if (obj.datatype.uri === 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral') {
|
|
113
115
|
res = myDocument.createElement('div');
|
|
114
|
-
res.
|
|
116
|
+
res.classList.add('embeddedXHTML');
|
|
115
117
|
res.innerHTML = obj.value; // Try that @@@ beware embedded dangerous code
|
|
116
118
|
return res;
|
|
117
119
|
}
|
|
@@ -132,10 +134,11 @@ const dataContentPane = exports.dataContentPane = {
|
|
|
132
134
|
doneBnodes[obj.toNT()] = true; // Flag to prevent infinite recursion in propertyTree
|
|
133
135
|
const newTable = propertyTree(obj);
|
|
134
136
|
doneBnodes[obj.toNT()] = newTable; // Track where we mentioned it first
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
const parentTable = UI.utils.ancestor(newTable, 'TABLE');
|
|
138
|
+
if (parentTable && parentTable.classList.contains('dataContentPaneNestedLight')) {
|
|
139
|
+
newTable.classList.add('dataContentPaneNestedDark');
|
|
137
140
|
} else {
|
|
138
|
-
newTable.
|
|
141
|
+
newTable.classList.add('dataContentPaneNestedLight');
|
|
139
142
|
}
|
|
140
143
|
return newTable;
|
|
141
144
|
}
|
|
@@ -172,7 +175,7 @@ const dataContentPane = exports.dataContentPane = {
|
|
|
172
175
|
}
|
|
173
176
|
for (let i = 0; i < roots.length; i++) {
|
|
174
177
|
const tr = myDocument.createElement('tr');
|
|
175
|
-
tr.
|
|
178
|
+
tr.classList.add(i % 2 === 0 ? 'dataContentPaneRowEven' : 'dataContentPaneRowOdd');
|
|
176
179
|
rep.appendChild(tr);
|
|
177
180
|
const subjectTD = myDocument.createElement('td');
|
|
178
181
|
tr.appendChild(subjectTD);
|
|
@@ -217,9 +220,9 @@ const dataContentPane = exports.dataContentPane = {
|
|
|
217
220
|
return div;
|
|
218
221
|
};
|
|
219
222
|
for (let i = 0; i < roots.length; i++) {
|
|
220
|
-
const tr = myDocument.createElement('
|
|
223
|
+
const tr = myDocument.createElement('tr');
|
|
224
|
+
tr.classList.add('dataContentPaneTopAlignedRow');
|
|
221
225
|
const root = roots[i];
|
|
222
|
-
tr.style.verticalAlign = 'top';
|
|
223
226
|
const td = outliner.outlineObjectTD(root, undefined, tr);
|
|
224
227
|
tr.appendChild(td);
|
|
225
228
|
div.appendChild(tr);
|
|
@@ -256,5 +259,4 @@ const dataContentPane = exports.dataContentPane = {
|
|
|
256
259
|
}
|
|
257
260
|
return div;
|
|
258
261
|
}
|
|
259
|
-
};
|
|
260
|
-
//# sourceMappingURL=dataContentPane.js.map
|
|
262
|
+
};
|
package/dist/defaultPane.js
CHANGED
package/dist/dokieli/new.js
CHANGED
package/dist/form/pane.js
CHANGED
|
@@ -8,6 +8,7 @@ var _solidUi = require("solid-ui");
|
|
|
8
8
|
var _rdflib = require("rdflib");
|
|
9
9
|
var _marked = require("marked");
|
|
10
10
|
var _dompurify = _interopRequireDefault(require("dompurify"));
|
|
11
|
+
require("./styles/humanReadablePane.css");
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
/* Human-readable Pane
|
|
13
14
|
**
|
|
@@ -144,6 +145,10 @@ const humanReadablePane = {
|
|
|
144
145
|
|
|
145
146
|
// @@ When we can, use CSP to turn off scripts within the iframe
|
|
146
147
|
div.setAttribute('class', 'docView');
|
|
148
|
+
const setFrameDisplayStyles = function (frame, lines) {
|
|
149
|
+
frame.classList.add('doc', 'humanReadableFrame');
|
|
150
|
+
frame.style.setProperty('--human-readable-height', `${lines}em`);
|
|
151
|
+
};
|
|
147
152
|
|
|
148
153
|
// render markdown to html in a DIV element
|
|
149
154
|
const renderMarkdownContent = function (frame) {
|
|
@@ -153,8 +158,7 @@ const humanReadablePane = {
|
|
|
153
158
|
const res = _marked.marked.parse(markdownText);
|
|
154
159
|
const clean = _dompurify.default.sanitize(res);
|
|
155
160
|
frame.innerHTML = clean;
|
|
156
|
-
frame
|
|
157
|
-
frame.setAttribute('style', `border: 1px solid; padding: 1em; height: ${lines}em; width: 800px; resize: both; overflow: auto;`);
|
|
161
|
+
setFrameDisplayStyles(frame, lines);
|
|
158
162
|
}).catch(error => {
|
|
159
163
|
console.error('Error fetching markdown content:', error);
|
|
160
164
|
frame.innerHTML = '<p>Error loading content</p>';
|
|
@@ -162,19 +166,18 @@ const humanReadablePane = {
|
|
|
162
166
|
};
|
|
163
167
|
const setIframeAttributes = (frame, lines) => {
|
|
164
168
|
frame.setAttribute('src', subject.uri);
|
|
165
|
-
frame
|
|
166
|
-
frame.setAttribute('style', `border: 1px solid; padding: 1em; height: ${lines}em; width: 800px; resize: both; overflow: auto;`);
|
|
169
|
+
setFrameDisplayStyles(frame, lines);
|
|
167
170
|
};
|
|
168
171
|
if (isMarkdown) {
|
|
169
172
|
// For markdown, use a DIV element and render the content
|
|
170
|
-
const frame = myDocument.createElement('
|
|
173
|
+
const frame = myDocument.createElement('div');
|
|
171
174
|
renderMarkdownContent(frame);
|
|
172
|
-
const tr = myDocument.createElement('
|
|
175
|
+
const tr = myDocument.createElement('tr');
|
|
173
176
|
tr.appendChild(frame);
|
|
174
177
|
div.appendChild(tr);
|
|
175
178
|
} else {
|
|
176
179
|
// For other content types, use IFRAME
|
|
177
|
-
const frame = myDocument.createElement('
|
|
180
|
+
const frame = myDocument.createElement('iframe');
|
|
178
181
|
|
|
179
182
|
// Apply sandbox for HTML/XHTML
|
|
180
183
|
if (ct === 'text/html' || ct === 'application/xhtml+xml') {
|
|
@@ -196,12 +199,11 @@ const humanReadablePane = {
|
|
|
196
199
|
// Fallback to default height
|
|
197
200
|
setIframeAttributes(frame, 30);
|
|
198
201
|
});
|
|
199
|
-
const tr = myDocument.createElement('
|
|
202
|
+
const tr = myDocument.createElement('tr');
|
|
200
203
|
tr.appendChild(frame);
|
|
201
204
|
div.appendChild(tr);
|
|
202
205
|
}
|
|
203
206
|
return div;
|
|
204
207
|
}
|
|
205
208
|
};
|
|
206
|
-
var _default = exports.default = humanReadablePane; // ends
|
|
207
|
-
//# sourceMappingURL=humanReadablePane.js.map
|
|
209
|
+
var _default = exports.default = humanReadablePane; // ends
|
package/dist/imagePane.js
CHANGED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
.ppane {
|
|
2
|
+
font-family: helvetica, arial, sans-serif;
|
|
3
|
+
color: #333;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
border: #999 solid 1px;
|
|
6
|
+
min-width: 35em !important;
|
|
7
|
+
word-wrap: break-word;
|
|
8
|
+
}
|
|
9
|
+
.ppane a {
|
|
10
|
+
color: #357598;
|
|
11
|
+
}
|
|
12
|
+
.ppane input {
|
|
13
|
+
border: solid 1px #333 !important;
|
|
14
|
+
}
|
|
15
|
+
.ppane input[type='button'],
|
|
16
|
+
.ppane input[type='submit'] {
|
|
17
|
+
background-color: #fff;
|
|
18
|
+
padding: 0.1em 0.5em;
|
|
19
|
+
border: solid 1px #333;
|
|
20
|
+
-moz-border-radius: 3px;
|
|
21
|
+
}
|
|
22
|
+
.ppane input[type='button']:hover,
|
|
23
|
+
.ppane input[type='submit']:hover {
|
|
24
|
+
background-color: #eef;
|
|
25
|
+
border: solid 1px #357598 !important;
|
|
26
|
+
}
|
|
27
|
+
.ppane ul {
|
|
28
|
+
padding: 0px;
|
|
29
|
+
}
|
|
30
|
+
.ppane .update-container {
|
|
31
|
+
background-color: #fff;
|
|
32
|
+
margin-bottom: 2em;
|
|
33
|
+
padding: 5px 1em;
|
|
34
|
+
-moz-box-shadow: 0px 5px 10px #fff;
|
|
35
|
+
}
|
|
36
|
+
.ppane .createNewMB {
|
|
37
|
+
padding: 5px 1em;
|
|
38
|
+
border: solid 1px #ccc;
|
|
39
|
+
background-color: #fff;
|
|
40
|
+
}
|
|
41
|
+
.ppane ul {
|
|
42
|
+
list-style-type: none !important;
|
|
43
|
+
}
|
|
44
|
+
.ppane .postLink {
|
|
45
|
+
display: inline;
|
|
46
|
+
margin-top: 0.7em;
|
|
47
|
+
font-size: 90%;
|
|
48
|
+
color: #888 !important;
|
|
49
|
+
}
|
|
50
|
+
.ppane .userLink {
|
|
51
|
+
display: block;
|
|
52
|
+
clear: both;
|
|
53
|
+
margin-bottom: 1em;
|
|
54
|
+
margin-right: 1em;
|
|
55
|
+
}
|
|
56
|
+
.ppane .postAvatar {
|
|
57
|
+
max-width: 4em;
|
|
58
|
+
max-height: 4em;
|
|
59
|
+
float: left;
|
|
60
|
+
margin-right: 1em;
|
|
61
|
+
border: double 3px #888;
|
|
62
|
+
-moz-box-shadow: 0px 0px 8px #ccc;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/*reply view*/
|
|
66
|
+
.ppane .replyView {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
.replyView-active .favorit {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
.ppane .replyView-active {
|
|
73
|
+
margin: 0 !important;
|
|
74
|
+
position: fixed;
|
|
75
|
+
left: 0px;
|
|
76
|
+
top: 0px;
|
|
77
|
+
background-color: #eee;
|
|
78
|
+
opacity: 0.97;
|
|
79
|
+
z-index: 5;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
padding-top: 20%;
|
|
83
|
+
}
|
|
84
|
+
.ppane .replyView-active li {
|
|
85
|
+
display: block;
|
|
86
|
+
opacity: 1 !important;
|
|
87
|
+
margin: 1em auto;
|
|
88
|
+
width: 30em;
|
|
89
|
+
border: solid 1px #888;
|
|
90
|
+
background-color: #fff;
|
|
91
|
+
padding: 1em;
|
|
92
|
+
-moz-box-shadow: 0px 0px 10px #aaa;
|
|
93
|
+
}
|
|
94
|
+
.ppane .replyView-active .closeContainer {
|
|
95
|
+
-moz-box-shadow: none;
|
|
96
|
+
text-align: right;
|
|
97
|
+
vertical-align: bottom;
|
|
98
|
+
margin-bottom: -1em;
|
|
99
|
+
border: none;
|
|
100
|
+
padding: 0px;
|
|
101
|
+
background: none;
|
|
102
|
+
}
|
|
103
|
+
.ppane .replyView-active .closeContainer .closeButton {
|
|
104
|
+
background-color: #000;
|
|
105
|
+
width: 1em;
|
|
106
|
+
font-size: 110%;
|
|
107
|
+
margin-right: -2em;
|
|
108
|
+
color: #fff;
|
|
109
|
+
padding: 0.2em 0.4em;
|
|
110
|
+
font-weight: bold;
|
|
111
|
+
border: solid 3px #fff;
|
|
112
|
+
-moz-border-radius: 2em;
|
|
113
|
+
-moz-box-shadow: 0px 0px 10px #333;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/*notifications*/
|
|
118
|
+
.ppane .notify-container {
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
.ppane .notify-container .notify {
|
|
122
|
+
background-color: #fffae6;
|
|
123
|
+
border: solid 1px #ffe788;
|
|
124
|
+
padding: 1em 0.5em;
|
|
125
|
+
margin: 1em;
|
|
126
|
+
-moz-border-radius: 0.5em;
|
|
127
|
+
}
|
|
128
|
+
.ppane .notify-container .notify.conf {
|
|
129
|
+
background-color: #ffeeee;
|
|
130
|
+
border-color: #880000;
|
|
131
|
+
text-align: right;
|
|
132
|
+
position: fixed;
|
|
133
|
+
margin: 0px auto;
|
|
134
|
+
left: 3em;
|
|
135
|
+
width: 35em !important;
|
|
136
|
+
top: 40%;
|
|
137
|
+
-moz-box-shadow: 0px 0px 10px #800;
|
|
138
|
+
}
|
|
139
|
+
.ppane .notify-container .notify.conf p {
|
|
140
|
+
text-align: left;
|
|
141
|
+
}
|
|
142
|
+
.ppane .notify-container .notify.conf .confirm {
|
|
143
|
+
margin-left: 1em;
|
|
144
|
+
}
|
|
145
|
+
/*view*/
|
|
146
|
+
.ppane .view-container {
|
|
147
|
+
display: none;
|
|
148
|
+
padding: 1em;
|
|
149
|
+
}
|
|
150
|
+
.ppane .view-container.active {
|
|
151
|
+
display: block;
|
|
152
|
+
-moz-box-shadow: 0px 3px 8px #ccc;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/*header container*/
|
|
156
|
+
.ppane .header-container {
|
|
157
|
+
border-bottom: solid 1px #999;
|
|
158
|
+
background-color: #fafaf8;
|
|
159
|
+
}
|
|
160
|
+
.ppane .header-container img {
|
|
161
|
+
float: left;
|
|
162
|
+
max-height: 75px;
|
|
163
|
+
margin: 1em;
|
|
164
|
+
border: solid 3px #fff;
|
|
165
|
+
margin-top: 0em;
|
|
166
|
+
-moz-box-shadow: 0px 0px 8px #ccc;
|
|
167
|
+
}
|
|
168
|
+
.ppane .header-container .subheader-container {
|
|
169
|
+
min-height: 75px;
|
|
170
|
+
margin-bottom: 2em;
|
|
171
|
+
padding: 1em;
|
|
172
|
+
}
|
|
173
|
+
.ppane .header-container textarea {
|
|
174
|
+
width: 100%;
|
|
175
|
+
margin-bottom: 0.4em;
|
|
176
|
+
font-family: helvetica, arial, sans-serif;
|
|
177
|
+
font-size: 100%;
|
|
178
|
+
padding: 0.5em 0;
|
|
179
|
+
line-height: 120%;
|
|
180
|
+
}
|
|
181
|
+
.ppane .header-container textarea:focus,
|
|
182
|
+
.ppane input:focus {
|
|
183
|
+
border: solid 1px #357598 !important;
|
|
184
|
+
outline: none;
|
|
185
|
+
-moz-box-shadow: 0px 0px 2px #357598;
|
|
186
|
+
}
|
|
187
|
+
.ppane .header-container input[type='submit'] {
|
|
188
|
+
float: right;
|
|
189
|
+
}
|
|
190
|
+
.ppane .header-container .createNewMB input[type='text'] {
|
|
191
|
+
min-width: 25em;
|
|
192
|
+
}
|
|
193
|
+
.ppane .header-container .createNewMB input[type='submit'] {
|
|
194
|
+
float: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/*post list*/
|
|
198
|
+
.ppane .postList .post {
|
|
199
|
+
margin: 0;
|
|
200
|
+
display: block;
|
|
201
|
+
border: solid 1px #888;
|
|
202
|
+
padding: 1em;
|
|
203
|
+
margin: 0.2em 0em;
|
|
204
|
+
}
|
|
205
|
+
.ppane .postList blockquote,
|
|
206
|
+
.ppane .replyView-active blockquote {
|
|
207
|
+
margin-left: 0;
|
|
208
|
+
font-size: 110%;
|
|
209
|
+
max-width: 30em;
|
|
210
|
+
padding-left: 5em;
|
|
211
|
+
}
|
|
212
|
+
.ppane .postList .reply,
|
|
213
|
+
.ppane .replyView-active .reply {
|
|
214
|
+
float: right;
|
|
215
|
+
}
|
|
216
|
+
.ppane .postList .post div {
|
|
217
|
+
margin: 0.5em auto;
|
|
218
|
+
}
|
|
219
|
+
.ppane .postList .favorit {
|
|
220
|
+
color: #aaa;
|
|
221
|
+
float: right;
|
|
222
|
+
font-size: 150%;
|
|
223
|
+
margin-left: 0.5em;
|
|
224
|
+
}
|
|
225
|
+
.ppane .postList .favorit.ed {
|
|
226
|
+
color: #e5cc44;
|
|
227
|
+
}
|
|
228
|
+
.ppane .postList .favorit.ing {
|
|
229
|
+
color: #777;
|
|
230
|
+
text-shadow: 0px 0px 3px #000;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/*tabs list*/
|
|
234
|
+
.ppane .tabslist {
|
|
235
|
+
padding: 0em;
|
|
236
|
+
margin: 0.5em 0em;
|
|
237
|
+
}
|
|
238
|
+
.ppane .tabslist li {
|
|
239
|
+
cursor: default;
|
|
240
|
+
display: inline;
|
|
241
|
+
background-color: #fff;
|
|
242
|
+
padding: 0.5em 2em;
|
|
243
|
+
margin: 0 0.5em;
|
|
244
|
+
border: solid 1px #999;
|
|
245
|
+
-moz-border-radius-topleft: 0.5em;
|
|
246
|
+
-moz-border-radius-topright: 0.5em;
|
|
247
|
+
}
|
|
248
|
+
.ppane .tabslist li.active {
|
|
249
|
+
border-bottom: solid 1px #fff;
|
|
250
|
+
-moz-box-shadow: 0px 10px 0px #fff, 0px 0px 8px #ccc;
|
|
251
|
+
}
|
|
252
|
+
.ppane .tabslist li:hover {
|
|
253
|
+
background-color: #eee;
|
|
254
|
+
}
|
|
255
|
+
.ppane .tabslist li.active:hover {
|
|
256
|
+
background-color: #fff;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/*follow list*/
|
|
260
|
+
.ppane .followlist-container {
|
|
261
|
+
}
|
|
262
|
+
.ppane .followlist-container .follow {
|
|
263
|
+
display: inline;
|
|
264
|
+
font-size: 120%;
|
|
265
|
+
padding: 0 2em;
|
|
266
|
+
line-height: 150%;
|
|
267
|
+
}
|
package/dist/n3Pane.js
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Styles extracted from manager.js */
|
|
2
|
+
|
|
3
|
+
.obj {
|
|
4
|
+
margin: 0.2em;
|
|
5
|
+
border: none;
|
|
6
|
+
padding: 0;
|
|
7
|
+
vertical-align: top;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pred, .pred.internal {
|
|
11
|
+
/* Add any specific styles for predicate TDs here */
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.iconTD {
|
|
15
|
+
margin: 0.2em;
|
|
16
|
+
border: none;
|
|
17
|
+
padding: 0;
|
|
18
|
+
vertical-align: top;
|
|
19
|
+
width: 0px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.labelTD {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.paneIconTray {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.paneShown {
|
|
33
|
+
width: 24px;
|
|
34
|
+
border-radius: 0.5em;
|
|
35
|
+
border-top: solid #222 1px;
|
|
36
|
+
border-left: solid #222 0.1em;
|
|
37
|
+
border-bottom: solid #eee 0.1em;
|
|
38
|
+
border-right: solid #eee 0.1em;
|
|
39
|
+
margin-left: 1em;
|
|
40
|
+
padding: 3px;
|
|
41
|
+
background-color: #ffd;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.paneHidden {
|
|
45
|
+
width: 24px;
|
|
46
|
+
border-radius: 0.5em;
|
|
47
|
+
margin-left: 1em;
|
|
48
|
+
padding: 3px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.header {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: flex-start;
|
|
54
|
+
align-items: center;
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.strongHeader {
|
|
59
|
+
font-size: 150%;
|
|
60
|
+
margin: 0 0.6em 0 0;
|
|
61
|
+
padding: 0.1em 0.4em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tableFullWidth {
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.placeholderTable {
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.tdFlex {
|
|
73
|
+
margin: 0.2em;
|
|
74
|
+
border: none;
|
|
75
|
+
padding: 0;
|
|
76
|
+
vertical-align: top;
|
|
77
|
+
display: flex;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
flex-direction: row;
|
|
80
|
+
}
|
package/dist/outline/manager.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = _default;
|
|
7
7
|
var paneRegistry = _interopRequireWildcard(require("pane-registry"));
|
|
8
|
+
require("./manager.css");
|
|
8
9
|
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
9
10
|
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
10
11
|
var _solidLogic = require("solid-logic");
|
|
@@ -151,8 +152,12 @@ function _default(context) {
|
|
|
151
152
|
|
|
152
153
|
this.outlineObjectTD = function outlineObjectTD(obj, view, deleteNode, statement) {
|
|
153
154
|
const td = dom.createElement('td');
|
|
154
|
-
td.
|
|
155
|
+
td.classList.add('obj');
|
|
155
156
|
td.setAttribute('notSelectable', 'false');
|
|
157
|
+
td.style.margin = '0.2em';
|
|
158
|
+
td.style.border = 'none';
|
|
159
|
+
td.style.padding = '0';
|
|
160
|
+
td.style.verticalAlign = 'top';
|
|
156
161
|
const theClass = 'obj';
|
|
157
162
|
|
|
158
163
|
// set about and put 'expand' icon
|
|
@@ -161,7 +166,6 @@ function _default(context) {
|
|
|
161
166
|
td.appendChild(UI.utils.AJARImage(UI.icons.originalIconBase + 'tbl-expand-trans.png', 'expand', undefined, dom)).addEventListener('click', expandMouseDownListener);
|
|
162
167
|
}
|
|
163
168
|
td.setAttribute('class', theClass); // this is how you find an object
|
|
164
|
-
// @@ TAKE CSS OUT OF STYLE SHEET
|
|
165
169
|
if (kb.whether(obj, UI.ns.rdf('type'), UI.ns.link('Request'))) {
|
|
166
170
|
td.className = 'undetermined';
|
|
167
171
|
} // @@? why-timbl
|
|
@@ -207,7 +211,7 @@ function _default(context) {
|
|
|
207
211
|
// if (kb.statementsMatching(predicate,rdf('type'), UI.ns.link('Request')).length) predicateTD.className='undetermined';
|
|
208
212
|
|
|
209
213
|
const labelTD = dom.createElement('TD');
|
|
210
|
-
labelTD.
|
|
214
|
+
labelTD.classList.add('labelTD');
|
|
211
215
|
labelTD.setAttribute('notSelectable', 'true');
|
|
212
216
|
labelTD.appendChild(dom.createTextNode(lab));
|
|
213
217
|
predicateTD.appendChild(labelTD);
|
|
@@ -281,7 +285,7 @@ function _default(context) {
|
|
|
281
285
|
const me = _solidLogic.authn.currentUser();
|
|
282
286
|
if (!me) return [];
|
|
283
287
|
const div = dom.createElement('div');
|
|
284
|
-
const [
|
|
288
|
+
const [pods] = await Promise.all([getPods()]);
|
|
285
289
|
return [{
|
|
286
290
|
paneName: 'home',
|
|
287
291
|
label: 'Your stuff',
|
|
@@ -298,7 +302,7 @@ function _default(context) {
|
|
|
298
302
|
paneName: 'editProfile',
|
|
299
303
|
label: 'Edit your Profile',
|
|
300
304
|
icon: UI.icons.iconBase + 'noun_492246.svg'
|
|
301
|
-
}].concat(
|
|
305
|
+
}].concat(pods);
|
|
302
306
|
async function getPods() {
|
|
303
307
|
async function addPodStorage(pod) {
|
|
304
308
|
// namedNode
|
|
@@ -667,7 +671,7 @@ function _default(context) {
|
|
|
667
671
|
const table = d.parentNode;
|
|
668
672
|
const par = table.parentNode;
|
|
669
673
|
const placeholder = dom.createElement('table');
|
|
670
|
-
placeholder.
|
|
674
|
+
placeholder.classList.add('placeholderTable');
|
|
671
675
|
par.replaceChild(placeholder, table);
|
|
672
676
|
table.removeChild(d);
|
|
673
677
|
par.replaceChild(table, placeholder); // Attempt to
|
|
@@ -680,7 +684,7 @@ function _default(context) {
|
|
|
680
684
|
if (!table) {
|
|
681
685
|
// Create a new property table
|
|
682
686
|
table = dom.createElement('table');
|
|
683
|
-
table.
|
|
687
|
+
table.classList.add('tableFullWidth');
|
|
684
688
|
expandedHeaderTR(subject, pane, options).then(tr1 => {
|
|
685
689
|
table.appendChild(tr1);
|
|
686
690
|
if (tr1.firstPane) {
|
|
@@ -1977,7 +1981,7 @@ function _default(context) {
|
|
|
1977
1981
|
} else if (obj.termType === 'Collection') {
|
|
1978
1982
|
// obj.elements is an array of the elements in the collection
|
|
1979
1983
|
rep = dom.createElement('table');
|
|
1980
|
-
rep.
|
|
1984
|
+
rep.classList.add('tableFullWidth');
|
|
1981
1985
|
rep.setAttribute('about', obj.toNT());
|
|
1982
1986
|
/* Not sure which looks best -- with or without. I think without
|
|
1983
1987
|
var tr = rep.appendChild(document.createElement('tr'));
|
|
@@ -1988,7 +1992,7 @@ function _default(context) {
|
|
|
1988
1992
|
const elt = obj.elements[i];
|
|
1989
1993
|
const row = rep.appendChild(dom.createElement('tr'));
|
|
1990
1994
|
const numcell = row.appendChild(dom.createElement('td'));
|
|
1991
|
-
numcell.
|
|
1995
|
+
numcell.classList.add('obj');
|
|
1992
1996
|
numcell.setAttribute('notSelectable', 'false');
|
|
1993
1997
|
numcell.setAttribute('about', obj.toNT());
|
|
1994
1998
|
numcell.innerHTML = i + 1 + ')';
|
|
@@ -2018,5 +2022,4 @@ function _default(context) {
|
|
|
2018
2022
|
// this.panes = panes; // Allow external panes to register
|
|
2019
2023
|
|
|
2020
2024
|
return this;
|
|
2021
|
-
} // END OF OUTLINE
|
|
2022
|
-
//# sourceMappingURL=manager.js.map
|
|
2025
|
+
} // END OF OUTLINE
|
|
@@ -123,5 +123,4 @@ outlineIcons.termWidgets = {};
|
|
|
123
123
|
outlineIcons.termWidgets.optOn = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_opton, 20, 'opt on', 'Make this branch of your query mandatory.');
|
|
124
124
|
outlineIcons.termWidgets.optOff = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_optoff, 20, 'opt off', 'Make this branch of your query optional.');
|
|
125
125
|
outlineIcons.termWidgets.addTri = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_add_triple, 18, 'add tri', 'Add one');
|
|
126
|
-
// Ideally: "New "+label(subject)
|
|
127
|
-
//# sourceMappingURL=outlineIcons.js.map
|
|
126
|
+
// Ideally: "New "+label(subject)
|