issue-pane 3.0.1-e86c8e91 → 3.0.1-eb7e54ed

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.
@@ -0,0 +1,2522 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("UI"), require("SolidLogic"), require("$rdf"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["UI", "SolidLogic", "$rdf"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["IssuePane"] = factory(require("UI"), require("SolidLogic"), require("$rdf"));
8
+ else
9
+ root["IssuePane"] = factory(root["UI"], root["SolidLogic"], root["$rdf"]);
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__426__, __WEBPACK_EXTERNAL_MODULE__663__, __WEBPACK_EXTERNAL_MODULE__264__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 691
16
+ (module, __webpack_exports__, __webpack_require__) {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
20
+ /* harmony export */ });
21
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
22
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
23
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
24
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
25
+ // Imports
26
+
27
+
28
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
29
+ // Module
30
+ ___CSS_LOADER_EXPORT___.push([module.id, `.trackerBoard {
31
+ width: fit-content;
32
+ border-collapse: collapse;
33
+ margin: 1em;
34
+ }
35
+
36
+ .trackerBoardTable {
37
+ width: fit-content;
38
+ border-collapse: collapse;
39
+ }
40
+
41
+ .trackerBoardHeader {
42
+ margin: var(--spacing-sm);
43
+ padding: var(--spacing-sm) 1em;
44
+ font-weight: bold;
45
+ font-size: 120%;
46
+ }
47
+
48
+ .trackerBoardColumn {
49
+ border: 0.01em solid white;
50
+ padding: 0.1em;
51
+ /* display: flex; flex-direction: column; align-items: center; */
52
+ }
53
+
54
+ .trackerBoardHeaderCell {
55
+ margin: var(--spacing-sm);
56
+ padding: var(--spacing-sm) var(--spacing-md);
57
+ font-weight: bold;
58
+ font-size: 120%;
59
+ }
60
+
61
+ .trackerBoardCard {
62
+ width: 100%;
63
+ border: 0.01em solid grey;
64
+ border-radius: var(--border-radius-base);
65
+ padding: var(--spacing-sm);
66
+ margin: var(--spacing-sm) 0;
67
+ }
68
+
69
+ .trackerBoardCardTable {
70
+ margin: var(--spacing-md);
71
+ }
72
+ `, "",{"version":3,"sources":["webpack://./src/styles/board.css"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,yBAAyB;EACzB,WAAW;AACb;;AAEA;EACE,kBAAkB;EAClB,yBAAyB;AAC3B;;AAEA;EACE,yBAAyB;EACzB,8BAA8B;EAC9B,iBAAiB;EACjB,eAAe;AACjB;;AAEA;EACE,0BAA0B;EAC1B,cAAc;EACd,gEAAgE;AAClE;;AAEA;EACE,yBAAyB;EACzB,4CAA4C;EAC5C,iBAAiB;EACjB,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,yBAAyB;EACzB,wCAAwC;EACxC,0BAA0B;EAC1B,2BAA2B;AAC7B;;AAEA;EACE,yBAAyB;AAC3B","sourcesContent":[".trackerBoard {\n width: fit-content;\n border-collapse: collapse;\n margin: 1em;\n}\n\n.trackerBoardTable {\n width: fit-content;\n border-collapse: collapse;\n}\n\n.trackerBoardHeader {\n margin: var(--spacing-sm);\n padding: var(--spacing-sm) 1em;\n font-weight: bold;\n font-size: 120%;\n}\n\n.trackerBoardColumn {\n border: 0.01em solid white;\n padding: 0.1em;\n /* display: flex; flex-direction: column; align-items: center; */\n} \n\n.trackerBoardHeaderCell {\n margin: var(--spacing-sm);\n padding: var(--spacing-sm) var(--spacing-md);\n font-weight: bold;\n font-size: 120%;\n}\n\n.trackerBoardCard {\n width: 100%;\n border: 0.01em solid grey;\n border-radius: var(--border-radius-base);\n padding: var(--spacing-sm);\n margin: var(--spacing-sm) 0;\n}\n\n.trackerBoardCardTable {\n margin: var(--spacing-md);\n} \n"],"sourceRoot":""}]);
73
+ // Exports
74
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
75
+
76
+
77
+ /***/ },
78
+
79
+ /***/ 472
80
+ (module, __webpack_exports__, __webpack_require__) {
81
+
82
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
83
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
84
+ /* harmony export */ });
85
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
86
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
87
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
88
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
89
+ // Imports
90
+
91
+
92
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
93
+ // Module
94
+ ___CSS_LOADER_EXPORT___.push([module.id, ``, "",{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}]);
95
+ // Exports
96
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
97
+
98
+
99
+ /***/ },
100
+
101
+ /***/ 993
102
+ (module, __webpack_exports__, __webpack_require__) {
103
+
104
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
105
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
106
+ /* harmony export */ });
107
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
108
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
109
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
110
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
111
+ // Imports
112
+
113
+
114
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
115
+ // Module
116
+ ___CSS_LOADER_EXPORT___.push([module.id, `.trackerBoardIssueCard {
117
+ margin: var(--spacing-sm);
118
+ max-width: 24em;
119
+ padding: var(--spacing-sm);
120
+ border: 0.05em solid grey;
121
+ border-radius: var(--border-radius-base);
122
+ }
123
+ .trackerBoardIssueCardTable {
124
+ width: 100%;
125
+ }
126
+ .trackerBoardIssueCardTable td {
127
+ padding: 0.1em 0.7em 0.1em 0.1em;
128
+ }
129
+ .trackerBoardIssueCardTable img {
130
+ width: 1.5em;
131
+ height: 1.5em;
132
+ border-radius: 50%;
133
+ }
134
+
135
+ .trackerBoardIssueCardTable {
136
+ width: 100%;
137
+ border-collapse: collapse;
138
+ }
139
+
140
+ .trackerOverlayCloseButton {
141
+ background: none;
142
+ border: none;
143
+ cursor: pointer;
144
+ position: absolute;
145
+ top: 0.7em;
146
+ right: 0.7em;
147
+ margin: 0;
148
+ }
149
+ .trackerOverlay {
150
+ position: fixed;
151
+ top: 0;
152
+ left: 0;
153
+ width: 100%;
154
+ height: 100%;
155
+ background: rgba(0, 0, 0, 0.5);
156
+ display: flex;
157
+ justify-content: center;
158
+ align-items: center;
159
+ z-index: 9999;
160
+ }
161
+
162
+ .trackerIssue {
163
+ position: relative;
164
+ background: white;
165
+ padding: var(--spacing-md);
166
+ border-radius: var(--border-radius-base);
167
+ max-width: 80%;
168
+ max-height: 80%;
169
+ overflow: auto;
170
+ }
171
+
172
+ .trackerIssueIconButton {
173
+ width: 1.5em;
174
+ height: 1.5em;
175
+ border-radius: 50%;
176
+ }
177
+
178
+ .trackerIssueSpacer {
179
+ height: 1em;
180
+ margin: 0.5em;
181
+ }
182
+
183
+ .trackerIssueForm {
184
+ margin-top: var(--spacing-md);
185
+ padding: var(--spacing-sm);
186
+ border: 0.05em solid grey;
187
+ border-radius: var(--border-radius-base);
188
+ }
189
+ .trackerIssueSubIssuePanel {
190
+ margin: var(--spacing-md);
191
+ padding: var(--spacing-md);
192
+ border: 0.05em solid grey;
193
+ border-radius: var(--border-radius-base);
194
+ }
195
+
196
+ .trackerIssueSubIssuePanelSupersList {
197
+ display: flex;
198
+ flex-wrap: wrap;
199
+ gap: var(--spacing-sm);
200
+ }
201
+
202
+ .trackerIssueSubIssuePanelSubsList {
203
+ display: flex;
204
+ flex-wrap: wrap;
205
+ gap: var(--spacing-sm);
206
+ flex-direction: row-reverse; /* Not sure if it should be row or column */
207
+ }
208
+ .trackerIssueSubIssuePanelNewSubButton {
209
+ margin: var(--spacing-sm) var(--spacing-md);
210
+ padding: var(--spacing-sm);
211
+ border: 0.05em solid grey;
212
+ border-radius: var(--border-radius-base);
213
+ background-color: #f0f0f0;
214
+ cursor: pointer;
215
+ float: right;
216
+ }
217
+
218
+ .trackerIssueTrackerLink {
219
+ float: right;
220
+ margin: var(--spacing-sm) var(--spacing-md);
221
+ padding: var(--spacing-sm);
222
+ }
223
+
224
+ .trackerIssueDeleteButton {
225
+ color: white;
226
+ border: none;
227
+ padding: var(--spacing-sm);
228
+ border-radius: var(--border-radius-base);
229
+ cursor: pointer;
230
+ float: right; /* this is the only one from the code */
231
+ }
232
+
233
+ /* below styles the remove task popup */
234
+ .trackerIssue > div[style*="position: relative"] {
235
+ z-index: 2000;
236
+ }
237
+
238
+ .trackerIssue > div[style*="position: relative"] > div[style*="position: absolute"] {
239
+ top: -1em !important;
240
+ left: 50% !important;
241
+ transform: translate(-55%, -3em);
242
+ z-index: 2001;
243
+ }
244
+
245
+ .trackerIssueRefreshButton {
246
+ clear: both;
247
+ position: relative;
248
+ z-index: 1;
249
+ }
250
+
251
+ /* below not from code from ai */
252
+ .trackerIssueMessageArea {
253
+ border: 0.05em solid grey;
254
+ border-radius: var(--border-radius-base);
255
+ padding: var(--spacing-md);
256
+ }
257
+
258
+ .trackerIssueMessageAreaError {
259
+ color: red;
260
+ font-weight: bold;
261
+ }
262
+ /* ends here for ai generated */
263
+
264
+ `, "",{"version":3,"sources":["webpack://./src/styles/issue.css"],"names":[],"mappings":"AAAA;EACE,yBAAyB;EACzB,eAAe;EACf,0BAA0B;EAC1B,yBAAyB;EACzB,wCAAwC;AAC1C;AACA;EACE,WAAW;AACb;AACA;EACE,gCAAgC;AAClC;AACA;EACE,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,yBAAyB;AAC3B;;AAEA;EACE,gBAAgB;EAChB,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,UAAU;EACV,YAAY;EACZ,SAAS;AACX;AACA;EACE,eAAe;EACf,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,8BAA8B;EAC9B,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,0BAA0B;EAC1B,wCAAwC;EACxC,cAAc;EACd,eAAe;EACf,cAAc;AAChB;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,aAAa;AACf;;AAEA;EACE,6BAA6B;EAC7B,0BAA0B;EAC1B,yBAAyB;EACzB,wCAAwC;AAC1C;AACA;EACE,yBAAyB;EACzB,0BAA0B;EAC1B,yBAAyB;EACzB,wCAAwC;AAC1C;;AAEA;EACE,aAAa;EACb,eAAe;EACf,sBAAsB;AACxB;;AAEA;EACE,aAAa;EACb,eAAe;EACf,sBAAsB;EACtB,4BAA4B,EAAE,2CAA2C;AAC3E;AACA;EACE,2CAA2C;EAC3C,0BAA0B;EAC1B,yBAAyB;EACzB,wCAAwC;EACxC,yBAAyB;EACzB,eAAe;EACf,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,2CAA2C;EAC3C,0BAA0B;AAC5B;;AAEA;EACE,YAAY;EACZ,YAAY;EACZ,0BAA0B;EAC1B,wCAAwC;EACxC,eAAe;EACf,YAAY,EAAE,uCAAuC;AACvD;;AAEA,uCAAuC;AACvC;EACE,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,oBAAoB;EACpB,gCAAgC;EAChC,aAAa;AACf;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,UAAU;AACZ;;AAEA,gCAAgC;AAChC;EACE,yBAAyB;EACzB,wCAAwC;EACxC,0BAA0B;AAC5B;;AAEA;EACE,UAAU;EACV,iBAAiB;AACnB;AACA,+BAA+B","sourcesContent":[".trackerBoardIssueCard {\n margin: var(--spacing-sm);\n max-width: 24em;\n padding: var(--spacing-sm);\n border: 0.05em solid grey;\n border-radius: var(--border-radius-base);\n}\n.trackerBoardIssueCardTable {\n width: 100%;\n}\n.trackerBoardIssueCardTable td {\n padding: 0.1em 0.7em 0.1em 0.1em;\n}\n.trackerBoardIssueCardTable img {\n width: 1.5em;\n height: 1.5em;\n border-radius: 50%;\n}\n\n.trackerBoardIssueCardTable {\n width: 100%;\n border-collapse: collapse;\n}\n\n.trackerOverlayCloseButton {\n background: none;\n border: none;\n cursor: pointer;\n position: absolute;\n top: 0.7em;\n right: 0.7em;\n margin: 0;\n}\n.trackerOverlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n}\n\n.trackerIssue {\n position: relative;\n background: white;\n padding: var(--spacing-md);\n border-radius: var(--border-radius-base);\n max-width: 80%;\n max-height: 80%;\n overflow: auto;\n}\n\n.trackerIssueIconButton {\n width: 1.5em;\n height: 1.5em;\n border-radius: 50%;\n}\n\n.trackerIssueSpacer {\n height: 1em;\n margin: 0.5em;\n}\n\n.trackerIssueForm {\n margin-top: var(--spacing-md);\n padding: var(--spacing-sm);\n border: 0.05em solid grey;\n border-radius: var(--border-radius-base);\n}\n.trackerIssueSubIssuePanel {\n margin: var(--spacing-md);\n padding: var(--spacing-md);\n border: 0.05em solid grey;\n border-radius: var(--border-radius-base);\n}\n\n.trackerIssueSubIssuePanelSupersList {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-sm);\n}\n\n.trackerIssueSubIssuePanelSubsList {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-sm);\n flex-direction: row-reverse; /* Not sure if it should be row or column */\n}\n.trackerIssueSubIssuePanelNewSubButton {\n margin: var(--spacing-sm) var(--spacing-md);\n padding: var(--spacing-sm);\n border: 0.05em solid grey;\n border-radius: var(--border-radius-base);\n background-color: #f0f0f0;\n cursor: pointer;\n float: right;\n}\n\n.trackerIssueTrackerLink {\n float: right;\n margin: var(--spacing-sm) var(--spacing-md);\n padding: var(--spacing-sm);\n}\n\n.trackerIssueDeleteButton {\n color: white;\n border: none;\n padding: var(--spacing-sm);\n border-radius: var(--border-radius-base);\n cursor: pointer;\n float: right; /* this is the only one from the code */\n}\n\n/* below styles the remove task popup */\n.trackerIssue > div[style*=\"position: relative\"] {\n z-index: 2000;\n}\n\n.trackerIssue > div[style*=\"position: relative\"] > div[style*=\"position: absolute\"] {\n top: -1em !important;\n left: 50% !important;\n transform: translate(-55%, -3em);\n z-index: 2001;\n}\n\n.trackerIssueRefreshButton {\n clear: both;\n position: relative;\n z-index: 1;\n}\n\n/* below not from code from ai */\n.trackerIssueMessageArea {\n border: 0.05em solid grey;\n border-radius: var(--border-radius-base);\n padding: var(--spacing-md);\n}\n\n.trackerIssueMessageAreaError {\n color: red;\n font-weight: bold;\n}\n/* ends here for ai generated */\n\n"],"sourceRoot":""}]);
265
+ // Exports
266
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
267
+
268
+
269
+ /***/ },
270
+
271
+ /***/ 95
272
+ (module, __webpack_exports__, __webpack_require__) {
273
+
274
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
275
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
276
+ /* harmony export */ });
277
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
278
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
279
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
280
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
281
+ // Imports
282
+
283
+
284
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
285
+ // Module
286
+ ___CSS_LOADER_EXPORT___.push([module.id, `.trackerIssuePaneTable {
287
+ width: fit-content;
288
+ border-collapse: collapse;
289
+ }
290
+ .trackerIssuePaneTable td {
291
+ padding: 0.1em 0.7em 0.1em 0.1em;
292
+ }
293
+ .trackerIssuePaneTable img {
294
+ width: 1.5em;
295
+ height: 1.5em;
296
+ border-radius: 50%;
297
+ }
298
+
299
+ .trackerIssuePaneNewIssueButtonContainer {
300
+ display: flex;
301
+ flex-direction: row;
302
+ }
303
+
304
+ .trackerIssuePaneNewIssueButton {
305
+ display: inline-flex;
306
+ background-color: #F0F0F0;
307
+ color: #505050;
308
+ flex-direction: row;
309
+ align-items: center;
310
+ justify-content: flex-start;
311
+ border: 1px solid grey;
312
+ border-radius: var(--border-radius-base);
313
+ cursor: pointer;
314
+ gap: var(--spacing-sm);
315
+ white-space: nowrap;
316
+ text-align: left;
317
+ padding: var(--spacing-sm);
318
+ font-size: 100%;
319
+ margin: var(--spacing-sm);
320
+ }
321
+
322
+ .trackerIssuePaneNewIssueButton > .trackerIssuePaneNewIssueButtonImage {
323
+ order: 1;
324
+ display: inline-block;
325
+ width: 1em;
326
+ height: 1em;
327
+ margin: 0.2em;
328
+ vertical-align: middle;
329
+ }
330
+
331
+ .trackerIssuePaneNewIssueButton > .trackerIssuePaneNewIssueButtonText {
332
+ order: 2;
333
+ display: inline-block;
334
+ margin-left: 0;
335
+ vertical-align: middle;
336
+ }
337
+
338
+ .trackerIssuePaneOverflow {
339
+ position: fixed;
340
+ z-index: 100;
341
+ top: 1.51em;
342
+ right: 2em;
343
+ left: 2em;
344
+ bottom: 1.5em;
345
+ border: 0.1em grey solid;
346
+ overflow: scroll;
347
+ }
348
+ .trackerIssuePaneLoginButton {
349
+ margin: var(--spacing-sm) var(--spacing-md);
350
+ }
351
+ `, "",{"version":3,"sources":["webpack://./src/styles/issuePane.css"],"names":[],"mappings":"AAAA;EACE,kBAAkB;EAClB,yBAAyB;AAC3B;AACA;EACE,gCAAgC;AAClC;AACA;EACE,YAAY;EACZ,aAAa;EACb,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,yBAAyB;EACzB,cAAc;EACd,mBAAmB;EACnB,mBAAmB;EACnB,2BAA2B;EAC3B,sBAAsB;EACtB,wCAAwC;EACxC,eAAe;EACf,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,yBAAyB;AAC3B;;AAEA;EACE,QAAQ;EACR,qBAAqB;EACrB,UAAU;EACV,WAAW;EACX,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,QAAQ;EACR,qBAAqB;EACrB,cAAc;EACd,sBAAsB;AACxB;;AAEA;EACE,eAAe;EACf,YAAY;EACZ,WAAW;EACX,UAAU;EACV,SAAS;EACT,aAAa;EACb,wBAAwB;EACxB,gBAAgB;AAClB;AACA;EACE,2CAA2C;AAC7C","sourcesContent":[".trackerIssuePaneTable {\n width: fit-content;\n border-collapse: collapse;\n}\n.trackerIssuePaneTable td {\n padding: 0.1em 0.7em 0.1em 0.1em;\n}\n.trackerIssuePaneTable img {\n width: 1.5em;\n height: 1.5em;\n border-radius: 50%;\n}\n\n.trackerIssuePaneNewIssueButtonContainer {\n display: flex;\n flex-direction: row;\n}\n\n.trackerIssuePaneNewIssueButton {\n display: inline-flex;\n background-color: #F0F0F0;\n color: #505050;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n border: 1px solid grey;\n border-radius: var(--border-radius-base);\n cursor: pointer;\n gap: var(--spacing-sm);\n white-space: nowrap;\n text-align: left;\n padding: var(--spacing-sm);\n font-size: 100%;\n margin: var(--spacing-sm);\n}\n\n.trackerIssuePaneNewIssueButton > .trackerIssuePaneNewIssueButtonImage {\n order: 1;\n display: inline-block;\n width: 1em;\n height: 1em;\n margin: 0.2em;\n vertical-align: middle;\n}\n\n.trackerIssuePaneNewIssueButton > .trackerIssuePaneNewIssueButtonText {\n order: 2;\n display: inline-block;\n margin-left: 0;\n vertical-align: middle;\n}\n\n.trackerIssuePaneOverflow {\n position: fixed;\n z-index: 100;\n top: 1.51em;\n right: 2em;\n left: 2em;\n bottom: 1.5em;\n border: 0.1em grey solid;\n overflow: scroll;\n}\n.trackerIssuePaneLoginButton {\n margin: var(--spacing-sm) var(--spacing-md);\n}\n"],"sourceRoot":""}]);
352
+ // Exports
353
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
354
+
355
+
356
+ /***/ },
357
+
358
+ /***/ 233
359
+ (module, __webpack_exports__, __webpack_require__) {
360
+
361
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
362
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
363
+ /* harmony export */ });
364
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
365
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
366
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
367
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
368
+ // Imports
369
+
370
+
371
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
372
+ // Module
373
+ ___CSS_LOADER_EXPORT___.push([module.id, `.trackerNewIssueForm {
374
+ display: flex;
375
+ flex-direction: column;
376
+ gap: var(--spacing-sm);
377
+ padding: var(--spacing-md);
378
+ }
379
+
380
+ .trackerNewIssueTitleField {
381
+ margin: var(--spacing-sm);
382
+ font-size: 100%;
383
+ padding: var(--spacing-sm);
384
+ width: 100%;
385
+ }
386
+ `, "",{"version":3,"sources":["webpack://./src/styles/newIssue.css"],"names":[],"mappings":"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,sBAAsB;EACtB,0BAA0B;AAC5B;;AAEA;EACE,yBAAyB;EACzB,eAAe;EACf,0BAA0B;EAC1B,WAAW;AACb","sourcesContent":[".trackerNewIssueForm {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-sm);\n padding: var(--spacing-md);\n}\n\n.trackerNewIssueTitleField {\n margin: var(--spacing-sm);\n font-size: 100%;\n padding: var(--spacing-sm);\n width: 100%;\n}\n"],"sourceRoot":""}]);
387
+ // Exports
388
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
389
+
390
+
391
+ /***/ },
392
+
393
+ /***/ 788
394
+ (module, __webpack_exports__, __webpack_require__) {
395
+
396
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
397
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
398
+ /* harmony export */ });
399
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
400
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
401
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
402
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
403
+ // Imports
404
+
405
+
406
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
407
+ // Module
408
+ ___CSS_LOADER_EXPORT___.push([module.id, `.trackerNewTrackerButton {
409
+ margin: var(--spacing-sm) var(--spacing-md);
410
+ }
411
+ `, "",{"version":3,"sources":["webpack://./src/styles/newTracker.css"],"names":[],"mappings":"AAAA;EACE,2CAA2C;AAC7C","sourcesContent":[".trackerNewTrackerButton {\n margin: var(--spacing-sm) var(--spacing-md);\n}\n"],"sourceRoot":""}]);
412
+ // Exports
413
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
414
+
415
+
416
+ /***/ },
417
+
418
+ /***/ 314
419
+ (module) {
420
+
421
+
422
+
423
+ /*
424
+ MIT License http://www.opensource.org/licenses/mit-license.php
425
+ Author Tobias Koppers @sokra
426
+ */
427
+ module.exports = function (cssWithMappingToString) {
428
+ var list = [];
429
+
430
+ // return the list of modules as css string
431
+ list.toString = function toString() {
432
+ return this.map(function (item) {
433
+ var content = "";
434
+ var needLayer = typeof item[5] !== "undefined";
435
+ if (item[4]) {
436
+ content += "@supports (".concat(item[4], ") {");
437
+ }
438
+ if (item[2]) {
439
+ content += "@media ".concat(item[2], " {");
440
+ }
441
+ if (needLayer) {
442
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
443
+ }
444
+ content += cssWithMappingToString(item);
445
+ if (needLayer) {
446
+ content += "}";
447
+ }
448
+ if (item[2]) {
449
+ content += "}";
450
+ }
451
+ if (item[4]) {
452
+ content += "}";
453
+ }
454
+ return content;
455
+ }).join("");
456
+ };
457
+
458
+ // import a list of modules into the list
459
+ list.i = function i(modules, media, dedupe, supports, layer) {
460
+ if (typeof modules === "string") {
461
+ modules = [[null, modules, undefined]];
462
+ }
463
+ var alreadyImportedModules = {};
464
+ if (dedupe) {
465
+ for (var k = 0; k < this.length; k++) {
466
+ var id = this[k][0];
467
+ if (id != null) {
468
+ alreadyImportedModules[id] = true;
469
+ }
470
+ }
471
+ }
472
+ for (var _k = 0; _k < modules.length; _k++) {
473
+ var item = [].concat(modules[_k]);
474
+ if (dedupe && alreadyImportedModules[item[0]]) {
475
+ continue;
476
+ }
477
+ if (typeof layer !== "undefined") {
478
+ if (typeof item[5] === "undefined") {
479
+ item[5] = layer;
480
+ } else {
481
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
482
+ item[5] = layer;
483
+ }
484
+ }
485
+ if (media) {
486
+ if (!item[2]) {
487
+ item[2] = media;
488
+ } else {
489
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
490
+ item[2] = media;
491
+ }
492
+ }
493
+ if (supports) {
494
+ if (!item[4]) {
495
+ item[4] = "".concat(supports);
496
+ } else {
497
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
498
+ item[4] = supports;
499
+ }
500
+ }
501
+ list.push(item);
502
+ }
503
+ };
504
+ return list;
505
+ };
506
+
507
+ /***/ },
508
+
509
+ /***/ 354
510
+ (module) {
511
+
512
+
513
+
514
+ module.exports = function (item) {
515
+ var content = item[1];
516
+ var cssMapping = item[3];
517
+ if (!cssMapping) {
518
+ return content;
519
+ }
520
+ if (typeof btoa === "function") {
521
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
522
+ var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
523
+ var sourceMapping = "/*# ".concat(data, " */");
524
+ return [content].concat([sourceMapping]).join("\n");
525
+ }
526
+ return [content].join("\n");
527
+ };
528
+
529
+ /***/ },
530
+
531
+ /***/ 72
532
+ (module) {
533
+
534
+
535
+
536
+ var stylesInDOM = [];
537
+ function getIndexByIdentifier(identifier) {
538
+ var result = -1;
539
+ for (var i = 0; i < stylesInDOM.length; i++) {
540
+ if (stylesInDOM[i].identifier === identifier) {
541
+ result = i;
542
+ break;
543
+ }
544
+ }
545
+ return result;
546
+ }
547
+ function modulesToDom(list, options) {
548
+ var idCountMap = {};
549
+ var identifiers = [];
550
+ for (var i = 0; i < list.length; i++) {
551
+ var item = list[i];
552
+ var id = options.base ? item[0] + options.base : item[0];
553
+ var count = idCountMap[id] || 0;
554
+ var identifier = "".concat(id, " ").concat(count);
555
+ idCountMap[id] = count + 1;
556
+ var indexByIdentifier = getIndexByIdentifier(identifier);
557
+ var obj = {
558
+ css: item[1],
559
+ media: item[2],
560
+ sourceMap: item[3],
561
+ supports: item[4],
562
+ layer: item[5]
563
+ };
564
+ if (indexByIdentifier !== -1) {
565
+ stylesInDOM[indexByIdentifier].references++;
566
+ stylesInDOM[indexByIdentifier].updater(obj);
567
+ } else {
568
+ var updater = addElementStyle(obj, options);
569
+ options.byIndex = i;
570
+ stylesInDOM.splice(i, 0, {
571
+ identifier: identifier,
572
+ updater: updater,
573
+ references: 1
574
+ });
575
+ }
576
+ identifiers.push(identifier);
577
+ }
578
+ return identifiers;
579
+ }
580
+ function addElementStyle(obj, options) {
581
+ var api = options.domAPI(options);
582
+ api.update(obj);
583
+ var updater = function updater(newObj) {
584
+ if (newObj) {
585
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
586
+ return;
587
+ }
588
+ api.update(obj = newObj);
589
+ } else {
590
+ api.remove();
591
+ }
592
+ };
593
+ return updater;
594
+ }
595
+ module.exports = function (list, options) {
596
+ options = options || {};
597
+ list = list || [];
598
+ var lastIdentifiers = modulesToDom(list, options);
599
+ return function update(newList) {
600
+ newList = newList || [];
601
+ for (var i = 0; i < lastIdentifiers.length; i++) {
602
+ var identifier = lastIdentifiers[i];
603
+ var index = getIndexByIdentifier(identifier);
604
+ stylesInDOM[index].references--;
605
+ }
606
+ var newLastIdentifiers = modulesToDom(newList, options);
607
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
608
+ var _identifier = lastIdentifiers[_i];
609
+ var _index = getIndexByIdentifier(_identifier);
610
+ if (stylesInDOM[_index].references === 0) {
611
+ stylesInDOM[_index].updater();
612
+ stylesInDOM.splice(_index, 1);
613
+ }
614
+ }
615
+ lastIdentifiers = newLastIdentifiers;
616
+ };
617
+ };
618
+
619
+ /***/ },
620
+
621
+ /***/ 659
622
+ (module) {
623
+
624
+
625
+
626
+ var memo = {};
627
+
628
+ /* istanbul ignore next */
629
+ function getTarget(target) {
630
+ if (typeof memo[target] === "undefined") {
631
+ var styleTarget = document.querySelector(target);
632
+
633
+ // Special case to return head of iframe instead of iframe itself
634
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
635
+ try {
636
+ // This will throw an exception if access to iframe is blocked
637
+ // due to cross-origin restrictions
638
+ styleTarget = styleTarget.contentDocument.head;
639
+ } catch (e) {
640
+ // istanbul ignore next
641
+ styleTarget = null;
642
+ }
643
+ }
644
+ memo[target] = styleTarget;
645
+ }
646
+ return memo[target];
647
+ }
648
+
649
+ /* istanbul ignore next */
650
+ function insertBySelector(insert, style) {
651
+ var target = getTarget(insert);
652
+ if (!target) {
653
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
654
+ }
655
+ target.appendChild(style);
656
+ }
657
+ module.exports = insertBySelector;
658
+
659
+ /***/ },
660
+
661
+ /***/ 540
662
+ (module) {
663
+
664
+
665
+
666
+ /* istanbul ignore next */
667
+ function insertStyleElement(options) {
668
+ var element = document.createElement("style");
669
+ options.setAttributes(element, options.attributes);
670
+ options.insert(element, options.options);
671
+ return element;
672
+ }
673
+ module.exports = insertStyleElement;
674
+
675
+ /***/ },
676
+
677
+ /***/ 56
678
+ (module, __unused_webpack_exports, __webpack_require__) {
679
+
680
+
681
+
682
+ /* istanbul ignore next */
683
+ function setAttributesWithoutAttributes(styleElement) {
684
+ var nonce = true ? __webpack_require__.nc : 0;
685
+ if (nonce) {
686
+ styleElement.setAttribute("nonce", nonce);
687
+ }
688
+ }
689
+ module.exports = setAttributesWithoutAttributes;
690
+
691
+ /***/ },
692
+
693
+ /***/ 825
694
+ (module) {
695
+
696
+
697
+
698
+ /* istanbul ignore next */
699
+ function apply(styleElement, options, obj) {
700
+ var css = "";
701
+ if (obj.supports) {
702
+ css += "@supports (".concat(obj.supports, ") {");
703
+ }
704
+ if (obj.media) {
705
+ css += "@media ".concat(obj.media, " {");
706
+ }
707
+ var needLayer = typeof obj.layer !== "undefined";
708
+ if (needLayer) {
709
+ css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
710
+ }
711
+ css += obj.css;
712
+ if (needLayer) {
713
+ css += "}";
714
+ }
715
+ if (obj.media) {
716
+ css += "}";
717
+ }
718
+ if (obj.supports) {
719
+ css += "}";
720
+ }
721
+ var sourceMap = obj.sourceMap;
722
+ if (sourceMap && typeof btoa !== "undefined") {
723
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
724
+ }
725
+
726
+ // For old IE
727
+ /* istanbul ignore if */
728
+ options.styleTagTransform(css, styleElement, options.options);
729
+ }
730
+ function removeStyleElement(styleElement) {
731
+ // istanbul ignore if
732
+ if (styleElement.parentNode === null) {
733
+ return false;
734
+ }
735
+ styleElement.parentNode.removeChild(styleElement);
736
+ }
737
+
738
+ /* istanbul ignore next */
739
+ function domAPI(options) {
740
+ if (typeof document === "undefined") {
741
+ return {
742
+ update: function update() {},
743
+ remove: function remove() {}
744
+ };
745
+ }
746
+ var styleElement = options.insertStyleElement(options);
747
+ return {
748
+ update: function update(obj) {
749
+ apply(styleElement, options, obj);
750
+ },
751
+ remove: function remove() {
752
+ removeStyleElement(styleElement);
753
+ }
754
+ };
755
+ }
756
+ module.exports = domAPI;
757
+
758
+ /***/ },
759
+
760
+ /***/ 113
761
+ (module) {
762
+
763
+
764
+
765
+ /* istanbul ignore next */
766
+ function styleTagTransform(css, styleElement) {
767
+ if (styleElement.styleSheet) {
768
+ styleElement.styleSheet.cssText = css;
769
+ } else {
770
+ while (styleElement.firstChild) {
771
+ styleElement.removeChild(styleElement.firstChild);
772
+ }
773
+ styleElement.appendChild(document.createTextNode(css));
774
+ }
775
+ }
776
+ module.exports = styleTagTransform;
777
+
778
+ /***/ },
779
+
780
+ /***/ 197
781
+ (module) {
782
+
783
+ module.exports = "# Ontology for user interface hints and forms\n#\n# See also related: the Fresnel language\n#\n@prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#>.\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#>.\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix r: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.\n@prefix s: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix tt: <http://dig.csail.mit.edu/2010/issues/track#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n@prefix : <http://www.w3.org/ns/ui#>.\n@prefix wf: <http://www.w3.org/2005/01/wf/flow#>.\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n\n@keywords is, of, a.\n\n<> dc:title \"An ontology for User Interface description, Hints and Forms.\";\n dc:description \"\"\"The User Interface ontology allows the definition\n of forms for processing RDF model data, and include a bootstrap form for\n editing forms. It allows user interface hints such as background colors,\n can be associated with objects and classes.\n \"\"\";\n dc:created 2010-08-07;\n dc:license <https://creativecommons.org/publicdomain/zero/1.0/>;\n dc:modified \"\"\"$Date: 2020/03/22 16:53:21 $\"\"\";\n dc:author <https://www.w3.org/People/Berners-Lee/card#i>.\n\nstyle a r:Property, owl:DatatypeProperty;\n s:label \"style\";\n prompt \"CSS style\";\n s:comment \"\"\"Must be a valid CSS style string such as one could put in\n an HTML style attribute. Depending on the user interface system, this can\n by given to individuals, classes or properties. It is up to a user interface\n which wants to draw on them to pick how it uses styles from which parts\n of the data it has. For example, the style of a class may be picked\n to distinguish information about things in that class.\"\"\".\n\nbackgroundColor a r:Property, owl:DatatypeProperty;\n s:label \"background color\"@en;\n s:range ui:Color;\n s:comment \"\"\"Must be a valid CSS color string such as one could put in\n an HTML style attribute. This should be in the #xxxxxx form,\n (with 6 digits of hex) so that it\n can work with Graphviz.\"\"\".\n\nbackgroundImage a r:Property, owl:DatatypeProperty;\n s:label \"background image\"@en;\n s:comment \"\"\"URI or base64 representation of an image\"\"\".\n\ncolor a r:Property, owl:DatatypeProperty;\n s:label \"color\"@en;\n s:range ui:Color;\n s:comment \"\"\"Must be a valid CSS color string such as one could put in\n an HTML style attribute. This should be in the #xxxxxx form,\n (with 6 digits of hex) so that it\n can work with Graphviz.\"\"\".\n\n\n\nsortPriority a r:Property, owl:DatatypeProperty;\n s:label \"sort priority\";\n s:range xsd:integer;\n s:comment \"\"\"When individuals or classes must be sorted, then\n if they are given different values of sortPriority a user agent can\n use this as a hint to how to present information.\"\"\".\n\nsortBy a r:Property;\n s:label \"sort by\";\n s:domain s:Class;\n s:range r:Property;\n s:comment \"\"\"A property which typically is used to sort\n members of a given class.\"\"\".\n\nseqeunce a r:Property;\n s:label \"sequence number\";\n s:range xsd:integer;\n s:comment \"\"\"The sequence in which this item is arranged with repect to other parts.\"\"\".\n\ninitialProperties a r:Property;\n s:label \"initial properties\";\n s:domain s:Class;\n s:range r:List; # List of r:Property\n s:comment \"\"\"A really simple way of enabling user interfaces to\n create new information about a class of things is to make a define of properties\n to be specified when a information about a new item\n (\"New item\" here means an item which the system\n does not have prvious information about yet,\n not an items which has just been created,\n like new friend as opposed to new baby)\"\"\";\n prompt \"Properties to be specified for new ones\".\n\ntableProperties a r:Property;\n s:domain s:Class;\n s:label \"table properties\";\n s:range r:List; # List of r:Property\n s:comment \"\"\"This is a crude way of specifying a table-based\n view for objects of this class.\"\"\";\n prompt \"Properties to be given in a default table view\".\n\nprompt a r:Property;\n s:label \"user prompt\";\n s:comment \"\"\"A string for the UI to use if the user needs a longer\n prompts than just a field name, the rdfs:label. \"\"\";\n ui:prompt \"A longer prompt for a user inputting this property\".\n\n\n# A Taxonomy of Field types\n\nui:Form owl:disjointUnionOf ( ui:ValueField ui:Group ui:Choice ui:Classifier ui:Options ui:Multiple ui:Heading ui:Comment);\n s:comment \"\"\"A form can be any type of single field, or typically a Group of several fields,\n including interspersed headings and comments. \"\"\".\nui:Single owl:disjointUnionOf ( ui:ValueField ui:Group ui:Choice ui:Classifier ui:Options ui:Heading ui:Comment).\nui:ValueField owl:disjointUnionOf ( ui:TextField ui:NumericField ui:ColorField ui:DateField ui:DateTimeField ui:PhoneField ui:EmailField).\nui:NumericField owl:disjointUnionOf (ui:BooleanField ui:TriStateField ui:IntegerField ui:DecimalField ui:FloatField).\n# ui:Multiple owl:disjointUnionOf ( ui:ZeroOrMore ui:OneOrMore ).\nui:TextField owl:disjointUnionOf (ui:SingleLineTextField ui:MultiLineTextField).\n\nui:Form a s:Class; is s:subClassOf of ui:ValueField, ui:Group, ui:Choice, ui:Heading, ui:Comment, ui:Classifier, ui:Options, ui:Multiple.\nui:Single a s:Class; is s:subClassOf of ui:ValueField, ui:Group, ui:Choice, ui:Heading, ui:Comment, ui:Classifier, ui:Options.\nui:ValueField a s:Class; is s:subClassOf of ui:TextField, ui:NumericField, ui:ColorField, ui:DateField, ui:DateTimeField, ui:PhoneField, ui:EmailField.\nui:NumericField a s:Class; is s:subClassOf of ui:BooleanField, ui:TriStateField, ui:IntegerField, ui:DecimalField, ui:FloatField.\nui:TextField a s:Class; is s:subClassOf of ui:SingleLineTextField, ui:MultiLineTextField.\n\nui:Classifier a s:Class; s:label \"classifier\";\n s:comment \"\"\"A classifier allows the user to select the type of an object.\n The possible types must be subclasses of some overall class, the \"category\".\n (Ideally, the superclass is also set up as the disjoint union of the subclasses,\n if they are disjoint.)\n\n The form normally stores the resulting classes using an rdf:type triple,\n but a different predicate can be used if required, so the classifier field\n needs is 'property' defined too.\n\n If the subclass selected itself is has subclasses defined, the user can\n recursively select from them in turn, as many levels as needed.\"\"\".\n\nui:property a r:Property; s:domain ui:Form; s:range r:Property;\n s:label \"property to be stored\"@en;\n s:comment \"\"\"Many fields prompt for information about a given property of the subject.\n When field is filled in, this gives which property is written into the data.\"\"\".\n\nui:category a r:Property; s:domain ui:Classifier; s:range s:Class;\n s:label \"overall superclass\"@en;\n s:comment \"\"\"The superclass subclasses of which will be selected.\"\"\".\n\nui:dependingOn a r:Property; s:domain ui:Options; s:range r:Property;\n s:label \"depending on\"@en;\n s:comment \"\"\"Many fields prompt for information about a given property of the subject\"\"\".\n\nui:for a r:Property; s:label \"for\"@en; s:comment \"The value for which this case is selected.\".\nui:use a r:Property; s:range ui:Form.\n\nui:part a r:Property; s:label \"part\"@en ; s:domain ui:Form; s:range ui:Form. # Used for Multiple field - the subform for each item\nui:parts a r:Property; s:label \"parts\"@en ; s:domain ui:Form; s:range r:Collection. # (of Forms) The ordered set of fields in a group\nui:ordered e r:Property; s:label \"ordered\"; s:range xsd:Boolean . # Could be useful for all kinds of things in future so not restricted to Multiple\n\nui:from a r:Property; s:domain ui:Choice; s:range r:Class;\n s:label \"from\"; ui:prompt \"from what class\".\n\nui:size a r:Property; s:domain ui:ValueField; s:range xsd:integer;\n s:label \"size of field\";\n ui:prompt \"size of field in characters\".\n\nui:maxLength a r:Property; s:domain ui:TextField; s:range xsd:integer;\n s:label \"max length of value\".\n\nui:minValue a r:Property; s:domain ui:ValueField; s:label \"min\". # @@ range?\nui:maxValue a r:Property; s:domain ui:ValueField; s:label \"max\".\n\n ui:creationForm a r:Property; s:domain s:Class; s:range ui:Form;\n s:label \"creation form\";\n s:comment \"\"\"A form which may be used to collect information about a\n hitherto locally undocumented instance instance of this class.\"\"\".\n\n ui:annotationForm a r:Property; s:domain s:Class; s:range ui:Form;\n s:label \"annotation form\";\n s:comment \"\"\"A form which may be used to add more infromation to an\ninstance of this class which we know something about. Anything from\nadding just add one more fact, to adding a whole lot of information about a specific\nfacet of the thing.\n\"\"\".\n\n\n#############################################\n#\n# Form for editing Forms\n#\n\nFormForm a ui:Form;\n dc:title \"Form for editing Forms\";\n is ui:creationForm of Form;\n a ui:Group; ui:parts (FF1 FF2 FF3 FieldList) .\n\n FF1 ui:sequence 1; a ui:Heading; ui:contents \"Edit Form\"@en .\n FF2 ui:sequence 2; a ui:SingleLineTextField; ui:property dc:title; ui:size 60 .\n FF3 ui:sequence 3; a ui:Comment; ui:contents\n \"\"\"To add a field to the form, press the plus at the bottom,\n and then select what sort of field you want.\"\"\"@en; ui:style \"background-color: #ffe;\" .\n\n FieldList ui:sequence 10; a ui:Multiple; ui:ordered true; ui:property ui:parts; ui:part FieldForm .\n\nFieldForm a ui:Group;\n dc:title \"Form for selecting a type of field\";\n ui:parts (\n\n [ ui:sequence 1; a ui:Classifier; ui:property r:type; ui:category ui:Form]\n\n [ a ui:Options; ui:sequence 2; ui:dependingOn r:type;\n\n ui:case [ ui:for ui:TextField; ui:use [a ui:Group; ui:parts (\n [ a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:DatatypeProperty] # @@@ Needs inference on current web\n [ a ui:IntegerField; ui:property ui:size; ui:label \"field size\"; ui:min 1; ui:max 4096]\n [ a ui:IntegerField; ui:property ui:maxLength; ui:label \"Max. length of string\"; ui:min 1]\n )]];\n\n ui:case [ ui:for ui:IntegerField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:IntegerField; ui:property ui:min; ui:label \"minimum value\"]\n [ ui:sequence 3; a ui:IntegerField; ui:property ui:max; ui:label \"maximum value\"] ) ]];\n\n ui:case [ ui:for ui:DecimalField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:DecimalField; ui:property ui:min; ui:label \"minimum value\"]\n [ ui:sequence 3; a ui:DecimalField; ui:property ui:max; ui:label \"maximum value\"] ) ]];\n\n ui:case [ ui:for ui:FloatField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:FloatField; ui:property ui:min; ui:label \"minimum value\"]\n [ ui:sequence 3; a ui:FloatField; ui:property ui:max; ui:label \"maximum value\"] ) ]];\n\n ui:case [ ui:for ui:ColorField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:DatatypeProperty] )\n ]];\n\n ui:case [ ui:for ui:DateField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:DateField; ui:property ui:min; ui:label \"min\"]\n [ ui:sequence 3; a ui:DateField; ui:property ui:max ; ui:label \"max\"]\n ) ]];\n\n ui:case [ ui:for ui:DateTimeField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:DatatypeProperty]\n [ ui:sequence 2; a ui:DateTimeField; ui:property ui:min; ui:label \"min\"]\n [ ui:sequence 3; a ui:DateTimeField; ui:property ui:max ; ui:label \"max\"]\n ) ]];\n\n ui:case [ ui:for ui:EmailField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:ObjectProperty]\n ) ]];\n\n ui:case [ ui:for ui:PhoneField; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from owl:ObjectProperty]\n )]];\n\n ui:case [ ui:for ui:Group; ui:use FieldList];\n\n ui:case [ ui:for ui:Options; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:dependingOn; ui:label \"depending on\"; ui:from r:Property; ui:default r:type]\n [ ui:sequence 2; a ui:Multiple; ui:property ui:case; ui:part CaseForm]\n ) ]];\n\n ui:case [ ui:for ui:Choice; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\";\n ui:canMintNew true; ui:from owl:ObjectProperty]\n [ ui:sequence 2; a ui:Choice; ui:canMintNew true; ui:property ui:from; ui:label \"destination class\";\n ui:from s:Class; ui:canMintNew true; ]\n [ ui:sequence 3; a ui:BooleanField; ui:property ui:canMintNew; # No class form yet\n ui:label \"user can add new\"]\n [ ui:sequence 4; a ui:Choice; ui:canMintNew true; ui:property ui:use; ui:label \"Nested Form (if any)\";\n ui:from ui:Form; ui:optional true; ui:use FormForm] # @@ optional\n\n ) ]];\n\n ui:case [ ui:for ui:Classifier; ui:use [a ui:Group; ui:parts (\n [ ui:sequence 2; a ui:Comment; ui:contents \"\"\"A classifier allows the user to which classes the item belongs to, given a common superclass of the allowed classes. Give the superclass here:\"\"\" ]\n\n [ ui:sequence 4; a ui:Choice; ui:canMintNew true; ui:property ui:category; ui:label \"superclass\"; ui:from s:Class]\n\n [ ui:sequence 6; a ui:Comment; ui:contents \"\"\"(When the choice is made normally the item is given a rdf:type. Set this to rdf:type unless you want the form to set a different property.)\"\"\" ]\n\n [ ui:sequence 8; a ui:Choice; ui:canMintNew true; ui:property ui:property;\n ui:label \"property\"; ui:from owl:ObjectProperty; ui:default r:type] # @@ restriction\n\n ) ]];\n\n ui:case [ ui:for ui:Multiple; ui:use [a ui:Group; ui:parts (\n [ui:sequence 0; a ui:BooleanField; ui:property ui:ordered; ui:label \"ordered\"] # If this an ordered array or an unordered set?\n [ui:sequence 0; a ui:IntegerField; ui:property ui:min; ui:label \"minimum number\"] # If this an ordered array or an unordered set?\n [ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:property; ui:label \"property\"; ui:from r:Property]\n [ui:sequence 2; a ui:Choice; ui:canMintNew true; ui:property ui:part; ui:from ui:Form; ui:use FieldForm] # Form for details of the field part of the multiple\n ) ]];\n\n ui:case [ ui:for ui:Heading; ui:use [a ui:SingleLineTextField; ui:property ui:contents]];\n\n ui:case [ ui:for ui:Comment; ui:use [a ui:MultiLineTextField; ui:property ui:contents]]\n ]).\n\n\nCaseForm a ui:Group;\n dc:title \"Form for a conditional case in a form\";\n ui:parts (\n [ ui:sequence 1; a ui:Choice; ui:canMintNew true; ui:property ui:for; ui:label \"when it is\"; ui:canMintNew true; ui:from s:Class]\n [ui:sequence 2; a ui:Choice; ui:canMintNew true; ui:property ui:use; ui:from ui:Form; ui:canMintNew true; ui:use FieldForm] ). # Form for details of the field part of the multiple\n\n# ENDS\n";
784
+
785
+ /***/ },
786
+
787
+ /***/ 240
788
+ (module) {
789
+
790
+ module.exports = "# Issue tracking - Workflow application definition ontology\n#\n# Finite state automaton ontology\n#\n# See requirements for tracking tools http://www.w3.org/2005/01/06-tool-req.html\n#\n@keywords a, is, of.\n\n@prefix : <http://www.w3.org/2005/01/wf/flow#>.\n@prefix wf: <http://www.w3.org/2005/01/wf/flow#>.\n\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix s: <http://www.w3.org/2000/01/rdf-schema#> .\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n\n@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#> .\n@prefix log: <http://www.w3.org/2000/10/swap/log#> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/>.\n@prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#> .\n@prefix doap: <http://usefulinc.com/ns/doap#>.\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix dct: <http://purl.org/dc/terms/>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n\n<> dc:title \"Issue Tracking Ontology\";\n\n dct:creator <http://www.w3.org/People/Berners-Lee/card#i>;\n\n s:comment \"\"\"This ontology defines a very general class (Task)\n which can used for any kind of bug tracking, issue tracking,\n to-do-list management, action items, goal dependency, and so on.\n It captures the state of a task as a subclass, so that\n subsumption can be used.\n It captures a discussion thread about a task.\n It captures subtasks structure if necessary.\n A \"Tracker\" defines actual set of states, categories, etc.,\n which a task can be in. The data about the tracker\n guides the software managing the task.\n\n There is some workflow modeling finite state machine\n terms which are optional for more complex definition\n of the transitions allowed.\n \"\"\".\n\nTask a s:Class;\n s:label \"task\"@en; owl:disjointUnionOf (Open Closed);\n s:comment \"\"\"Something to be done in a wide sense,\n an agenda item at a meeting is one example, but any\n issue, task, action item, goal, product, deliverable, milestone, can such a thing.\n The requirement for this framework was that it would allow\n one to customize ontologies for things such as agenda items,\n action items, working group issues with a spec, w3c Last Call issues,\n software bugs and administrative requests.\n In π-calculus, a process.\n Make your type of issue a subclass of Task.\n \"\"\".\n\nOpen a s:Class; s:subClassOf Task;\n s:label \"open\"@en, \"ouvert\"@fr;\n ui:backgroundColor \"#d6f5d6\"; # green like github for some reason\n s:comment \"\"\"A task which needs attention. The very crude states of Open and Closed all\n interoperability between different systems if the states for a given\n application are made subclasses of either Open or Closed. This allows\n tasks from different systems to be mixed and treated together with\n limited but valuable functionality.\n \"\"\".\n\nClosed a s:Class; s:subClassOf Task;\n s:label \"closed\"@en, \"fermé\"@fr;\n ui:backgroundColor \"#f5d6d6\"; # pink\n s:comment \"\"\"A task which does not need attention. It may be closed because\n has been abandoned or completed, for example.\n \"\"\".\n\n\n ActionItem a s:Class;\n s:subClassOf Task;\n s:label \"action item\"@en; owl:disjointUnionOf (Open Closed);\n s:comment \"\"\"An obligation taken on by a person, typically at a meeting.\n \"\"\".\n\n\ndescription a rdf:Property;\n s:label \"description\";\n s:comment \"\"\"The description, definition,\n or abstract. Information explaining what this is.\n Not arbitrary comment about anything, only about the subject.\n (Use this property for anything. There is no domain restriction.).\"\"\".\n\ndependent a rdf:Property;\n s:label \"how\"; owl:inverseOf [ s:label \"why\"];\n s:domain Task; s:range Task;\n s:comment \"\"\"Another task upon which this depends, in the sense that\n this task cannot be completed without that task being done.\n You can't use this for dependencies on anything other than other tasks.\n (Note the US spelling of the URI. In the UK, a dependant is a something\n which is dependent on somehing else.)\"\"\".\n\nassignee a rdf:Property;\n s:label \"assigned to\"; owl:inverseOf [s:label \"assignment\"];\n# s:domain Task;\n s:range foaf:Agent;\n s:comment \"\"\"The person or group to whom this has been assigned.\"\"\".\n\n# use dct:modified\n#modified a rdf:Property;\n# s:label \"last changed\".\n\nmodifiedBy a rdf:Property;\n s:range foaf:Agent;\n s:label \"changed by\".\n\n# use dct:created instead\n#created a rdf:Property;\n# s:range xsd:dateTime;\n#\n# Use foaf:maker instead\n#creator a rdf:Property;\n# s:range foaf:Agent;\n# s:label \"changed by\".\n\nsubscriber a rdf:Property;\n s:label \"subscriber\";\n s:range foaf:Agent.\n\n\n################## Products\n#\n#\n# History: The Tracker system included a cocept of a product,\n# such that an action could be associated with *either* an issue *or* a product.\n# Noah Mendelsohn for the TAG needed to be able make\n# and to give products: Goals, scuuess criteria,\n# deliverables with dates, schedules, TAG members assigned, related issues.\n#\n\n\nProduct a s:Class; s:subClassOf Task;\n s:label \"product\";\n s:comment \"\"\"A product is a task which monitors something\n which must be produced.\"\"\".\n\ndeliverable a rdf:Property; s:subPropertyOf dependent;\n s:range Product;\n s:label \"deliverable\"@en;\n s:comment \"\"\"Something which must be delivered to accomplish this\"\"\".\n\ngoalDescription a rdf:Property, owl:DatatypeProperty;\n s:domain Task; s:range xsd:string;\n s:label \"goals\";\n s:comment \"\"\"A textual description of the goals of this product, etc.\"\"\".\n\nsuccessCriteria a rdf:Property, owl:DatatypeProperty;\n s:domain Task; s:range xsd:string;\n s:label \"success criteria\";\n s:comment \"\"\"A textual description of the successs critera.\n How when we know this is done?\"\"\".\n\ndateDue a rdf:Property, owl:DatatypeProperty;\n s:domain Task; s:range xsd:date;\n s:label \"due\"@en;\n s:comment \"\"\"The date this task is due.\n \"\"\".\n\n################## Attachments\n\nattachment a rdf:Property;\n s:label \"attachment\";\n s:comment \"\"\"Something related is attached for information.\"\"\".\n\nscreenShot a rdf:Property; s:subPropertyOf attachment;\n s:label \"screen shot\"@en;\n s:comment \"\"\"An image taken by capturing the state of a\n computer screen, for example to demonstrate a problem\"\"\".\n\ntestData a rdf:Property; s:subPropertyOf attachment;\n s:label \"test data\"@en;\n s:comment \"\"\"A file which can be used as inpiut to a test\n or to demonstrate a problem. \"\"\".\n\n\nterminalOutput a rdf:Property; s:subPropertyOf attachment;\n s:label \"terminal output\"@en;\n s:comment \"\"\"A file showing user interaction from a\n text terminal or console etc. \"\"\".\n\n\nmessage a rdf:Property; s:subPropertyOf attachment;\n s:label \"message\"@en;\n s:comment \"\"\"A message about this. Attached for information.\"\"\".\n\n\nMessage a s:Class; s:label \"message\"@en.\nrecipent a rdf:Property; s:label \"to\"; s:domain Message; s:range foaf:Agent.\nsender a rdf:Property; s:label \"from\"; s:domain Message; s:range foaf:Agent.\n\n############################# A Tracker connects and manages issues\n\ntracker a rdf:Property;\n s:label \"tracker\";\n owl:inverseOf [ s:label \"issue\"];\n s:domain Task;\n s:range Tracker.\n\nTracker a s:Class;\n s:label \"tracker\";\n s:comment \"\"\"A set of issues and\n the constraints on how they evolve.\n To use this ontology, craete a new tracker.\n Copy an existing one or make up your own.\"\"\".\n\nissueClass a rdf:Property;\n s:label \"all issues must be in\";\n s:domain Tracker;\n s:range s:Class, State;\n s:comment \"\"\"The class of issues which are allowed in this tracker.\n This is essemtial to the operation of the tracker,\n as it defines which states an issue can be in.\n (The issueClass must be a disjointUnionOf the state classes)\"\"\".\n\nissueCategory a rdf:Property;\n s:label \"issue category\";\n s:domain Tracker;\n s:range s:Class;\n s:comment \"\"\"Issues may be categorized according to the\n subclasses of this class\"\"\".\n\nstateStore a rdf:Property;\n s:label \"state store\";\n s:domain Tracker;\n s:range doc:Document;\n s:comment \"\"\"A read-write document.\n The state of the issues is modified here.\n When you set up a trcaker, thgis must be set to point\n to a writeble data resource on the web.\"\"\".\n\ntransactionStore\n a rdf:Property;\n s:label \"transaction store\";\n s:domain Tracker;\n s:range doc:Document;\n s:comment \"\"\"An appendable document. Transactions and messsages\n can be written into here\"\"\".\n\nasigneeClass\n a rdf:Property;\n s:label \"assignees must be\";\n s:domain Tracker;\n s:range s:Class; # Subclass of foaf:Agent\n s:comment \"\"\"When an issue is assigned, the assignee must be from this class\"\"\".\n\ninitialState\n a rdf:Property;\n s:label \"initial state\"@en;\n s:label \"état initial\"@fr;\n s:domain Tracker;\n s:range State;\n s:comment \"\"\"The initial state for a new issue\"\"\".\n\n# Use this to link a project to a tracker\ndoap:bug-database owl:inverseOf [ s:label \"project\"@en ].\n\n\n\n\n############################################################\n#\n# Finite state machines\n#\nChange a s:Class;\n s:label \"change\";\n s:comment \"\"\"The universal class of things which\nchange the state of a task.\nIncluded now: Creation, Transition. (Maybe in the future\nmore π-calculus constructions such as splitting & merging tasks,\nand import/export of obligations to a foreign opaque system.)\n\"\"\".\n\nTransition a s:Class; s:subClassOf Change;\n s:label \"transition\";\n s:comment \"\"\"A transition is a change of state of\na task. Typical properties include date and/or source\n(a document causing the transition), and a final state.\"\"\".\n\nCreation a s:Class; s:subClassOf Change;\n s:label \"creation\";\n s:comment \"\"\"A creation is a change from existence\nto non-existence\na task. Typical properties include date and/or source\n(a document causing the transition), and a final state.\"\"\".\n\n\ndate s:range DateTime.\n\nfinal a rdf:Property;\n s:label \"to\";\n s:domain Transition;\n s:range State.\n\ntask a rdf:Property;\n s:range Task;\n s:label \"task\".\n\nrequires a rdf:Property;\n s:label \"requires\";\n s:domain Transition;\n s:range rdf:List; # Of properties for validation\n s:comment \"\"\"To be a valid transition,\n a necessary (but not necessarily sufficuent) condition\n is that there be recorded these properties for the record\"\"\".\n\naffects a rdf:Property;\n s:label \"affects\";\n s:domain doc:Work;\n s:range Task.\n\n\n# { ?x a Transition; task ?t; source ?doc } => { ?doc affects ?t }.\n\n\ncreates a rdf:Property;\n s:label \"creates\";\n s:domain doc:Work;\n s:range Task.\n\n\nallowedTransitions a rdf:Property;\n s:domain State;\n s:range rdf:List; # @@@ of Action\n s:label \"allowed transitions\";\n s:comment \"\"\"The state machine is defined\n by these lists of transition allowed for each issue.\n (An interesting option in the Web is to make an allowed transition\n to a state in soemone else's ontology, which in turn allows\n transitions into many ontologies. So a finite state maxchine\n may become very large. In practice this means that a task handed\n off to another organization may be processed on all kinds of ways.)\"\"\".\n\n# { ?x a TerminalState} => { ?x allowedTransitions () }.\n\nfinal a rdf:Property;\n s:label \"to\";\n s:range State.\n\nissue a rdf:Property;\n s:label \"issue\";\n s:comment\n \"\"\"A transition changes the state of the given issue.\"\"\".\n\nsource a rdf:Property;\n s:label \"source\";\n s:comment \"\"\"The source of a transition is\n the document by which it happened\"\"\";\n s:range doc:Work.\nTerminalState a s:Class;\n s:subClassOf State;\n s:label \"terminal state\";\n s:comment \"\"\"A state from which there are no transitions.\"\"\".\n\nNonTerminalState a s:Class;\n s:label \"non-terminal state\";\n owl:disjointWith TerminalState;\n s:comment \"\"\"A state from which there are transitions.\"\"\".\n\n######################################################\n\n#ends\n";
791
+
792
+ /***/ },
793
+
794
+ /***/ 264
795
+ (module) {
796
+
797
+ module.exports = __WEBPACK_EXTERNAL_MODULE__264__;
798
+
799
+ /***/ },
800
+
801
+ /***/ 663
802
+ (module) {
803
+
804
+ module.exports = __WEBPACK_EXTERNAL_MODULE__663__;
805
+
806
+ /***/ },
807
+
808
+ /***/ 426
809
+ (module) {
810
+
811
+ module.exports = __WEBPACK_EXTERNAL_MODULE__426__;
812
+
813
+ /***/ }
814
+
815
+ /******/ });
816
+ /************************************************************************/
817
+ /******/ // The module cache
818
+ /******/ var __webpack_module_cache__ = {};
819
+ /******/
820
+ /******/ // The require function
821
+ /******/ function __webpack_require__(moduleId) {
822
+ /******/ // Check if module is in cache
823
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
824
+ /******/ if (cachedModule !== undefined) {
825
+ /******/ return cachedModule.exports;
826
+ /******/ }
827
+ /******/ // Create a new module (and put it into the cache)
828
+ /******/ var module = __webpack_module_cache__[moduleId] = {
829
+ /******/ id: moduleId,
830
+ /******/ // no module.loaded needed
831
+ /******/ exports: {}
832
+ /******/ };
833
+ /******/
834
+ /******/ // Execute the module function
835
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
836
+ /******/
837
+ /******/ // Return the exports of the module
838
+ /******/ return module.exports;
839
+ /******/ }
840
+ /******/
841
+ /************************************************************************/
842
+ /******/ /* webpack/runtime/compat get default export */
843
+ /******/ (() => {
844
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
845
+ /******/ __webpack_require__.n = (module) => {
846
+ /******/ var getter = module && module.__esModule ?
847
+ /******/ () => (module['default']) :
848
+ /******/ () => (module);
849
+ /******/ __webpack_require__.d(getter, { a: getter });
850
+ /******/ return getter;
851
+ /******/ };
852
+ /******/ })();
853
+ /******/
854
+ /******/ /* webpack/runtime/define property getters */
855
+ /******/ (() => {
856
+ /******/ // define getter functions for harmony exports
857
+ /******/ __webpack_require__.d = (exports, definition) => {
858
+ /******/ for(var key in definition) {
859
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
860
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
861
+ /******/ }
862
+ /******/ }
863
+ /******/ };
864
+ /******/ })();
865
+ /******/
866
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
867
+ /******/ (() => {
868
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
869
+ /******/ })();
870
+ /******/
871
+ /******/ /* webpack/runtime/nonce */
872
+ /******/ (() => {
873
+ /******/ __webpack_require__.nc = undefined;
874
+ /******/ })();
875
+ /******/
876
+ /************************************************************************/
877
+ var __webpack_exports__ = {};
878
+
879
+ // EXPORTS
880
+ __webpack_require__.d(__webpack_exports__, {
881
+ "default": () => (/* binding */ src)
882
+ });
883
+
884
+ // EXTERNAL MODULE: external "UI"
885
+ var external_UI_ = __webpack_require__(426);
886
+ // EXTERNAL MODULE: external "SolidLogic"
887
+ var external_SolidLogic_ = __webpack_require__(663);
888
+ // EXTERNAL MODULE: external "$rdf"
889
+ var external_$rdf_ = __webpack_require__(264);
890
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
891
+ var injectStylesIntoStyleTag = __webpack_require__(72);
892
+ var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
893
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js
894
+ var styleDomAPI = __webpack_require__(825);
895
+ var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI);
896
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js
897
+ var insertBySelector = __webpack_require__(659);
898
+ var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector);
899
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
900
+ var setAttributesWithoutAttributes = __webpack_require__(56);
901
+ var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes);
902
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js
903
+ var insertStyleElement = __webpack_require__(540);
904
+ var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement);
905
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js
906
+ var styleTagTransform = __webpack_require__(113);
907
+ var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform);
908
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/board.css
909
+ var board = __webpack_require__(691);
910
+ ;// ./src/styles/board.css
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+ var options = {};
923
+
924
+ options.styleTagTransform = (styleTagTransform_default());
925
+ options.setAttributes = (setAttributesWithoutAttributes_default());
926
+ options.insert = insertBySelector_default().bind(null, "head");
927
+ options.domAPI = (styleDomAPI_default());
928
+ options.insertStyleElement = (insertStyleElement_default());
929
+
930
+ var update = injectStylesIntoStyleTag_default()(board/* default */.A, options);
931
+
932
+
933
+
934
+
935
+ /* harmony default export */ const styles_board = (board/* default */.A && board/* default */.A.locals ? board/* default */.A.locals : undefined);
936
+
937
+ ;// ./src/board.js
938
+ /** A Board of vertical columns
939
+ *
940
+ * Like a github "project", or a kanbam board, a board allows
941
+ * you to triage stuff into simple cateories.
942
+ *
943
+ * if an object is added in a refresh, then a new column should be added if needed
944
+ * if its value is previously unseen
945
+ * (Should the coluimn order be defined by user or caller?)
946
+ *
947
+ * @returns dom:Element
948
+ */
949
+
950
+
951
+
952
+
953
+
954
+ function board_board(dom, columnValues, renderItem, options) {
955
+ const board = dom.createElement('div');
956
+ board.classList.add('trackerBoard');
957
+ const table = board.appendChild(dom.createElement('table'));
958
+ table.classList.add('trackerBoardTable');
959
+ const headerRow = table.appendChild(dom.createElement('tr'));
960
+ headerRow.classList.add('trackerBoardHeader');
961
+ const mainRow = table.appendChild(dom.createElement('tr'));
962
+ mainRow.classList.add('trackerBoardMainRow');
963
+ columnValues.forEach(x => {
964
+ const cell = headerRow.appendChild(dom.createElement('th'));
965
+ cell.classList.add('trackerBoardHeaderCell');
966
+ cell.textContent = external_UI_.utils.label(x, true); // Initial capital
967
+ cell.subject = x;
968
+ const column = mainRow.appendChild(dom.createElement('td'));
969
+ column.classList.add('trackerBoardColumn');
970
+ column.subject = x;
971
+ function droppedURIHandler(uris) {
972
+ uris.forEach(function (u) {
973
+ console.log('Dropped on column: ' + u);
974
+ const item = external_SolidLogic_.store.sym(u);
975
+ options.columnDropHandler(item, x);
976
+ });
977
+ }
978
+ if (options.columnDropHandler) {
979
+ external_UI_.widgets.makeDropTarget(column, droppedURIHandler);
980
+ }
981
+ });
982
+
983
+ /* Each item on the board
984
+ * normally App will override this
985
+ */
986
+ function defaultRenderItem(item, category) {
987
+ const card = dom.createElement('div');
988
+ card.classList.add('trackerBoardCard');
989
+ const table = card.appendChild(dom.createElement('table'));
990
+ table.classList.add('trackerBoardCardTable');
991
+ const classes = external_SolidLogic_.store.each(item, external_UI_.ns.rdf('type'));
992
+ const catColors = classes.map(cat => external_SolidLogic_.store.any(cat, external_UI_.ns.ui('backgroundColor'))).filter(c => c);
993
+ table.appendChild(external_UI_.widgets.personTR(dom, null, item));
994
+ table.subject = item;
995
+ const backgroundColor = catColors[0] || external_SolidLogic_.store.any(category, external_UI_.ns.ui('backgroundColor'));
996
+ card.style.backgroundColor = backgroundColor ? backgroundColor.value : '#fff';
997
+ return card;
998
+ }
999
+ function sortedBy(values, predicate, defaultSortValue, reverse) {
1000
+ const toBeSorted = values.map(x => [external_SolidLogic_.store.any(x, predicate) || defaultSortValue, x]);
1001
+ toBeSorted.sort();
1002
+ if (reverse) toBeSorted.reverse(); // @@ check
1003
+ return toBeSorted.map(pair => pair[1]);
1004
+ }
1005
+ board.refresh = function () {
1006
+ const now = new external_$rdf_.Literal(new Date());
1007
+ const actualRenderItem = renderItem || options.renderItem || defaultRenderItem;
1008
+ function localRenderItem(subject) {
1009
+ const ele = actualRenderItem(subject);
1010
+ external_UI_.widgets.makeDraggable(ele, subject);
1011
+ ele.subject = subject;
1012
+ return ele;
1013
+ }
1014
+ for (let col = mainRow.firstChild; col; col = col.nextSibling) {
1015
+ const category = col.subject;
1016
+ let items = external_SolidLogic_.store.each(null, external_UI_.ns.rdf('type'), category);
1017
+ const sortBy = options.sortBy || external_UI_.ns.dct('created');
1018
+ if (options.filter) {
1019
+ items = items.filter(options.filter);
1020
+ }
1021
+ const sortedItems = sortedBy(items, sortBy, now, true);
1022
+ external_UI_.utils.syncTableToArrayReOrdered(col, sortedItems, localRenderItem);
1023
+ }
1024
+ };
1025
+
1026
+ // kb.query(query, addCellFromBindings, undefined, whenDone) // Populate the board
1027
+ board.refresh();
1028
+ return board;
1029
+ }
1030
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/newIssue.css
1031
+ var newIssue = __webpack_require__(233);
1032
+ ;// ./src/styles/newIssue.css
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+ var newIssue_options = {};
1045
+
1046
+ newIssue_options.styleTagTransform = (styleTagTransform_default());
1047
+ newIssue_options.setAttributes = (setAttributesWithoutAttributes_default());
1048
+ newIssue_options.insert = insertBySelector_default().bind(null, "head");
1049
+ newIssue_options.domAPI = (styleDomAPI_default());
1050
+ newIssue_options.insertStyleElement = (insertStyleElement_default());
1051
+
1052
+ var newIssue_update = injectStylesIntoStyleTag_default()(newIssue/* default */.A, newIssue_options);
1053
+
1054
+
1055
+
1056
+
1057
+ /* harmony default export */ const styles_newIssue = (newIssue/* default */.A && newIssue/* default */.A.locals ? newIssue/* default */.A.locals : undefined);
1058
+
1059
+ ;// ./src/newIssue.js
1060
+ // Form to collect data about a New Issue
1061
+ //
1062
+
1063
+
1064
+
1065
+ function newIssueForm(dom, kb, tracker, superIssue, showNewIssue, onCancel) {
1066
+ const form = dom.createElement('div'); // form is broken as HTML behaviour can resurface on js error
1067
+ form.classList.add('trackerNewIssueForm');
1068
+ const stateStore = kb.any(tracker, external_UI_.ns.wf('stateStore'));
1069
+ onCancel = onCancel || function () {};
1070
+ const timestring = function () {
1071
+ const now = new Date();
1072
+ return '' + now.getTime();
1073
+ // http://www.w3schools.com/jsref/jsref_obj_date.asp
1074
+ };
1075
+ const sendNewIssue = function () {
1076
+ titlefield.setAttribute('class', 'pendingedit');
1077
+ titlefield.disabled = true;
1078
+ const sts = [];
1079
+ const expandTemplate = function (template) {
1080
+ const now = new external_$rdf_.Literal(new Date());
1081
+ const nnnn = '' + new Date().getTime();
1082
+ const YYYY = now.value.slice(0, 4);
1083
+ const MM = now.value.slice(5, 7);
1084
+ const DD = now.value.slice(8, 10);
1085
+ return template.replace('{N}', nnnn).replace('{YYYY}', YYYY).replace('{MM}', MM).replace('{DD}', DD);
1086
+ };
1087
+ // Where to store the new issue?
1088
+ const template = kb.anyValue(tracker, external_UI_.ns.wf('issueURITemplate'));
1089
+ const issue = template
1090
+ // Does each issue do in its own file?
1091
+ ? kb.sym(expandTemplate(external_$rdf_.uri.join(template, stateStore.uri))) : kb.sym(stateStore.uri + '#' + 'Iss' + timestring());
1092
+ const issueDoc = issue.doc();
1093
+
1094
+ // Basic 9 core predicates are stored in the main stateStore
1095
+
1096
+ const title = kb.literal(titlefield.value);
1097
+ sts.push(new external_$rdf_.Statement(issue, external_UI_.ns.wf('tracker'), tracker, stateStore));
1098
+ sts.push(new external_$rdf_.Statement(issue, external_UI_.ns.dc('title'), title, stateStore));
1099
+ sts.push(new external_$rdf_.Statement(issue, external_UI_.ns.dct('created'), new Date(), stateStore));
1100
+ // Copy states from super issue as after all they are subtasks so initially same state same category
1101
+ const initialStates = superIssue ? kb.each(superIssue, external_UI_.ns.rdf('type'), null, superIssue.doc()) : kb.each(tracker, external_UI_.ns.wf('initialState'));
1102
+ for (const state of initialStates) {
1103
+ sts.push(new external_$rdf_.Statement(issue, external_UI_.ns.rdf('type'), state, stateStore));
1104
+ }
1105
+ if (superIssue) {
1106
+ sts.push(new external_$rdf_.Statement(superIssue, external_UI_.ns.wf('dependent'), issue, stateStore));
1107
+ }
1108
+
1109
+ // Other things are stores in the individual
1110
+ if (template) {
1111
+ sts.push(new external_$rdf_.Statement(issue, external_UI_.ns.wf('tracker'), tracker, issueDoc));
1112
+ sts.push(new external_$rdf_.Statement(issue, external_UI_.ns.rdfs('seeAlso'), stateStore, issueDoc));
1113
+ }
1114
+ const sendComplete = function (uri, success, body) {
1115
+ if (!success) {
1116
+ console.log('Error: can\'t save new issue:' + body);
1117
+ } else {
1118
+ form.parentNode.removeChild(form);
1119
+ showNewIssue(issue);
1120
+ }
1121
+ };
1122
+ kb.updater.update([], sts, sendComplete);
1123
+ };
1124
+ const states = kb.any(tracker, external_UI_.ns.wf('issueClass'));
1125
+ const classLabel = external_UI_.utils.label(states);
1126
+ const closeForm = function () {
1127
+ if (form.parentNode) {
1128
+ form.parentNode.removeChild(form);
1129
+ }
1130
+ onCancel();
1131
+ };
1132
+ const header = form.appendChild(dom.createElement('div'));
1133
+ header.classList.add('trackerNewIssueHeader');
1134
+ const heading = header.appendChild(dom.createElement('h2'));
1135
+ heading.textContent = 'Add new ' + (superIssue ? 'sub ' : '') + classLabel;
1136
+ const closeButton = header.appendChild(dom.createElement('button'));
1137
+ closeButton.classList.add('trackerNewIssueCloseButton');
1138
+ closeButton.setAttribute('type', 'button');
1139
+ closeButton.setAttribute('aria-label', 'Close new issue form');
1140
+ closeButton.textContent = '×';
1141
+ closeButton.addEventListener('click', closeForm, false);
1142
+ const prompt = form.appendChild(dom.createElement('p'));
1143
+ prompt.textContent = 'Title of new ' + classLabel + ':';
1144
+ const titlefield = dom.createElement('input');
1145
+ titlefield.classList.add('trackerNewIssueTitleField');
1146
+ titlefield.setAttribute('type', 'text');
1147
+ titlefield.setAttribute('maxLength', '2048'); // No arbitrary limits
1148
+ titlefield.select(); // focus next user input
1149
+ titlefield.addEventListener('keyup', function (e) {
1150
+ if (e.keyCode === 13) {
1151
+ sendNewIssue();
1152
+ }
1153
+ }, false);
1154
+ form.appendChild(titlefield);
1155
+ titlefield.focus(); // we want user cursor here
1156
+ return form;
1157
+ }
1158
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/issue.css
1159
+ var issue = __webpack_require__(993);
1160
+ ;// ./src/styles/issue.css
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+ var issue_options = {};
1173
+
1174
+ issue_options.styleTagTransform = (styleTagTransform_default());
1175
+ issue_options.setAttributes = (setAttributesWithoutAttributes_default());
1176
+ issue_options.insert = insertBySelector_default().bind(null, "head");
1177
+ issue_options.domAPI = (styleDomAPI_default());
1178
+ issue_options.insertStyleElement = (insertStyleElement_default());
1179
+
1180
+ var issue_update = injectStylesIntoStyleTag_default()(issue/* default */.A, issue_options);
1181
+
1182
+
1183
+
1184
+
1185
+ /* harmony default export */ const styles_issue = (issue/* default */.A && issue/* default */.A.locals ? issue/* default */.A.locals : undefined);
1186
+
1187
+ ;// ./src/issue.js
1188
+ // All the UI for a single issue, without store load or listening for changes
1189
+ //
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+ const kb = external_SolidLogic_.store;
1196
+ const SET_MODIFIED_DATES = false;
1197
+ const TASK_ICON = external_UI_.icons.iconBase + 'noun_17020_gray-tick.svg';
1198
+ const OPEN_TASK_ICON = external_UI_.icons.iconBase + 'noun_17020_sans-tick.svg';
1199
+ const CLOSED_TASK_ICON = external_UI_.icons.iconBase + 'noun_17020.svg';
1200
+ function complain(message, context) {
1201
+ console.warn(message);
1202
+ context.paneDiv.appendChild(external_UI_.widgets.errorMessageBlock(context.dom, message));
1203
+ }
1204
+ function isOpen(issue) {
1205
+ const types = kb.findTypeURIs(issue);
1206
+ return !!types[external_UI_.ns.wf('Open').uri];
1207
+ }
1208
+ function iconForIssue(issue) {
1209
+ return isOpen(issue) ? TASK_ICON : CLOSED_TASK_ICON;
1210
+ }
1211
+ function getState(issue, classification) {
1212
+ const tracker = kb.the(issue, external_UI_.ns.wf('tracker'), null, issue.doc());
1213
+ const states = kb.any(tracker, external_UI_.ns.wf('issueClass'));
1214
+ classification = classification || states;
1215
+ const types = kb.each(issue, external_UI_.ns.rdf('type')).filter(ty => kb.holds(ty, external_UI_.ns.rdfs('subClassOf'), classification));
1216
+ if (types.length !== 1) {
1217
+ // const initialState = kb.any(tracker, ns.wf('initialState')) No do NOT default
1218
+ // if (initialState) return initialState
1219
+ throw new Error('Issue must have one type as state: ' + types.length);
1220
+ }
1221
+ return types[0];
1222
+ }
1223
+ function getBackgroundColorFromTypes(issue) {
1224
+ const classes = kb.each(issue, external_UI_.ns.rdf('type')); // @@ pick cats in order then state
1225
+ const catColors = classes.map(cat => kb.any(cat, external_UI_.ns.ui('backgroundColor'))).filter(c => !!c);
1226
+ if (catColors.length) return catColors[0].value; // pick first one
1227
+ return null;
1228
+ }
1229
+ function renderIssueCard(issue, context) {
1230
+ function refresh() {
1231
+ const backgroundColor = getBackgroundColorFromTypes(issue) || 'white';
1232
+ card.style.backgroundColor = backgroundColor;
1233
+ editButton.style.backgroundColor = backgroundColor; // Override white from style sheet
1234
+ }
1235
+ const dom = context.dom;
1236
+ const uncategorized = !getBackgroundColorFromTypes(issue); // This is a suspect issue. Prompt to delete it
1237
+
1238
+ const card = dom.createElement('div');
1239
+ card.classList.add('trackerBoardIssueCard');
1240
+ const table = card.appendChild(dom.createElement('table'));
1241
+ table.classList.add('trackerBoardIssueCardTable');
1242
+ const options = {
1243
+ draggable: false
1244
+ }; // Let the board make the whole card draggable
1245
+ table.appendChild(external_UI_.widgets.personTR(dom, null, issue, options));
1246
+ table.subject = issue;
1247
+ const img = card.firstChild.firstChild.firstChild.firstChild; // div/table/tr/td/img
1248
+ img.setAttribute('src', external_UI_.icons.iconBase + 'noun_Danger_1259514.svg'); // override
1249
+ // Add a button for viewing the whole issue in overlay
1250
+ const buttonsCell = card.firstChild.firstChild.children[2]; // right hand part of card
1251
+ buttonsCell.classList.add('trackerBoardIssueCardButtons');
1252
+ const editButton = external_UI_.widgets.button(dom, external_UI_.icons.iconBase + 'noun_253504.svg', 'edit', async _event => {
1253
+ exposeOverlay(issue, context);
1254
+ });
1255
+ editButton.classList.add('trackerBoardIssueCardEditButton');
1256
+ const editButtonImage = editButton.firstChild;
1257
+ editButtonImage.classList.add('trackerBoardIssueCardEditButtonImage');
1258
+ editButtonImage.style.width = editButtonImage.style.height = '1.5em';
1259
+ buttonsCell.appendChild(editButton);
1260
+
1261
+ // If uncategorized, shortcut to delete issue
1262
+ if (uncategorized) {
1263
+ const deleteButton = external_UI_.widgets.deleteButtonWithCheck(dom, buttonsCell, 'issue', async function () {
1264
+ // noun?
1265
+ try {
1266
+ await kb.updater.update(kb.connectedStatements(issue));
1267
+ } catch (err) {
1268
+ complain(`Unable to delete issue: ${err}`, context);
1269
+ }
1270
+ console.log('User deleted issue ' + issue);
1271
+ card.parentNode.removeChild(card); // refresh doesn't work yet because it is not passed though tabs so short cut
1272
+ external_UI_.widgets.refreshTree(context.paneDiv); // Should delete the card if nec when tabs pass it though
1273
+ // complain('DELETED OK', context)
1274
+ });
1275
+ buttonsCell.appendChild(deleteButton);
1276
+ }
1277
+ card.refresh = refresh;
1278
+ refresh();
1279
+ return card;
1280
+ }
1281
+ function exposeOverlay(subject, context) {
1282
+ function hideOverlay() {
1283
+ overlay.innerHTML = ''; // clear overlay
1284
+ overlay.style.visibility = 'hidden';
1285
+ }
1286
+ const overlay = context.overlay;
1287
+ overlay.classList.add('trackerOverlay');
1288
+ overlay.innerHTML = ''; // clear existing
1289
+ const issuePanel = renderIssue(subject, context);
1290
+ overlay.appendChild(issuePanel);
1291
+ const button = issuePanel.appendChild(external_UI_.widgets.button(context.dom, external_UI_.icons.iconBase + 'noun_1180156.svg', 'close', hideOverlay));
1292
+ button.classList.add('trackerOverlayCloseButton');
1293
+ delete button.style.backgroundColor; // do not want white
1294
+ overlay.style.visibility = 'visible';
1295
+ }
1296
+ function renderSpacer(dom, backgroundColor) {
1297
+ const spacer = dom.createElement('div');
1298
+ spacer.classList.add('trackerIssueSpacer');
1299
+ spacer.style.backgroundColor = backgroundColor; // try that
1300
+ return spacer;
1301
+ }
1302
+ function renderIssue(issue, context) {
1303
+ // Don't bother changing the last modified dates of things: save time
1304
+ function setModifiedDate(subj, kb, doc) {
1305
+ if (SET_MODIFIED_DATES) {
1306
+ if (!getOption(tracker, 'trackLastModified')) return;
1307
+ const deletions = kb.statementsMatching(issue, external_UI_.ns.dct('modified')).concat(kb.statementsMatching(issue, external_UI_.ns.wf('modifiedBy')));
1308
+ const insertions = [external_$rdf_.st(issue, external_UI_.ns.dct('modified'), new Date(), doc)];
1309
+ if (me) insertions.push(external_$rdf_.st(issue, external_UI_.ns.wf('modifiedBy'), me, doc));
1310
+ kb.updater.update(deletions, insertions, function (_uri, _ok, _body) {});
1311
+ }
1312
+ }
1313
+ function say(message, style) {
1314
+ const pre = dom.createElement('pre');
1315
+ pre.setAttribute('style', style || 'color: grey');
1316
+ issueDiv.appendChild(pre);
1317
+ pre.appendChild(dom.createTextNode(message));
1318
+ return pre;
1319
+ }
1320
+ function timestring() {
1321
+ const now = new Date();
1322
+ return '' + now.getTime();
1323
+ // http://www.w3schools.com/jsref/jsref_obj_date.asp
1324
+ }
1325
+ function complain(message) {
1326
+ console.warn(message);
1327
+ issueDiv.appendChild(external_UI_.widgets.errorMessageBlock(dom, message));
1328
+ }
1329
+ function complainIfBad(ok, body) {
1330
+ if (!ok) {
1331
+ complain('Sorry, failed to save your change:\n' + body, 'background-color: pink;', context);
1332
+ }
1333
+ }
1334
+ function getOption(tracker, option) {
1335
+ // eg 'allowSubIssues'
1336
+ const opt = kb.any(tracker, external_UI_.ns.ui(option));
1337
+ return !!(opt && opt.value);
1338
+ }
1339
+ function setPaneStyle() {
1340
+ const backgroundColor = getBackgroundColorFromTypes(issue) || '#eee'; // default grey
1341
+ const mystyle0 = 'padding: 0.5em 1.5em 1em 1.5em; border: 0.7em;';
1342
+ const mystyle = mystyle0 + 'border-color: ' + backgroundColor + '; ';
1343
+ issueDiv.setAttribute('style', mystyle);
1344
+ issueDiv.style.backgroundColor = 'white';
1345
+ }
1346
+
1347
+ /// ////////////// Body of renderIssue
1348
+
1349
+ const dom = context.dom;
1350
+ const tracker = kb.the(issue, external_UI_.ns.wf('tracker'), null, issue.doc());
1351
+ if (!tracker) throw new Error('No tracker');
1352
+ const stateStore = kb.any(tracker, external_UI_.ns.wf('stateStore'));
1353
+ const store = issue.doc();
1354
+ const issueDiv = dom.createElement('div');
1355
+ issueDiv.classList.add('trackerIssue');
1356
+ const me = external_SolidLogic_.authn.currentUser();
1357
+ const backgroundColor = getBackgroundColorFromTypes(issue) || 'white';
1358
+ setPaneStyle();
1359
+ external_SolidLogic_.authn.checkUser(); // kick off async operation
1360
+
1361
+ const iconButton = issueDiv.appendChild(external_UI_.widgets.button(dom, iconForIssue(issue)));
1362
+ iconButton.classList.add('trackerIssueIconButton');
1363
+ external_UI_.widgets.makeDraggable(iconButton, issue); // Drag me wherever you need to do stuff with this issue
1364
+
1365
+ const states = kb.any(tracker, external_UI_.ns.wf('issueClass'));
1366
+ if (!states) {
1367
+ throw new Error('This tracker ' + tracker + ' has no issueClass');
1368
+ }
1369
+ const select = external_UI_.widgets.makeSelectForCategory(dom, kb, issue, states, stateStore, function (ok, body) {
1370
+ if (ok) {
1371
+ setModifiedDate(store, kb, store);
1372
+ external_UI_.widgets.refreshTree(issueDiv);
1373
+ } else {
1374
+ console.log('Failed to change state:\n' + body);
1375
+ }
1376
+ });
1377
+ issueDiv.appendChild(select);
1378
+ const cats = kb.each(tracker, external_UI_.ns.wf('issueCategory')); // zero or more
1379
+ for (const cat of cats) {
1380
+ issueDiv.appendChild(external_UI_.widgets.makeSelectForCategory(dom, kb, issue, cat, stateStore, function (ok, body) {
1381
+ if (ok) {
1382
+ setModifiedDate(store, kb, store);
1383
+ external_UI_.widgets.refreshTree(issueDiv);
1384
+ } else {
1385
+ console.log('Failed to change category:\n' + body);
1386
+ }
1387
+ }));
1388
+ }
1389
+
1390
+ // For when issue is the main solo subject, include link to tracker itself.
1391
+ const a = dom.createElement('a');
1392
+ a.classList.add('trackerIssueTrackerLink');
1393
+ a.setAttribute('href', tracker.uri);
1394
+ issueDiv.appendChild(a).textContent = external_UI_.utils.label(tracker);
1395
+ a.addEventListener('click', external_UI_.widgets.openHrefInOutlineMode, true);
1396
+
1397
+ // Main Form for Title, description only
1398
+ const coreIssueFormText = `
1399
+ @prefix : <http://www.w3.org/ns/ui#> .
1400
+ @prefix core: <http://www.w3.org/2005/01/wf/flow#>.
1401
+ @prefix dc: <http://purl.org/dc/elements/1.1/>.
1402
+ @prefix wf: <http://www.w3.org/2005/01/wf/flow#> .
1403
+
1404
+ core:coreIsueForm a :Form;
1405
+ <http://purl.org/dc/elements/1.1/title> "Core issue data";
1406
+ :parts (
1407
+ core:titleField
1408
+ core:descriptionField ) .
1409
+
1410
+ core:descriptionField a :MultiLineTextField;
1411
+ :label "Description";
1412
+ :property wf:description;
1413
+ :size "40" .
1414
+
1415
+ core:titleField a :SingleLineTextField;
1416
+ :label "Title";
1417
+ :maxLength "128";
1418
+ :property dc:title; # @@ Should move to dct or schema
1419
+ :size "40" .
1420
+
1421
+ wf:Task :creationForm core:coreIsueForm .
1422
+ `;
1423
+ const CORE_ISSUE_FORM = external_UI_.ns.wf('coreIsueForm');
1424
+ external_$rdf_.parse(coreIssueFormText, kb, CORE_ISSUE_FORM.doc().uri, 'text/turtle');
1425
+ const form = external_UI_.widgets.appendForm(dom, null,
1426
+ // was: container
1427
+ {}, issue, CORE_ISSUE_FORM, stateStore, complainIfBad);
1428
+ form.classList.add('trackerIssueForm');
1429
+ issueDiv.appendChild(form);
1430
+ form.style.backgroundColor = backgroundColor;
1431
+
1432
+ // Assigned to whom?
1433
+
1434
+ const assignments = kb.statementsMatching(issue, external_UI_.ns.wf('assignee'));
1435
+ if (assignments.length > 1) {
1436
+ say('Weird, was assigned to more than one person. Fixing ..');
1437
+ const deletions = assignments.slice(1);
1438
+ kb.updater.update(deletions, [], function (uri, ok, body) {
1439
+ if (ok) {
1440
+ say('Now fixed.');
1441
+ } else {
1442
+ complain('Fixed failed: ' + body, context);
1443
+ }
1444
+ });
1445
+ }
1446
+
1447
+ // Who could be assigned to this?
1448
+ // Anyone assigned to any issue we know about
1449
+
1450
+ async function getPossibleAssignees() {
1451
+ const devGroups = kb.each(issue, external_UI_.ns.wf('assigneeGroup'));
1452
+ await kb.fetcher.load(devGroups); // Load them all
1453
+ const groupDevs = devGroups.map(group => kb.each(group, external_UI_.ns.vcard('member'), null, group.doc())).flat();
1454
+ // Anyone who is a developer of any project which uses this tracker
1455
+ const proj = kb.any(null, external_UI_.ns.doap('bug-database'), tracker); // What project?
1456
+ if (proj) {
1457
+ await kb.fetcher.load(proj);
1458
+ }
1459
+ const projectDevs = proj ? kb.each(proj, external_UI_.ns.doap('developer')) : [];
1460
+ return groupDevs.concat(projectDevs);
1461
+ }
1462
+
1463
+ // Super issues first - like parent directories .. maybe use breadcrums from?? @@
1464
+ function renderSubIssue(issue) {
1465
+ const options = {
1466
+ link: false
1467
+ };
1468
+ return external_UI_.widgets.personTR(dom, external_UI_.ns.wf('dependent'), issue, options);
1469
+ }
1470
+ getPossibleAssignees().then(devs => {
1471
+ if (devs.length) {
1472
+ devs.forEach(function (person) {
1473
+ kb.fetcher.lookUpThing(person);
1474
+ }); // best effort async for names etc
1475
+ const opts = {
1476
+ // 'mint': '** Add new person **',
1477
+ nullLabel: '(unassigned)'
1478
+ /* 'mintStatementsFun': function (newDev) {
1479
+ var sts = [ $rdf.st(newDev, ns.rdf('type'), ns.foaf('Person')) ]
1480
+ if (proj) sts.push($rdf.st(proj, ns.doap('developer'), newDev))
1481
+ return sts
1482
+ }
1483
+ */
1484
+ };
1485
+ issueDiv.appendChild(external_UI_.widgets.makeSelectForOptions(dom, kb, issue, external_UI_.ns.wf('assignee'), devs, opts, store, function (ok, body) {
1486
+ if (ok) setModifiedDate(store, kb, store);else console.log('Failed to change assignee:\n' + body);
1487
+ }));
1488
+ }
1489
+ });
1490
+
1491
+ /* The trees of super-issues and sub-issues
1492
+ */
1493
+ function supersOver(issue, stack) {
1494
+ stack = stack || [];
1495
+ const sup = kb.any(null, external_UI_.ns.wf('dependent'), issue, issue.doc());
1496
+ if (sup) return supersOver(sup, [sup].concat(stack));
1497
+ return stack;
1498
+ }
1499
+ if (getOption(tracker, 'allowSubIssues')) {
1500
+ const subIssuePanel = issueDiv.appendChild(dom.createElement('div'));
1501
+ subIssuePanel.classList.add('trackerIssueSubIssuePanel');
1502
+ subIssuePanel.appendChild(dom.createElement('h4')).textContent = 'Super Issues';
1503
+ const listOfSupers = subIssuePanel.appendChild(dom.createElement('div'));
1504
+ listOfSupers.classList.add('trackerIssueSubIssuePanelSupersList');
1505
+ listOfSupers.refresh = function () {
1506
+ // const supers = kb.each(null, ns.wf('dependent'), issue, issue.doc())
1507
+ const supers = supersOver(issue);
1508
+ external_UI_.utils.syncTableToArrayReOrdered(listOfSupers, supers, renderSubIssue);
1509
+ };
1510
+ listOfSupers.refresh();
1511
+
1512
+ // Sub issues
1513
+ subIssuePanel.appendChild(dom.createElement('h4')).textContent = 'Sub Issues';
1514
+ const listOfSubs = subIssuePanel.appendChild(dom.createElement('div'));
1515
+ listOfSubs.classList.add('trackerIssueSubIssuePanelSubsList');
1516
+ listOfSubs.refresh = function () {
1517
+ const subs = kb.each(issue, external_UI_.ns.wf('dependent'), null, issue.doc());
1518
+ external_UI_.utils.syncTableToArrayReOrdered(listOfSubs, subs, renderSubIssue);
1519
+ };
1520
+ listOfSubs.refresh();
1521
+ const b = dom.createElement('button');
1522
+ b.classList.add('trackerIssueSubIssuePanelNewSubButton');
1523
+ b.setAttribute('type', 'button');
1524
+ subIssuePanel.appendChild(b);
1525
+ const classLabel = external_UI_.utils.label(states);
1526
+ b.innerHTML = 'New sub ' + classLabel;
1527
+ b.addEventListener('click', function (_event) {
1528
+ subIssuePanel.insertBefore(newIssueForm(dom, kb, tracker, issue, listOfSubs.refresh), b.nextSibling); // Pop form just after button
1529
+ }, false);
1530
+ }
1531
+ issueDiv.appendChild(dom.createElement('br'));
1532
+
1533
+ // Extras are stored centrally to the tracker
1534
+ const extrasForm = kb.any(tracker, external_UI_.ns.wf('extrasEntryForm'));
1535
+ if (extrasForm) {
1536
+ external_UI_.widgets.appendForm(dom, issueDiv, {}, issue, extrasForm, stateStore, complainIfBad);
1537
+ // issueDiv.appendChild(renderSpacer(backgroundColor))
1538
+ }
1539
+
1540
+ // Comment/discussion area
1541
+
1542
+ const spacer = issueDiv.appendChild(renderSpacer(dom, backgroundColor));
1543
+ spacer.classList.add('trackerIssueSpacer');
1544
+ const template = kb.anyValue(tracker, external_UI_.ns.wf('issueURITemplate'));
1545
+ /*
1546
+ var chatDocURITemplate = kb.anyValue(tracker, ns.wf('chatDocURITemplate')) // relaive to issue
1547
+ var chat
1548
+ if (chatDocURITemplate) {
1549
+ let template = $rdf.uri.join(chatDocURITemplate, issue.uri) // Template is relative to issue
1550
+ chat = kb.sym(expandTemplate(template))
1551
+ } else
1552
+ */
1553
+ let messageStore;
1554
+ if (template) {
1555
+ messageStore = issue.doc(); // for now. Could go deeper
1556
+ } else {
1557
+ messageStore = kb.any(tracker, external_UI_.ns.wf('messageStore'));
1558
+ if (!messageStore) messageStore = kb.any(tracker, external_UI_.ns.wf('stateStore'));
1559
+ kb.sym(messageStore.uri + '#' + 'Chat' + timestring()); // var chat =
1560
+ }
1561
+ kb.fetcher.nowOrWhenFetched(messageStore, function (ok, body, _xhr) {
1562
+ if (!ok) {
1563
+ const er = dom.createElement('p');
1564
+ er.classList.add('trackerIssueMessageAreaError');
1565
+ er.textContent = body; // @@ use nice error message
1566
+ issueDiv.insertBefore(er, spacer);
1567
+ } else {
1568
+ const discussion = (0,external_UI_.messageArea)(dom, kb, issue, messageStore);
1569
+ discussion.classList.add('trackerIssueMessageArea');
1570
+ issueDiv.insertBefore(discussion, spacer);
1571
+ issueDiv.insertBefore(renderSpacer(dom, backgroundColor), discussion);
1572
+ } // Not sure why e stuck this in upwards rather than downwards
1573
+ });
1574
+
1575
+ // Draggable attachment list
1576
+ const attachmentHint = issueDiv.appendChild(dom.createElement('div'));
1577
+ attachmentHint.classList.add('trackerIssueAttachmentHint');
1578
+ attachmentHint.innerHTML = `<h4>Attachments</h4>
1579
+ <p>Drag files, emails,
1580
+ web pages onto the paper clip, or click the file upload button.</p>`;
1581
+ const uploadFolderURI = issue.uri.endsWith('/index.ttl#this') // This has a whole folder to itself
1582
+ ? issue.uri.slice(0, 14) + 'Files/' // back to slash
1583
+ : issue.dir().uri + 'Files/' + issue.uri.split('#')[1] + '/'; // New folder for issue in file with others
1584
+
1585
+ external_UI_.widgets.attachmentList(dom, issue, issueDiv, {
1586
+ doc: stateStore,
1587
+ promptIcon: external_UI_.icons.iconBase + 'noun_25830.svg',
1588
+ uploadFolder: kb.sym(uploadFolderURI),
1589
+ // Allow local files to be uploaded
1590
+ predicate: external_UI_.ns.wf('attachment')
1591
+ });
1592
+
1593
+ // Delete button to delete the issue
1594
+ const deleteButton = external_UI_.widgets.deleteButtonWithCheck(dom, issueDiv, 'issue', async function () {
1595
+ try {
1596
+ await kb.updater.update(kb.connectedStatements(issue));
1597
+ } catch (err) {
1598
+ complain(`Unable to delete issue: ${err}`, context);
1599
+ }
1600
+ // @@ refreshTree
1601
+ complain('DELETED OK', context);
1602
+ issueDiv.style.backgroundColor = '#eee';
1603
+ issueDiv.style.color = 'orange';
1604
+ });
1605
+ deleteButton.classList.add('trackerIssueDeleteButton');
1606
+
1607
+ // Refresh button
1608
+ const refreshButton = dom.createElement('button');
1609
+ refreshButton.classList.add('trackerIssueRefreshButton');
1610
+ refreshButton.textContent = 'refresh messages';
1611
+ refreshButton.addEventListener('click', async function (_event) {
1612
+ try {
1613
+ await kb.fetcher.load(messageStore, {
1614
+ force: true,
1615
+ clearPreviousData: true
1616
+ });
1617
+ } catch (err) {
1618
+ alert(err);
1619
+ return;
1620
+ }
1621
+ external_UI_.widgets.refreshTree(issueDiv);
1622
+ }, false);
1623
+ refreshButton.setAttribute('style', external_UI_.style.button);
1624
+ issueDiv.appendChild(refreshButton);
1625
+ return issueDiv;
1626
+ } // renderIssue
1627
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/newTracker.css
1628
+ var newTracker = __webpack_require__(788);
1629
+ ;// ./src/styles/newTracker.css
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+ var newTracker_options = {};
1642
+
1643
+ newTracker_options.styleTagTransform = (styleTagTransform_default());
1644
+ newTracker_options.setAttributes = (setAttributesWithoutAttributes_default());
1645
+ newTracker_options.insert = insertBySelector_default().bind(null, "head");
1646
+ newTracker_options.domAPI = (styleDomAPI_default());
1647
+ newTracker_options.insertStyleElement = (insertStyleElement_default());
1648
+
1649
+ var newTracker_update = injectStylesIntoStyleTag_default()(newTracker/* default */.A, newTracker_options);
1650
+
1651
+
1652
+
1653
+
1654
+ /* harmony default export */ const styles_newTracker = (newTracker/* default */.A && newTracker/* default */.A.locals ? newTracker/* default */.A.locals : undefined);
1655
+
1656
+ ;// ./src/newTracker.js
1657
+
1658
+
1659
+
1660
+
1661
+ const ns = external_UI_.ns;
1662
+ const updater = external_SolidLogic_.store.updater;
1663
+
1664
+ /* Button for making a whole new tracker
1665
+ ** This is the least tesetd part of the tracker system at the moment.
1666
+ */
1667
+ function newTrackerButton(thisTracker, context) {
1668
+ function timestring() {
1669
+ const now = new Date();
1670
+ return '' + now.getTime();
1671
+ // http://www.w3schools.com/jsref/jsref_obj_date.asp
1672
+ }
1673
+
1674
+ // const dom = context.dom
1675
+ const button = external_UI_.login.newAppInstance(context.dom, {
1676
+ noun: 'tracker'
1677
+ }, function (ws, base) {
1678
+ function morph(x) {
1679
+ // Move any URIs in this space into that space
1680
+ if (x.elements !== undefined) return x.elements.map(morph); // Morph within lists
1681
+ if (x.uri === undefined) return x;
1682
+ let u = x.uri;
1683
+ if (u === stateStore.uri) return newStore; // special case
1684
+ if (u.slice(0, oldBase.length) === oldBase) {
1685
+ u = base + u.slice(oldBase.length);
1686
+ }
1687
+ return kb.sym(u);
1688
+ }
1689
+ const appPathSegment = 'issuetracker.w3.org'; // how to allocate this string and connect to
1690
+ // console.log("Ready to make new instance at "+ws)
1691
+ const sp = external_UI_.ns.space;
1692
+ const kb = context.session.store;
1693
+ if (!base) {
1694
+ base = kb.any(ws, sp('uriPrefix')).value;
1695
+ if (base.slice(-1) !== '/') {
1696
+ external_$rdf_.log.error(appPathSegment + ': No / at end of uriPrefix ' + base);
1697
+ base = base + '/';
1698
+ }
1699
+ base += appPathSegment + '/' + timestring() + '/'; // unique id
1700
+ if (!confirm('Make new tracker at ' + base + '?')) {
1701
+ return;
1702
+ }
1703
+ }
1704
+ const stateStore = kb.any(thisTracker, ns.wf('stateStore'));
1705
+ const newStore = kb.sym(base + 'store.ttl');
1706
+ const here = thisTracker.doc();
1707
+ const oldBase = here.uri.slice(0, here.uri.lastIndexOf('/') + 1);
1708
+ const there = morph(here);
1709
+ const newTracker = morph(thisTracker);
1710
+ const myConfig = kb.statementsMatching(undefined, undefined, undefined, here);
1711
+ for (let i = 0; i < myConfig.length; i++) {
1712
+ const st = myConfig[i];
1713
+ kb.add(morph(st.subject), morph(st.predicate), morph(st.object), there);
1714
+ }
1715
+
1716
+ // Keep a paper trail @@ Revisit when we have non-public ones @@ Privacy
1717
+ //
1718
+ kb.add(newTracker, external_UI_.ns.space('inspiration'), thisTracker, stateStore);
1719
+ kb.add(newTracker, external_UI_.ns.space('inspiration'), thisTracker, there);
1720
+
1721
+ // $rdf.log.debug("\n Ready to put " + kb.statementsMatching(undefined, undefined, undefined, there)); //@@
1722
+
1723
+ updater.put(there, kb.statementsMatching(undefined, undefined, undefined, there), 'text/turtle', function (uri2, ok, message) {
1724
+ if (ok) {
1725
+ updater.put(newStore, [], 'text/turtle', function (uri3, ok, message) {
1726
+ if (ok) {
1727
+ console.info('Ok The tracker created OK at: ' + newTracker.uri + '\nMake a note of it, bookmark it. ');
1728
+ } else {
1729
+ console.log('FAILED to set up new store at: ' + newStore.uri + ' : ' + message);
1730
+ }
1731
+ });
1732
+ } else {
1733
+ console.log('FAILED to save new tracker at: ' + there.uri + ' : ' + message);
1734
+ }
1735
+ });
1736
+
1737
+ // Created new data files.
1738
+ // @@ Now create initial files - html skin, (Copy of mashlib, css?)
1739
+ // @@ Now create form to edit configuation parameters
1740
+ // @@ Optionally link new instance to list of instances -- both ways? and to child/parent?
1741
+ // @@ Set up access control for new config and store.
1742
+ }); // callback to newAppInstance
1743
+ button.classList.add('trackerNewTrackerButton');
1744
+ return button;
1745
+ } // newTrackerButton
1746
+ ;// ./src/csvButton.js
1747
+ // A Button to copy the state of the tracker in CSV format
1748
+ // Comma-separated Values
1749
+ //
1750
+ // Yes this mixes the layers but that is not all bad if it gets it in one file
1751
+ // one can look at
1752
+
1753
+
1754
+
1755
+ function quoteString(value) {
1756
+ // https://www.rfc-editor.org/rfc/rfc4180
1757
+ const stripped = value.replaceAll('\n', ' ');
1758
+ if (!stripped.includes(',')) {
1759
+ return stripped;
1760
+ } // If contains comma then put in quotes and double up internal quotes
1761
+ const quoted = '"' + stripped.replaceAll('"', '""') + '"';
1762
+ console.log('Quoted: >>>' + quoted + '<<<');
1763
+ const check = quoted.slice(1, -1).replaceAll('""', '');
1764
+ if (check.includes('"')) throw new Error('CSV inconsistecy');
1765
+ return quoted;
1766
+ }
1767
+ function csvText(store, tracker) {
1768
+ function columnText(task, column) {
1769
+ let thing;
1770
+ if (column.predicate) {
1771
+ thing = store.any(task, column.predicate);
1772
+ return thing ? thing.value : '--';
1773
+ } else if (column.category) {
1774
+ const types = store.each(task, external_UI_.ns.rdf('type'));
1775
+ for (const t of types) {
1776
+ // console.log('@@ checking subclass type: ', t, ' category: ', column.category )
1777
+ if (store.holds(t, external_UI_.ns.rdfs('subClassOf'), column.category)) {
1778
+ thing = t;
1779
+ }
1780
+ }
1781
+ if (!thing) return '?' + external_UI_.utils.label(column.category); // Missing cat OK
1782
+ // if (!thing) throw new Error('wot no class of category ', column.category)
1783
+ } else {
1784
+ throw new Error('wot no pred or cat', column);
1785
+ }
1786
+ return external_UI_.utils.label(thing);
1787
+ }
1788
+ function taskLine(task) {
1789
+ return columns.map(column => columnText(task, column)).map(quoteString).join(',') + '\n';
1790
+ }
1791
+ const stateStore = store.any(tracker, external_UI_.ns.wf('stateStore'));
1792
+ const tasks = store.each(null, external_UI_.ns.wf('tracker'), tracker, stateStore);
1793
+ console.log(' CSV: Tasks:', tasks.length);
1794
+ const columns = [{
1795
+ label: 'Name',
1796
+ predicate: external_UI_.ns.dc('title')
1797
+ }
1798
+ /* { label: 'Description', predicate: ns.wf('description') }, */
1799
+
1800
+ /* { label: 'State', category: ns.wf('Task') }
1801
+ */];
1802
+ const states = store.any(tracker, external_UI_.ns.wf('issueClass')); // Main states are subclasses of this class
1803
+ console.log(' CSV: States - main superclass:', states);
1804
+ const stateColumn = {
1805
+ label: 'State',
1806
+ category: states
1807
+ }; // better than 'task'
1808
+ console.log(' CSV: found column from state', stateColumn);
1809
+ columns.push(stateColumn);
1810
+ const categories = store.each(tracker, external_UI_.ns.wf('issueCategory'));
1811
+ console.log(' CSV: Categories : ', categories);
1812
+ console.log(' CSV: Categories : length: ', categories.length);
1813
+ console.log(' CSV: Categories : first: ', categories[0]);
1814
+ const classifications = categories;
1815
+ for (const c of classifications) {
1816
+ const column = {
1817
+ label: external_UI_.utils.label(c),
1818
+ category: c
1819
+ };
1820
+ console.log(' CSV: found column from classifications', column);
1821
+ columns.push(column); // Classes are different
1822
+ }
1823
+
1824
+ // const propertyList = ns.wf('propertyList')
1825
+ const form = store.any(tracker, external_UI_.ns.wf('extrasEntryForm'), null, null);
1826
+ console.log(' CSV: Form : ', form);
1827
+ if (form) {
1828
+ const parts = store.any(form, external_UI_.ns.ui('parts'), null, form.doc());
1829
+ console.log(' CSV: parts : ', parts);
1830
+ const fields = parts.elements;
1831
+ console.log(' CSV: fields : ', fields);
1832
+ for (const field of fields) {
1833
+ const prop = store.any(field, external_UI_.ns.ui('property'));
1834
+ if (prop) {
1835
+ const lab = external_UI_.utils.label(prop);
1836
+ const column = {
1837
+ label: lab,
1838
+ predicate: prop
1839
+ };
1840
+ console.log(' CSV: found column from form', column);
1841
+ columns.push(column);
1842
+ }
1843
+ }
1844
+ }
1845
+ // Put description on the end as it can be long
1846
+ columns.push({
1847
+ label: 'Description',
1848
+ predicate: external_UI_.ns.wf('description')
1849
+ });
1850
+ console.log('Columns: ', columns.length);
1851
+ const header = columns.map(col => col.label).join(',') + '\n';
1852
+ console.log('CSV: Header= ', header);
1853
+ // Order tasks?? By Creation date? By Status?
1854
+ const body = tasks.map(taskLine).join('');
1855
+ return header + body;
1856
+ }
1857
+ function csvButton(dom, tracker) {
1858
+ const wrapper = dom.createElement('div');
1859
+ // Add a button
1860
+ const button = external_UI_.widgets.button(dom, external_UI_.icons.iconBase + 'noun_Document_998605.svg', 'Copy as CSV', async _event => {
1861
+ const div = button.parentNode.parentNode;
1862
+ console.log('button gparent div', div);
1863
+ div.addEventListener('copy', event => {
1864
+ // alert ('Copy caught');
1865
+ const csv = csvText(external_SolidLogic_.store, tracker);
1866
+ event.clipboardData.setData('text/plain', csv);
1867
+ event.clipboardData.setData('text/csv', csv);
1868
+ alert('Copy data: ' + csv);
1869
+ event.preventDefault();
1870
+ });
1871
+ });
1872
+ wrapper.appendChild(button);
1873
+ return wrapper;
1874
+ }
1875
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/csvButton.css
1876
+ var styles_csvButton = __webpack_require__(472);
1877
+ ;// ./src/styles/csvButton.css
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+ var csvButton_options = {};
1890
+
1891
+ csvButton_options.styleTagTransform = (styleTagTransform_default());
1892
+ csvButton_options.setAttributes = (setAttributesWithoutAttributes_default());
1893
+ csvButton_options.insert = insertBySelector_default().bind(null, "head");
1894
+ csvButton_options.domAPI = (styleDomAPI_default());
1895
+ csvButton_options.insertStyleElement = (insertStyleElement_default());
1896
+
1897
+ var csvButton_update = injectStylesIntoStyleTag_default()(styles_csvButton/* default */.A, csvButton_options);
1898
+
1899
+
1900
+
1901
+
1902
+ /* harmony default export */ const src_styles_csvButton = (styles_csvButton/* default */.A && styles_csvButton/* default */.A.locals ? styles_csvButton/* default */.A.locals : undefined);
1903
+
1904
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/issuePane.css
1905
+ var issuePane = __webpack_require__(95);
1906
+ ;// ./src/styles/issuePane.css
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+ var issuePane_options = {};
1919
+
1920
+ issuePane_options.styleTagTransform = (styleTagTransform_default());
1921
+ issuePane_options.setAttributes = (setAttributesWithoutAttributes_default());
1922
+ issuePane_options.insert = insertBySelector_default().bind(null, "head");
1923
+ issuePane_options.domAPI = (styleDomAPI_default());
1924
+ issuePane_options.insertStyleElement = (insertStyleElement_default());
1925
+
1926
+ var issuePane_update = injectStylesIntoStyleTag_default()(issuePane/* default */.A, issuePane_options);
1927
+
1928
+
1929
+
1930
+
1931
+ /* harmony default export */ const styles_issuePane = (issuePane/* default */.A && issuePane/* default */.A.locals ? issuePane/* default */.A.locals : undefined);
1932
+
1933
+ ;// ./src/index.js
1934
+ /* Issue Tracker Pane
1935
+ **
1936
+ ** This solid view allows a user to interact with an issue tracker, or individual issue,
1937
+ ** to change its state according to an ontology, comment on it, etc.
1938
+ **
1939
+ */
1940
+
1941
+
1942
+
1943
+ // @@ will later be in solid-UI
1944
+
1945
+
1946
+
1947
+
1948
+ /* babel-plugin-inline-import './ontology/trackerSettingsForm.ttl' */
1949
+ const trackerSettingsFormText = "@prefix : <http://www.w3.org/ns/ui#> .\n@prefix core: <http://www.w3.org/2005/01/wf/flow#>.\n@prefix dct: <http://purl.org/dc/terms/>.\n@prefix owl: <http://www.w3.org/2002/07/owl#>.\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix ui: <http://www.w3.org/ns/ui#> .\n@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.\n@prefix wf: <http://www.w3.org/2005/01/wf/flow#> .\n\n core:TrackerSettingsForm a :Form;\n <http://purl.org/dc/elements/1.1/title> \"Tracker Configuration Form\";\n :parts (\n\n [ a ui:Heading; ui:contents \"About the tracker\"@en ]\n\n [ a :SingleLineTextField;\n :label \"Title of issue tracker\";\n :maxLength \"128\";\n :property dct:title;\n :size \"40\" ]\n\n [ a :MultiLineTextField; :label \"Description\"; :property wf:description; :size \"40\" ]\n\n [ a ui:Choice; ui:canMintNew true; ui:use core:SuperClassForm; ui:follow true;\n ui:property wf:issueClass;\n ui:label \"What states can an issue be in?\";\n ui:from rdfs:Class;\n ui:default wf:Task ]\n\n [ a ui:Comment; ui:contents \"\"\"You can optionally sort issues using (one or more) classification systems\"\"\"@en ]\n\n\n [ a ui:Multiple; ui:canMintNew true; ui:part core:ClassificationForm;\n ui:property wf:issueCategory; ui:label \"Sort them into which category?\"; ui:from rdfs:Class ]\n\n [ a :BooleanField;\n :label \"Allow issues to have sub-issues\";\n :property wf:allowSubIssues;\n :default false ]\n\n [ a ui:Heading; ui:contents \"Table view:\"@en ]\n\n [ a ui:Comment; ui:contents \"Any extra properties to include?\"@en ]\n\n\n [a ui:Multiple; ui:property wf:propertyList; ui:ordered true; ui:part core:PropertyForm; ui:follow true ]\n\n [ a ui:Heading; ui:contents \"Details of issues\"@en ]\n\n # Use a people picker ideally\n [ a ui:Choice; ui:canMintNew true; ui:use core:GroupForm;\n ui:property wf:assigneeGroup;\n ui:label \"Assign issues to people from which group?\";\n ui:from vcard:Group;\n ]\n\n # Optionally one form for extras\n\n [ a ui:Choice; ui:canMintNew true; ui:use ui:FormForm;\n ui:property wf:extrasEntryForm;\n ui:label \"Other things to save about each issue?\";\n ui:from ui:Form;\n ]\n\n\n ) .\n\n # Form for the superclass of all states\n # @@ also We must require each state class to be stated to be a subclass of EITHER Open OR Closed.\n core:SuperClassForm a ui:Form; dct:title \"Form for managing states\";\n ui:parts (\n [ a :SingleLineTextField;\n :label \"Name of set of states\";\n :defualt \"States\";\n :maxLength \"128\";\n :property rdfs:label;\n :size \"40\" ]\n [a ui:Multiple; ui:property owl:disjointUnionOf; ui:ordered true; ui:part core:StateForm ]\n # [ a ui:Multiple; ui:property rdfs:subClassOf; ui:reverse true; ui:part core:StateForm ]\n ) .\n\n core:StateForm a ui:Form; dct:title \"Form for one state\";\n ui:parts (\n [ a :SingleLineTextField;\n :label \"Name of state\";\n :maxLength \"128\";\n :property rdfs:label;\n :size \"40\" ]\n [ a :ColorField; :label \"Background color\"; :property :backgroundColor ]\n # @@ add icon for state\n\n ).\n\n\n # Form for Classification\n\n core:ClassificationForm a ui:Form; dct:title \"Form for a classification by categpry\";\n ui:parts (\n [ a :SingleLineTextField;\n :label \"Name of classification:\";\n :maxLength \"128\";\n :property rdfs:label;\n :size \"40\" ]\n [a ui:Multiple; ui:property owl:disjointUnionOf; ui:ordered true; ui:part core:CategoryForm ]\n ) .\n\n core:CategoryForm a ui:Form; dct:title \"Form for a category\";\n ui:parts (\n [ a :SingleLineTextField;\n :label \"Name of category\";\n :maxLength \"128\";\n :property rdfs:label;\n :size \"40\" ]\n [ a :ColorField; :label \"Background color\"; :property :backgroundColor ]\n\n ).\n\n core:PropertyForm a ui:Form; ui:parts ( # Internded for raed only only marking the\n [ a :SingleLineTextField;\n :label \"(property name)\";\n :maxLength \"128\";\n :property rdfs:label;\n :size \"40\" ]\n ).\n\n\n # Other ontology stuff we are otherwis missing\n\n # we can usde ui:label to give a decent abel when the ontology uses a really bad one\n rdfs:subClassOf ui:label \"super class\" .\n # We can also add a specific nice label for the inverse\n [] owl:inverse rdfs:subClassOf; rdfs:label \"sub class\" .\n owl:disjointUnionOf ui:label \"option\" .\n\n # Form for new group\n\n\n core:GroupForm a ui:Form; dct:title \"Form for new contacts group\"; ui:parts (\n [ a :SingleLineTextField;\n :label \"Name of new group\";\n :maxLength \"128\";\n :property vcard:fn;\n :size \"60\" ]\n\n [ a ui:Heading; ui:contents \"Members of group\"@en ]\n\n [ a ui:Multiple; ui:label \"contacts in group\"; ui:property vcard:member; ui:part core:PersonForm ]\n\n ).\n\n core:PersonForm a ui:Form; dct:title \"New contact details form\"; ui:parts (\n\n [ a :NamedNodeURIField; ui:label \"Solid ID\"; ui:property owl:sameAs; ui:size 60 ]\n\n [ a :SingleLineTextField;\n :label \"Name of contact\";\n :maxLength \"128\";\n :property vcard:fn;\n :size \"60\" ]\n\n [ a ui:PhoneField; :label \"Phone\"; :property vcard:phone; ] # @@ check property]\n\n [ a :EmailField; :label \"Email\"; :property vcard:email ] # @@ check property\n\n ).\n\n# classificattion owl:disjointUnionOf ()\n wf:Tracker :creationForm core:SettingsForm .\n";
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+ const src_kb = external_SolidLogic_.store;
1958
+
1959
+ // const MY_TRACKERS_ICON = UI.icons.iconBase + 'noun_Document_998605.svg'
1960
+ // const TRACKER_ICON = UI.icons.iconBase + 'noun_list_638112'
1961
+ // const TASK_ICON = UI.icons.iconBase + 'noun_17020.svg'
1962
+
1963
+ const OVERFLOW_CLASS = 'trackerIssuePaneOverflow';
1964
+ /* harmony default export */ const src = ({
1965
+ icon: external_UI_.icons.iconBase + 'noun_122196.svg',
1966
+ // was: js/panes/issue/tbl-bug-22.png
1967
+ // noun_list_638112 is a checklist document
1968
+ // noun_Document_998605.svg is a stack of twpo checklists
1969
+ // noun_97839.svg is a ladybug
1970
+ // noun_122196.svg is a clipboard with a check list on it
1971
+ // noun_17020.svg is a single check box
1972
+ name: 'issue',
1973
+ audience: [],
1974
+ // Anyone. was [ns.solid('PowerUser')]
1975
+
1976
+ // Does the subject deserve an issue pane?
1977
+ label: function (subject, _context) {
1978
+ const t = src_kb.findTypeURIs(subject);
1979
+ if (t['http://www.w3.org/2005/01/wf/flow#Task'] || src_kb.holds(subject, external_UI_.ns.wf('tracker'))) {
1980
+ return 'issue';
1981
+ } // in case ontology not available
1982
+ if (t['http://www.w3.org/2005/01/wf/flow#Tracker']) return 'tracker';
1983
+ // Later: Person. For a list of things assigned to them,
1984
+ // open bugs on projects they are developer on, etc
1985
+ return null; // No under other circumstances (while testing at least!)
1986
+ },
1987
+ mintClass: external_UI_.ns.wf('Tracker'),
1988
+ mintNew: async function (context, options) {
1989
+ /** Perform updates on more than one document @@ Move to rdflib!
1990
+ */
1991
+ async function updateMany(deletions, insertions) {
1992
+ const docs = deletions.concat(insertions).map(st => st.why);
1993
+ const uniqueDocs = Array.from(new Set(docs));
1994
+ const updates = uniqueDocs.map(doc => kb.updater.update(deletions.filter(st => st.why.sameTerm(doc)), insertions.filter(st => st.why.sameTerm(doc))));
1995
+ return Promise.all(updates);
1996
+ }
1997
+ const kb = context.session.store;
1998
+ let stateStore;
1999
+ if (options.newInstance) {
2000
+ stateStore = kb.sym(options.newInstance.doc().uri + '_state.ttl');
2001
+ } else {
2002
+ options.newInstance = kb.sym(options.newBase + 'index.ttl#this');
2003
+ stateStore = kb.sym(options.newBase + 'state.ttl');
2004
+ }
2005
+ const tracker = options.newInstance;
2006
+ const appDoc = tracker.doc();
2007
+ const me = external_SolidLogic_.authn.currentUser();
2008
+ if (me) {
2009
+ kb.add(tracker, external_UI_.ns.dc('author'), me, appDoc);
2010
+ }
2011
+ kb.add(tracker, external_UI_.ns.rdf('type'), external_UI_.ns.wf('Tracker'), appDoc);
2012
+ kb.add(tracker, external_UI_.ns.dc('created'), new Date(), appDoc);
2013
+
2014
+ // @@ to do --- adk user what sort of tracker they want
2015
+
2016
+ kb.add(tracker, external_UI_.ns.wf('issueClass'), external_UI_.ns.wf('Task'), appDoc); // @@ ask user
2017
+ kb.add(tracker, external_UI_.ns.wf('initialState'), external_UI_.ns.wf('Open'), appDoc);
2018
+ kb.add(tracker, external_UI_.ns.wf('stateStore'), stateStore, appDoc);
2019
+ kb.add(tracker, external_UI_.ns.wf('assigneeClass'), external_UI_.ns.foaf('Person'), appDoc); // @@ set to people in the meeting?
2020
+
2021
+ kb.add(tracker, external_UI_.ns.wf('stateStore'), stateStore, stateStore); // Back Link
2022
+
2023
+ const ins = kb.statementsMatching(undefined, undefined, undefined, appDoc).concat(kb.statementsMatching(undefined, undefined, undefined, stateStore));
2024
+ try {
2025
+ await updateMany([], ins);
2026
+ } catch (err) {
2027
+ return external_UI_.widgets.complain(context, 'Error writing tracker configuration: ' + err);
2028
+ }
2029
+ /*
2030
+ try {
2031
+ await kb.updater.updateMany([], kb.statementsMatching(undefined, undefined, undefined, stateStore))
2032
+ } catch (err) {
2033
+ return widgets.complain(context, 'Error writing tracker state file: ' + err)
2034
+ }
2035
+ */
2036
+ const dom = context.dom;
2037
+ const div = options.div;
2038
+ const notice = div.appendChild(dom.createElement('div'));
2039
+ notice.innerHTML = `<h4>Success</h4>
2040
+ <p>Your <a href="${tracker.uri}">new tracker</a> has been made.
2041
+ Use the settings tab to configure it.
2042
+ </p>
2043
+ `;
2044
+ // console.log('New tracker created ' + tracker)
2045
+ // alert('New tracker created')
2046
+ return options;
2047
+ },
2048
+ render: function (subject, context) {
2049
+ const dom = context.dom;
2050
+ const paneDiv = dom.createElement('div');
2051
+ context.paneDiv = paneDiv;
2052
+ paneDiv.setAttribute('class', 'issuePane');
2053
+ function complain(message) {
2054
+ console.warn(message);
2055
+ paneDiv.appendChild(external_UI_.widgets.errorMessageBlock(dom, message));
2056
+ }
2057
+ function complainIfBad(ok, message) {
2058
+ if (!ok) {
2059
+ complain(message);
2060
+ }
2061
+ }
2062
+
2063
+ /** Infer subclass from disjoint Union
2064
+ **
2065
+ ** This is would not be needed if our quey language
2066
+ ** allowed is to query ardf Collection membership.
2067
+ */
2068
+ async function fixSubClasses(kb, tracker) {
2069
+ // 20220228
2070
+ async function checkOneSuperclass(klass) {
2071
+ const collection = kb.any(klass, external_UI_.ns.owl('disjointUnionOf'), null, doc);
2072
+ if (!collection) throw new Error(`Classification ${klass} has no disjointUnionOf`);
2073
+ if (!collection.elements) throw new Error(`Classification ${klass} has no array`);
2074
+ const needed = new Set(collection.elements.map(x => x.uri));
2075
+ const existing = new Set(kb.each(null, external_UI_.ns.rdfs('subClassOf'), klass, doc).map(x => x.uri));
2076
+ const superfluous = [...existing].filter(sub => !needed.has(sub));
2077
+ const deleteActions = superfluous.map(sub => {
2078
+ return {
2079
+ action: 'delete',
2080
+ st: external_$rdf_.st(kb.sym(sub), external_UI_.ns.rdfs('subClassOf'), klass, doc)
2081
+ };
2082
+ });
2083
+ const missing = [...needed].filter(sub => !existing.has(sub));
2084
+ const insertActions = missing.map(sub => {
2085
+ return {
2086
+ action: 'insert',
2087
+ st: external_$rdf_.st(kb.sym(sub), external_UI_.ns.rdfs('subClassOf'), klass, doc)
2088
+ };
2089
+ });
2090
+ return deleteActions.concat(insertActions);
2091
+ }
2092
+ const doc = tracker.doc();
2093
+ const states = kb.any(tracker, external_UI_.ns.wf('issueClass'));
2094
+ const cats = kb.each(tracker, external_UI_.ns.wf('issueCategory')).concat([states]);
2095
+ let damage = []; // to make totally functionaly need to deal with map over async.
2096
+ for (const klass of cats) {
2097
+ damage = damage.concat(await checkOneSuperclass(klass));
2098
+ }
2099
+ if (damage.length) {
2100
+ const insertables = damage.filter(fix => fix.action === 'insert').map(fix => fix.st);
2101
+ const deletables = damage.filter(fix => fix.action === 'delete').map(fix => fix.st);
2102
+ // alert(`Internal error: s${damage} subclasses inconsistences!`)
2103
+ console.log('Damage:', damage);
2104
+ if (confirm(`Fix ${damage} inconsistent subclasses in tracker config?`)) {
2105
+ await kb.updater.update(deletables, insertables);
2106
+ }
2107
+ }
2108
+ }
2109
+
2110
+ /** /////////////////////////// Board
2111
+ */
2112
+ function renderBoard(tracker, klass) {
2113
+ const states = src_kb.any(tracker, external_UI_.ns.wf('issueClass'));
2114
+ klass = klass || states; // default to states
2115
+ const doingStates = klass.sameTerm(states);
2116
+
2117
+ // These are states we will show by default: the open issues.
2118
+ const stateArray = src_kb.any(klass, external_UI_.ns.owl('disjointUnionOf'));
2119
+ if (!stateArray) {
2120
+ return complain(`Configuration error: state ${states} does not have substates`);
2121
+ }
2122
+ let columnValues = stateArray.elements;
2123
+ if (doingStates && columnValues.length > 2 // and there are more than two
2124
+ ) {
2125
+ // strip out closed states
2126
+ columnValues = columnValues.filter(state => src_kb.holds(state, external_UI_.ns.rdfs('subClassOf'), external_UI_.ns.wf('Open')) || state.sameTerm(external_UI_.ns.wf('Open')));
2127
+ }
2128
+ async function columnDropHandler(issue, newState) {
2129
+ const currentState = getState(issue, klass);
2130
+ const tracker = src_kb.the(issue, external_UI_.ns.wf('tracker'), null, issue.doc());
2131
+ const stateStore = src_kb.any(tracker, external_UI_.ns.wf('stateStore'));
2132
+ if (newState.sameTerm(currentState)) {
2133
+ // alert('Same state ' + utils.label(currentState)) // @@ remove
2134
+ return;
2135
+ }
2136
+ try {
2137
+ await src_kb.updater.update([external_$rdf_.st(issue, external_UI_.ns.rdf('type'), currentState, stateStore)], [external_$rdf_.st(issue, external_UI_.ns.rdf('type'), newState, stateStore)]);
2138
+ } catch (err) {
2139
+ external_UI_.widgets.complain(context, 'Unable to change issue state: ' + err);
2140
+ }
2141
+ boardDiv.refresh(); // reorganize board to match the new reality
2142
+ }
2143
+ function isOpen(issue) {
2144
+ const types = src_kb.findTypeURIs(issue);
2145
+ return !!types[external_UI_.ns.wf('Open').uri];
2146
+ }
2147
+ const options = {
2148
+ columnDropHandler,
2149
+ filter: doingStates ? null : isOpen
2150
+ };
2151
+ options.sortBy = external_UI_.ns.dct('created');
2152
+ options.sortReverse = true;
2153
+ function localRenderIssueCard(issue) {
2154
+ return renderIssueCard(issue, context);
2155
+ }
2156
+ // const columnValues = states // @@ optionally selected states would work
2157
+ const boardDiv = board_board(dom, columnValues, localRenderIssueCard, options);
2158
+ boardDiv.classList.add('trackerBoard');
2159
+ return boardDiv;
2160
+ }
2161
+
2162
+ /** ////////////// Table
2163
+ */
2164
+ function tableRefreshButton(stateStore, tableDiv) {
2165
+ const refreshButton = external_UI_.widgets.button(dom, external_UI_.icons.iconBase + 'noun_479395.svg', 'refresh table', async _event => {
2166
+ try {
2167
+ await src_kb.fetcher.load(stateStore, {
2168
+ force: true,
2169
+ clearPreviousData: true
2170
+ });
2171
+ } catch (err) {
2172
+ alert(err);
2173
+ return;
2174
+ }
2175
+ external_UI_.widgets.refreshTree(tableDiv);
2176
+ });
2177
+ return refreshButton;
2178
+ }
2179
+ function renderTable(tracker) {
2180
+ function newOptionalClause() {
2181
+ const clause = new external_$rdf_.IndexedFormula();
2182
+ query.pat.optional.push(clause);
2183
+ return clause;
2184
+ }
2185
+ const states = src_kb.any(subject, external_UI_.ns.wf('issueClass'));
2186
+ const cats = src_kb.each(tracker, external_UI_.ns.wf('issueCategory')); // zero or more
2187
+ const vars = ['issue', 'state', 'created'];
2188
+ const query = new external_$rdf_.Query(external_UI_.utils.label(subject));
2189
+ for (let i = 0; i < cats.length; i++) {
2190
+ vars.push('_cat_' + i);
2191
+ }
2192
+ const v = {}; // The RDF variable objects for each variable name
2193
+ vars.forEach(function (x) {
2194
+ query.vars.push(v[x] = external_$rdf_.variable(x));
2195
+ });
2196
+ query.pat.add(v.issue, external_UI_.ns.wf('tracker'), tracker);
2197
+ // query.pat.add(v['issue'], ns.dc('title'), v['title'])
2198
+ query.pat.add(v.issue, external_UI_.ns.dct('created'), v.created);
2199
+ query.pat.add(v.issue, external_UI_.ns.rdf('type'), v.state);
2200
+ query.pat.add(v.state, external_UI_.ns.rdfs('subClassOf'), states);
2201
+ query.pat.optional = [];
2202
+ for (let i = 0; i < cats.length; i++) {
2203
+ const clause = newOptionalClause();
2204
+ clause.add(v.issue, external_UI_.ns.rdf('type'), v['_cat_' + i]);
2205
+ clause.add(v['_cat_' + i], external_UI_.ns.rdfs('subClassOf'), cats[i]);
2206
+ }
2207
+ const propertyList = src_kb.any(tracker, external_UI_.ns.wf('propertyList')); // List of extra properties
2208
+ if (propertyList) {
2209
+ const properties = propertyList.elements;
2210
+ for (let p = 0; p < properties.length; p++) {
2211
+ const prop = properties[p];
2212
+ let vname = '_prop_' + p;
2213
+ if (prop.uri.indexOf('#') >= 0) {
2214
+ vname = prop.uri.split('#')[1];
2215
+ }
2216
+ const oneOpt = newOptionalClause();
2217
+ query.vars.push(v[vname] = external_$rdf_.variable(vname));
2218
+ oneOpt.add(v.issue, prop, v[vname]);
2219
+ }
2220
+ }
2221
+ const selectedStates = {};
2222
+ const possible = src_kb.each(undefined, external_UI_.ns.rdfs('subClassOf'), states);
2223
+ possible.forEach(function (s) {
2224
+ if (src_kb.holds(s, external_UI_.ns.rdfs('subClassOf'), external_UI_.ns.wf('Open')) || s.sameTerm(external_UI_.ns.wf('Open'))) {
2225
+ selectedStates[s.uri] = true;
2226
+ // console.log('on '+s.uri); // @@
2227
+ }
2228
+ });
2229
+ function exposeThisOverlay(href) {
2230
+ const subject = external_$rdf_.sym(href);
2231
+ exposeOverlay(subject, context);
2232
+ }
2233
+ const tableDiv = (0,external_UI_.table)(dom, {
2234
+ query,
2235
+ keyVariable: '?issue',
2236
+ // Charactersic of row
2237
+ sortBy: '?created',
2238
+ // By default, sort by date
2239
+ sortReverse: true,
2240
+ // most recent at the top
2241
+ hints: {
2242
+ '?issue': {
2243
+ linkFunction: exposeThisOverlay,
2244
+ label: 'Title'
2245
+ },
2246
+ '?created': {
2247
+ cellFormat: 'shortDate'
2248
+ },
2249
+ '?state': {
2250
+ initialSelection: selectedStates,
2251
+ label: 'Status'
2252
+ }
2253
+ }
2254
+ });
2255
+ const stateStore = src_kb.any(subject, external_UI_.ns.wf('stateStore'));
2256
+ tableDiv.appendChild(tableRefreshButton(stateStore, tableDiv));
2257
+ tableDiv.classList.add('trackerBoardTable');
2258
+ return tableDiv;
2259
+ }
2260
+
2261
+ // Allow user to create new things within the folder
2262
+ function renderCreationControl(refreshTarget) {
2263
+ const creationDiv = dom.createElement('div');
2264
+ const me = external_SolidLogic_.authn.currentUser();
2265
+ const creationContext = {
2266
+ // folder: subject,
2267
+ div: creationDiv,
2268
+ dom,
2269
+ noun: 'tracker',
2270
+ statusArea: creationDiv,
2271
+ me,
2272
+ refreshTarget
2273
+ };
2274
+ const issuePane = context.session.paneRegistry.byName('issue');
2275
+ const relevantPanes = [issuePane];
2276
+ external_UI_.create.newThingUI(creationContext, context, relevantPanes); // Have to pass panes down newUI
2277
+ creationDiv.classList.add('trackerCreationControlContainer');
2278
+ return creationDiv;
2279
+ }
2280
+ function renderInstances(theClass) {
2281
+ const instancesDiv = dom.createElement('div');
2282
+ const context = {
2283
+ dom,
2284
+ div: instancesDiv,
2285
+ noun: 'tracker'
2286
+ };
2287
+ external_UI_.login.registrationList(context, {
2288
+ public: true,
2289
+ private: true,
2290
+ type: theClass
2291
+ }).then(_context2 => {
2292
+ instancesDiv.appendChild(renderCreationControl(instancesDiv));
2293
+ /* // keep this code in case we need a form
2294
+ const InstancesForm = ns.wf('TrackerInstancesForm')
2295
+ const text = trackerInstancesFormText
2296
+ $rdf.parse(text, kb, InstancesForm.doc().uri, 'text/turtle')
2297
+ widgets.appendForm(dom, instancesDiv, {}, tracker, InstancesForm,
2298
+ tracker.doc(), complainIfBad)
2299
+ */
2300
+ });
2301
+ return instancesDiv;
2302
+ }
2303
+ function renderSettings(tracker) {
2304
+ const settingsDiv = dom.createElement('div');
2305
+ settingsDiv.appendChild(csvButton(dom, tracker)); // Button to copy the tracker as a CSV file
2306
+ const states = src_kb.any(tracker, external_UI_.ns.wf('issueClass'));
2307
+ const views = [tableView, states] // Possible default views
2308
+ .concat(src_kb.each(tracker, external_UI_.ns.wf('issueCategory')));
2309
+ const box = settingsDiv.appendChild(dom.createElement('div'));
2310
+ const lhs = external_UI_.widgets.renderNameValuePair(dom, src_kb, box, null, 'Default view'); // @@ use a predicate?
2311
+ lhs.appendChild(external_UI_.widgets.makeSelectForOptions(dom, src_kb, tracker, external_UI_.ns.wf('defaultView'), views, {}, tracker.doc()));
2312
+
2313
+ // A registration control allows the to record this tracker in their type index
2314
+ const context = {
2315
+ dom,
2316
+ div: settingsDiv,
2317
+ noun: 'tracker'
2318
+ };
2319
+ external_UI_.login.registrationControl(context, tracker, external_UI_.ns.wf('Tracker')).then(_context2 => {
2320
+ const settingsForm = external_UI_.ns.wf('TrackerSettingsForm');
2321
+ const text = trackerSettingsFormText;
2322
+ external_$rdf_.parse(text, src_kb, settingsForm.doc().uri, 'text/turtle');
2323
+ external_UI_.widgets.appendForm(dom, settingsDiv, {}, tracker, settingsForm, tracker.doc(), complainIfBad);
2324
+ });
2325
+ return settingsDiv;
2326
+ }
2327
+ function renderTabsTableAndBoard() {
2328
+ function renderMain(ele, object) {
2329
+ ele.innerHTML = ''; // Clear out "loading message"
2330
+ if (object.sameTerm(boardView)) {
2331
+ ele.appendChild(renderBoard(tracker));
2332
+ } else if (object.sameTerm(tableView)) {
2333
+ ele.appendChild(renderTable(tracker));
2334
+ } else if (object.sameTerm(settingsView)) {
2335
+ ele.appendChild(renderSettings(tracker));
2336
+ } else if (object.sameTerm(instancesView)) {
2337
+ ele.appendChild(renderInstances(external_UI_.ns.wf('Tracker')));
2338
+ } else if (src_kb.holds(tracker, external_UI_.ns.wf('issueCategory'), object) || src_kb.holds(tracker, external_UI_.ns.wf('issueClass'), object)) {
2339
+ ele.appendChild(renderBoard(tracker, object));
2340
+ } else {
2341
+ throw new Error('Unexpected tab type: ' + object);
2342
+ }
2343
+ }
2344
+ const states = src_kb.any(tracker, external_UI_.ns.wf('issueClass'));
2345
+ const items = [instancesView, tableView, states].concat(src_kb.each(tracker, external_UI_.ns.wf('issueCategory')));
2346
+ items.push(settingsView);
2347
+ const selectedTab = src_kb.any(tracker, external_UI_.ns.wf('defaultView'), null, tracker.doc()) || tableView;
2348
+ const options = {
2349
+ renderMain,
2350
+ items,
2351
+ selectedTab
2352
+ };
2353
+
2354
+ // Add stuff to the ontologies which we believe but they don't say
2355
+ const doc = instancesView.doc();
2356
+ src_kb.add(instancesView, external_UI_.ns.rdfs('label'), 'My Trackers', doc); // @@ squatting on wf ns
2357
+ src_kb.add(settingsView, external_UI_.ns.rdfs('label'), 'Settings', doc); // @@ squatting on wf ns
2358
+ src_kb.add(states, external_UI_.ns.rdfs('label'), 'By State', doc); // @@ squatting on wf ns
2359
+
2360
+ const myTabs = external_UI_.tabs.tabWidget(options);
2361
+ return myTabs;
2362
+ }
2363
+ async function renderSingleIssue() {
2364
+ tracker = src_kb.any(subject, external_UI_.ns.wf('tracker'));
2365
+ if (!tracker) throw new Error('This issue ' + subject + 'has no tracker');
2366
+
2367
+ // Much data is in the tracker instance, so wait for the data from it
2368
+ try {
2369
+ // eslint-disable-next-line no-unused-vars
2370
+ const _xhrs = await context.session.store.fetcher.load(tracker.doc());
2371
+ } catch (err) {
2372
+ const msg = 'Failed to load tracker config ' + tracker.doc() + ': ' + err;
2373
+ return complain(msg);
2374
+ }
2375
+ const stateStore = src_kb.any(tracker, external_UI_.ns.wf('stateStore'));
2376
+ if (!stateStore) {
2377
+ return complain('Tracker has no state store: ' + tracker);
2378
+ }
2379
+ try {
2380
+ await context.session.store.fetcher.load(subject);
2381
+ } catch (err) {
2382
+ return complain('Failed to load issue state ' + stateStore + ': ' + err);
2383
+ }
2384
+ paneDiv.appendChild(renderIssue(subject, context));
2385
+ updater.addDownstreamChangeListener(stateStore, function () {
2386
+ external_UI_.widgets.refreshTree(paneDiv);
2387
+ }); // Live update
2388
+ }
2389
+ async function renderTracker() {
2390
+ function showNewIssue(issue) {
2391
+ external_UI_.widgets.refreshTree(paneDiv);
2392
+ exposeOverlay(issue, context);
2393
+ newIssueButton.disabled = false; // https://stackoverflow.com/questions/41176582/enable-disable-a-button-in-pure-javascript
2394
+ }
2395
+ tracker = subject;
2396
+ try {
2397
+ await fixSubClasses(src_kb, tracker);
2398
+ } catch (err) {
2399
+ console.log('@@@ Error fixing subclasses in config: ' + err);
2400
+ }
2401
+ const states = src_kb.any(subject, external_UI_.ns.wf('issueClass'));
2402
+ if (!states) throw new Error('This tracker has no issueClass');
2403
+ const stateStore = src_kb.any(subject, external_UI_.ns.wf('stateStore'));
2404
+ if (!stateStore) throw new Error('This tracker has no stateStore');
2405
+
2406
+ // const me = await authn.currentUser()
2407
+
2408
+ const h = dom.createElement('h2');
2409
+ h.setAttribute('style', 'font-size: 150%');
2410
+ paneDiv.appendChild(h);
2411
+ const classLabel = external_UI_.utils.label(states);
2412
+ h.appendChild(dom.createTextNode(classLabel + ' list')); // Use class label @@I18n
2413
+
2414
+ // New Issue button
2415
+ const newIssueButton = dom.createElement('button');
2416
+ const container = dom.createElement('div');
2417
+ newIssueButton.setAttribute('type', 'button');
2418
+ newIssueButton.classList.add('trackerIssuePaneNewIssueButton');
2419
+ container.classList.add('trackerIssuePaneNewIssueButtonContainer');
2420
+ container.appendChild(newIssueButton);
2421
+ paneDiv.appendChild(container);
2422
+ const img = dom.createElement('img');
2423
+ img.classList.add('trackerIssuePaneNewIssueButtonImage');
2424
+ img.setAttribute('src', external_UI_.icons.iconBase + 'noun_19460_green.svg');
2425
+ newIssueButton.appendChild(img);
2426
+ const span = dom.createElement('span');
2427
+ span.classList.add('trackerIssuePaneNewIssueButtonText');
2428
+ span.innerHTML = 'New ' + classLabel;
2429
+ newIssueButton.appendChild(span);
2430
+ newIssueButton.addEventListener('click', function (_event) {
2431
+ newIssueButton.disabled = true;
2432
+ container.appendChild(newIssueForm(dom, src_kb, tracker, null, showNewIssue));
2433
+ }, false);
2434
+
2435
+ // Table of issues - when we have the main issue list
2436
+ // We also need the ontology loaded
2437
+ //
2438
+ context.session.store.fetcher.load([stateStore]).then(function (_xhrs) {
2439
+ const tableDiv = renderTabsTableAndBoard(tracker);
2440
+ // const tableDiv = renderTable(tracker) // was
2441
+ paneDiv.appendChild(tableDiv);
2442
+ if (tableDiv.refresh) {
2443
+ // Refresh function
2444
+ } else {
2445
+ console.log('No table refresh function?!');
2446
+ }
2447
+ paneDiv.appendChild(newTrackerButton(subject, context));
2448
+ updater.addDownstreamChangeListener(stateStore, tableDiv.refresh); // Live update
2449
+ }).catch(function (err) {
2450
+ return console.log('Cannot load state store: ' + err);
2451
+ });
2452
+ // end of Tracker instance
2453
+ } // render tracker
2454
+
2455
+ /* Render tabs with both views
2456
+ */
2457
+ const boardView = external_UI_.ns.wf('BoardView');
2458
+ const tableView = external_UI_.ns.wf('TableView');
2459
+ const settingsView = external_UI_.ns.wf('SettingsView');
2460
+ const instancesView = external_UI_.ns.wf('InstancesView');
2461
+ const updater = src_kb.updater;
2462
+ const t = src_kb.findTypeURIs(subject);
2463
+ let tracker;
2464
+
2465
+ // Whatever we are rendering, lets load the ontology
2466
+ const flowOntology = external_UI_.ns.wf('').doc();
2467
+ if (!src_kb.holds(undefined, undefined, undefined, flowOntology)) {
2468
+ // If not loaded already
2469
+ external_$rdf_.parse(__webpack_require__(240), src_kb, flowOntology.uri, 'text/turtle'); // Load ontology directly
2470
+ }
2471
+ const userInterfaceOntology = external_UI_.ns.ui('').doc();
2472
+ if (!src_kb.holds(undefined, undefined, undefined, userInterfaceOntology)) {
2473
+ // If not loaded already
2474
+ external_$rdf_.parse(__webpack_require__(197), src_kb, userInterfaceOntology.uri, 'text/turtle'); // Load ontology directly
2475
+ }
2476
+
2477
+ // Render a single issue
2478
+ if (t['http://www.w3.org/2005/01/wf/flow#Task'] || src_kb.holds(subject, external_UI_.ns.wf('tracker'))) {
2479
+ renderSingleIssue().then(() => console.log('Single issue rendered'));
2480
+ } else if (t['http://www.w3.org/2005/01/wf/flow#Tracker']) {
2481
+ // Render a Tracker instance
2482
+ renderTracker().then(() => console.log('Tracker rendered'));
2483
+ } else {
2484
+ console.log('Error: Issue pane: No evidence that ' + subject + ' is either a bug or a tracker.');
2485
+ }
2486
+ let loginOutButton;
2487
+ const overlay = paneDiv.appendChild(dom.createElement('div'));
2488
+ overlay.classList.add(OVERFLOW_CLASS);
2489
+ context.overlay = overlay;
2490
+ overlay.style.visibility = 'hidden';
2491
+ external_SolidLogic_.authn.checkUser().then(webId => {
2492
+ if (webId) {
2493
+ console.log('Web ID set already: ' + webId);
2494
+ context.me = webId;
2495
+ // @@ enable things
2496
+ return;
2497
+ }
2498
+ loginOutButton = external_UI_.login.loginStatusBox(dom, webIdUri => {
2499
+ if (webIdUri) {
2500
+ context.me = src_kb.sym(webIdUri);
2501
+ console.log('Web ID set from login button: ' + webIdUri);
2502
+ paneDiv.removeChild(loginOutButton);
2503
+ // enable things
2504
+ } else {
2505
+ context.me = null;
2506
+ }
2507
+ });
2508
+ loginOutButton.classList.add('trackerIssuePaneLoginButton');
2509
+ paneDiv.appendChild(loginOutButton);
2510
+ if (!context.statusArea) {
2511
+ context.statusArea = paneDiv.appendChild(dom.createElement('div'));
2512
+ }
2513
+ });
2514
+ return paneDiv;
2515
+ }
2516
+ });
2517
+ __webpack_exports__ = __webpack_exports__["default"];
2518
+ /******/ return __webpack_exports__;
2519
+ /******/ })()
2520
+ ;
2521
+ });
2522
+ //# sourceMappingURL=issue-pane.js.map