issue-pane 3.0.0 → 3.0.1-0edf4ba8

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