issue-pane 3.0.2 → 3.0.3-1

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