folder-pane 3.1.1-2 → 3.2.0

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,852 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("SolidLogic"), require("UI"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["SolidLogic", "UI"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["FolderPane"] = factory(require("SolidLogic"), require("UI"));
8
+ else
9
+ root["FolderPane"] = factory(root["SolidLogic"], root["UI"]);
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__663__, __WEBPACK_EXTERNAL_MODULE__426__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 665
16
+ (module, __webpack_exports__, __webpack_require__) {
17
+
18
+
19
+ // EXPORTS
20
+ __webpack_require__.d(__webpack_exports__, {
21
+ "default": () => (/* binding */ src_folderPane)
22
+ });
23
+
24
+ // EXTERNAL MODULE: external "SolidLogic"
25
+ var external_SolidLogic_ = __webpack_require__(663);
26
+ // EXTERNAL MODULE: external "UI"
27
+ var external_UI_ = __webpack_require__(426);
28
+ ;// ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
29
+ var injectStylesIntoStyleTag_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) {
30
+
31
+
32
+ var stylesInDOM = [];
33
+ function getIndexByIdentifier(identifier) {
34
+ var result = -1;
35
+ for (var i = 0; i < stylesInDOM.length; i++) {
36
+ if (stylesInDOM[i].identifier === identifier) {
37
+ result = i;
38
+ break;
39
+ }
40
+ }
41
+ return result;
42
+ }
43
+ function modulesToDom(list, options) {
44
+ var idCountMap = {};
45
+ var identifiers = [];
46
+ for (var i = 0; i < list.length; i++) {
47
+ var item = list[i];
48
+ var id = options.base ? item[0] + options.base : item[0];
49
+ var count = idCountMap[id] || 0;
50
+ var identifier = "".concat(id, " ").concat(count);
51
+ idCountMap[id] = count + 1;
52
+ var indexByIdentifier = getIndexByIdentifier(identifier);
53
+ var obj = {
54
+ css: item[1],
55
+ media: item[2],
56
+ sourceMap: item[3],
57
+ supports: item[4],
58
+ layer: item[5]
59
+ };
60
+ if (indexByIdentifier !== -1) {
61
+ stylesInDOM[indexByIdentifier].references++;
62
+ stylesInDOM[indexByIdentifier].updater(obj);
63
+ } else {
64
+ var updater = addElementStyle(obj, options);
65
+ options.byIndex = i;
66
+ stylesInDOM.splice(i, 0, {
67
+ identifier: identifier,
68
+ updater: updater,
69
+ references: 1
70
+ });
71
+ }
72
+ identifiers.push(identifier);
73
+ }
74
+ return identifiers;
75
+ }
76
+ function addElementStyle(obj, options) {
77
+ var api = options.domAPI(options);
78
+ api.update(obj);
79
+ var updater = function updater(newObj) {
80
+ if (newObj) {
81
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
82
+ return;
83
+ }
84
+ api.update(obj = newObj);
85
+ } else {
86
+ api.remove();
87
+ }
88
+ };
89
+ return updater;
90
+ }
91
+ module.exports = function (list, options) {
92
+ options = options || {};
93
+ list = list || [];
94
+ var lastIdentifiers = modulesToDom(list, options);
95
+ return function update(newList) {
96
+ newList = newList || [];
97
+ for (var i = 0; i < lastIdentifiers.length; i++) {
98
+ var identifier = lastIdentifiers[i];
99
+ var index = getIndexByIdentifier(identifier);
100
+ stylesInDOM[index].references--;
101
+ }
102
+ var newLastIdentifiers = modulesToDom(newList, options);
103
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
104
+ var _identifier = lastIdentifiers[_i];
105
+ var _index = getIndexByIdentifier(_identifier);
106
+ if (stylesInDOM[_index].references === 0) {
107
+ stylesInDOM[_index].updater();
108
+ stylesInDOM.splice(_index, 1);
109
+ }
110
+ }
111
+ lastIdentifiers = newLastIdentifiers;
112
+ };
113
+ };
114
+ });
115
+
116
+ var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag_namespaceObject);
117
+ ;// ./node_modules/style-loader/dist/runtime/styleDomAPI.js
118
+ var styleDomAPI_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) {
119
+
120
+
121
+ /* istanbul ignore next */
122
+ function apply(styleElement, options, obj) {
123
+ var css = "";
124
+ if (obj.supports) {
125
+ css += "@supports (".concat(obj.supports, ") {");
126
+ }
127
+ if (obj.media) {
128
+ css += "@media ".concat(obj.media, " {");
129
+ }
130
+ var needLayer = typeof obj.layer !== "undefined";
131
+ if (needLayer) {
132
+ css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
133
+ }
134
+ css += obj.css;
135
+ if (needLayer) {
136
+ css += "}";
137
+ }
138
+ if (obj.media) {
139
+ css += "}";
140
+ }
141
+ if (obj.supports) {
142
+ css += "}";
143
+ }
144
+ var sourceMap = obj.sourceMap;
145
+ if (sourceMap && typeof btoa !== "undefined") {
146
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
147
+ }
148
+
149
+ // For old IE
150
+ /* istanbul ignore if */
151
+ options.styleTagTransform(css, styleElement, options.options);
152
+ }
153
+ function removeStyleElement(styleElement) {
154
+ // istanbul ignore if
155
+ if (styleElement.parentNode === null) {
156
+ return false;
157
+ }
158
+ styleElement.parentNode.removeChild(styleElement);
159
+ }
160
+
161
+ /* istanbul ignore next */
162
+ function domAPI(options) {
163
+ if (typeof document === "undefined") {
164
+ return {
165
+ update: function update() {},
166
+ remove: function remove() {}
167
+ };
168
+ }
169
+ var styleElement = options.insertStyleElement(options);
170
+ return {
171
+ update: function update(obj) {
172
+ apply(styleElement, options, obj);
173
+ },
174
+ remove: function remove() {
175
+ removeStyleElement(styleElement);
176
+ }
177
+ };
178
+ }
179
+ module.exports = domAPI;
180
+ });
181
+
182
+ var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI_namespaceObject);
183
+ ;// ./node_modules/style-loader/dist/runtime/insertBySelector.js
184
+ var insertBySelector_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) {
185
+
186
+
187
+ var memo = {};
188
+
189
+ /* istanbul ignore next */
190
+ function getTarget(target) {
191
+ if (typeof memo[target] === "undefined") {
192
+ var styleTarget = document.querySelector(target);
193
+
194
+ // Special case to return head of iframe instead of iframe itself
195
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
196
+ try {
197
+ // This will throw an exception if access to iframe is blocked
198
+ // due to cross-origin restrictions
199
+ styleTarget = styleTarget.contentDocument.head;
200
+ } catch (e) {
201
+ // istanbul ignore next
202
+ styleTarget = null;
203
+ }
204
+ }
205
+ memo[target] = styleTarget;
206
+ }
207
+ return memo[target];
208
+ }
209
+
210
+ /* istanbul ignore next */
211
+ function insertBySelector(insert, style) {
212
+ var target = getTarget(insert);
213
+ if (!target) {
214
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
215
+ }
216
+ target.appendChild(style);
217
+ }
218
+ module.exports = insertBySelector;
219
+ });
220
+
221
+ var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector_namespaceObject);
222
+ ;// ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js
223
+ var setAttributesWithoutAttributes_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) {
224
+
225
+
226
+ /* istanbul ignore next */
227
+ function setAttributesWithoutAttributes(styleElement) {
228
+ var nonce = true ? __webpack_require__.nc : 0;
229
+ if (nonce) {
230
+ styleElement.setAttribute("nonce", nonce);
231
+ }
232
+ }
233
+ module.exports = setAttributesWithoutAttributes;
234
+ });
235
+
236
+ var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes_namespaceObject);
237
+ ;// ./node_modules/style-loader/dist/runtime/insertStyleElement.js
238
+ var insertStyleElement_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) {
239
+
240
+
241
+ /* istanbul ignore next */
242
+ function insertStyleElement(options) {
243
+ var element = document.createElement("style");
244
+ options.setAttributes(element, options.attributes);
245
+ options.insert(element, options.options);
246
+ return element;
247
+ }
248
+ module.exports = insertStyleElement;
249
+ });
250
+
251
+ var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement_namespaceObject);
252
+ ;// ./node_modules/style-loader/dist/runtime/styleTagTransform.js
253
+ var styleTagTransform_namespaceObject = /*#__PURE__*/__webpack_require__.cjs(function(module, exports) {
254
+
255
+
256
+ /* istanbul ignore next */
257
+ function styleTagTransform(css, styleElement) {
258
+ if (styleElement.styleSheet) {
259
+ styleElement.styleSheet.cssText = css;
260
+ } else {
261
+ while (styleElement.firstChild) {
262
+ styleElement.removeChild(styleElement.firstChild);
263
+ }
264
+ styleElement.appendChild(document.createTextNode(css));
265
+ }
266
+ }
267
+ module.exports = styleTagTransform;
268
+ });
269
+
270
+ var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform_namespaceObject);
271
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/folderPane.css
272
+ var folderPane = __webpack_require__(136);
273
+ ;// ./src/styles/folderPane.css
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ var options = {};
286
+
287
+ options.styleTagTransform = (styleTagTransform_default());
288
+ options.setAttributes = (setAttributesWithoutAttributes_default());
289
+ options.insert = insertBySelector_default().bind(null, "head");
290
+ options.domAPI = (styleDomAPI_default());
291
+ options.insertStyleElement = (insertStyleElement_default());
292
+
293
+ var update = injectStylesIntoStyleTag_default()(folderPane/* default */.A, options);
294
+
295
+
296
+
297
+
298
+ /* harmony default export */ const styles_folderPane = (folderPane/* default */.A && folderPane/* default */.A.locals ? folderPane/* default */.A.locals : undefined);
299
+
300
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/utilities.css
301
+ var utilities = __webpack_require__(92);
302
+ ;// ./src/styles/utilities.css
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+ var utilities_options = {};
315
+
316
+ utilities_options.styleTagTransform = (styleTagTransform_default());
317
+ utilities_options.setAttributes = (setAttributesWithoutAttributes_default());
318
+ utilities_options.insert = insertBySelector_default().bind(null, "head");
319
+ utilities_options.domAPI = (styleDomAPI_default());
320
+ utilities_options.insertStyleElement = (insertStyleElement_default());
321
+
322
+ var utilities_update = injectStylesIntoStyleTag_default()(utilities/* default */.A, utilities_options);
323
+
324
+
325
+
326
+
327
+ /* harmony default export */ const styles_utilities = (utilities/* default */.A && utilities/* default */.A.locals ? utilities/* default */.A.locals : undefined);
328
+
329
+ ;// ./src/folderPane.ts
330
+ /* Folder pane
331
+ **
332
+ ** This outline pane lists the members of a folder
333
+ */
334
+
335
+
336
+
337
+
338
+
339
+ /* harmony default export */ const src_folderPane = ({
340
+ icon: external_UI_.icons.iconBase + 'noun_973694_expanded.svg',
341
+ name: 'folder',
342
+ // Create a new folder in a Solid system,
343
+ mintNew: function (context, newPaneOptions) {
344
+ const kb = context.session.store;
345
+ const newInstance = newPaneOptions.newInstance || kb.sym(newPaneOptions.newBase);
346
+ let u = newInstance.uri;
347
+ if (u.endsWith('/')) {
348
+ u = u.slice(0, -1); // chop off trailer
349
+ } // { throw new Error('URI of new folder must end in "/" :' + u) }
350
+ newPaneOptions.newInstance = kb.sym(u + '/');
351
+ return kb.fetcher.webOperation('PUT', newInstance.uri).then(function () {
352
+ console.log('New container created: ' + newInstance.uri);
353
+ return newPaneOptions;
354
+ });
355
+ },
356
+ label: function (subject, context) {
357
+ const kb = context.session.store;
358
+ const n = kb.each(subject, external_UI_.ns.ldp('contains')).length;
359
+ if (n > 0) {
360
+ return 'Contents (' + n + ')'; // Show how many in hover text
361
+ }
362
+ if (kb.holds(subject, external_UI_.ns.rdf('type'), external_UI_.ns.ldp('Container'))) {
363
+ // It is declared as being a container
364
+ return 'Container (0)';
365
+ }
366
+ return null; // Suppress pane otherwise
367
+ },
368
+ // Render a file folder in a LDP/solid system
369
+ render: function (subject, context) {
370
+ function noHiddenFiles(obj) {
371
+ // @@ This hiddenness should actually be server defined
372
+ const pathEnd = obj.uri.slice(obj.dir().uri.length);
373
+ return !(pathEnd.startsWith('.') || pathEnd.endsWith('.acl') || pathEnd.endsWith('~'));
374
+ }
375
+ function refresh() {
376
+ let objs = kb.each(subject, external_UI_.ns.ldp('contains')).filter(noHiddenFiles);
377
+ objs = objs.map(obj => [external_UI_.utils.label(obj).toLowerCase(), obj]);
378
+ objs.sort(); // Sort by label case-insensitive
379
+ objs = objs.map(pair => pair[1]);
380
+ external_UI_.utils.syncTableToArray(mainTable, objs, function (obj) {
381
+ const st = kb.statementsMatching(subject, external_UI_.ns.ldp('contains'), obj)[0];
382
+ const defaultpropview = outliner.VIEWAS_boring_default;
383
+ const tr = outliner.propertyTR(dom, st, false);
384
+ const predicateCell = tr.firstChild;
385
+ predicateCell.textContent = ''; // Was initialized to 'Contains'
386
+ predicateCell.classList.add('folderPanePredicateCell');
387
+ tr.appendChild(outliner.outlineObjectTD(obj, defaultpropview, undefined, st));
388
+ // UI.widgets.makeDraggable(tr, obj)
389
+ return tr;
390
+ });
391
+ }
392
+ const dom = context.dom;
393
+ const outliner = context.getOutliner(dom);
394
+ const kb = context.session.store;
395
+ let mainTable; // This is a live synced table
396
+ const div = dom.createElement('div');
397
+ div.classList.add('instancePane', 'folderPaneInstancePane');
398
+ const thisDir = subject.uri.endsWith('/') ? subject.uri : subject.uri + '/';
399
+ const indexThing = kb.sym(thisDir + 'index.ttl#this');
400
+ if (kb.holds(subject, external_UI_.ns.ldp('contains'), indexThing.doc())) {
401
+ console.log('View of folder will be view of indexThing. Loading ' + indexThing);
402
+ const packageDiv = div.appendChild(dom.createElement('div'));
403
+ packageDiv.classList.add('folderPanePackageDiv');
404
+ kb.fetcher.load(indexThing.doc()).then(function () {
405
+ mainTable = packageDiv.appendChild(dom.createElement('table'));
406
+ mainTable.classList.add('folderPaneMainTable');
407
+ context.getOutliner(dom).GotoSubject(indexThing, true, undefined, false, undefined, mainTable);
408
+ });
409
+ return div;
410
+ } else {
411
+ mainTable = div.appendChild(dom.createElement('table'));
412
+ mainTable.classList.add('folderPaneMainTable');
413
+ mainTable.refresh = refresh;
414
+ refresh();
415
+ // addDownstreamChangeListener is a high level function which when someone else changes the resource,
416
+ // reloads it into the kb, then must call addDownstreamChangeListener to be able to update the folder pane.
417
+ kb.updater.addDownstreamChangeListener(subject, refresh); // Update store and call me if folder changes
418
+ }
419
+
420
+ // Allow user to create new things within the folder
421
+ const creationDiv = div.appendChild(dom.createElement('div'));
422
+ creationDiv.classList.add('folderPaneCreationDiv');
423
+ const me = external_SolidLogic_.authn.currentUser(); // @@ respond to login events
424
+ if (!me) {
425
+ return div; // Cannot create new things without being logged in
426
+ }
427
+ const creationContext = {
428
+ folder: subject,
429
+ div: creationDiv,
430
+ dom: dom,
431
+ statusArea: creationDiv,
432
+ me: me
433
+ };
434
+ creationContext.refreshTarget = mainTable;
435
+ external_UI_.login.filterAvailablePanes(context.session.paneRegistry.list).then(function (relevantPanes) {
436
+ external_UI_.create.newThingUI(creationContext, context, relevantPanes); // Have to pass panes down newUI
437
+
438
+ external_UI_.aclControl.preventBrowserDropEvents(dom);
439
+ const explicitDropIcon = false;
440
+ let target;
441
+ if (explicitDropIcon) {
442
+ target = creationDiv.insertBefore(dom.createElement('img'), creationDiv.firstChild);
443
+ target.classList.add('folderPaneExplicitDropIcon');
444
+ target.setAttribute('src', external_UI_.icons.iconBase + 'noun_748003.svg');
445
+ } else {
446
+ target = creationDiv.firstChild; // Overload drop target semantics onto the plus sign
447
+ }
448
+ if (target instanceof HTMLElement) {
449
+ target.classList.add('folderPaneDropTarget');
450
+ }
451
+
452
+ // /////////// Allow new file to be Uploaded
453
+ external_UI_.widgets.makeDropTarget(target, null, droppedFileHandler);
454
+ });
455
+ return div;
456
+ function droppedFileHandler(files) {
457
+ external_UI_.widgets.uploadFiles(kb.fetcher, files, subject.uri, subject.uri, function (file, uri) {
458
+ // A file has been uploaded
459
+ const destination = kb.sym(uri);
460
+ console.log(' Upload: put OK: ' + destination);
461
+ kb.add(subject, external_UI_.ns.ldp('contains'), destination, subject.doc());
462
+ mainTable.refresh();
463
+ });
464
+ }
465
+ }
466
+ });
467
+ // ends
468
+
469
+ /***/ },
470
+
471
+ /***/ 136
472
+ (module, __webpack_exports__, __webpack_require__) {
473
+
474
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
475
+ /* 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__);
476
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
477
+ /* 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__);
478
+ // Imports
479
+
480
+
481
+ 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()));
482
+ // Module
483
+ ___CSS_LOADER_EXPORT___.push([module.id, `.folderPaneInstancePane {
484
+ box-sizing: border-box;
485
+ align-self: stretch;
486
+ text-align: left;
487
+ width: 100%;
488
+ max-width: none;
489
+ margin-left: 0;
490
+ margin-right: 0;
491
+ border-top: solid 1px #777;
492
+ border-bottom: solid 1px #777;
493
+ margin-top: var(--spacing-xs, 0.5em);
494
+ margin-bottom: var(--spacing-xs, 0.5em);
495
+ overflow-x: auto;
496
+ -webkit-overflow-scrolling: touch;
497
+ padding-top: 1rem;
498
+ padding-bottom: 1rem;
499
+ }
500
+
501
+ .folderPanePackageDiv {
502
+ display: block;
503
+ text-align: left;
504
+ width: 100%;
505
+ max-width: none;
506
+ margin-left: 0;
507
+ margin-right: 0;
508
+ border-top: 0.2em solid #ccc;
509
+ overflow-x: auto;
510
+ }
511
+
512
+ .folderPaneMainTable {
513
+ display: table;
514
+ width: 100%;
515
+ max-width: none;
516
+ table-layout: auto;
517
+ text-align: left;
518
+ margin-left: 0;
519
+ margin-right: auto;
520
+ margin-bottom: var(--spacing-lg, 1.5625rem);
521
+ }
522
+
523
+ .folderPaneMainTable td,
524
+ .folderPaneMainTable th {
525
+ text-align: left;
526
+ vertical-align: top;
527
+ overflow-wrap: anywhere;
528
+ word-break: break-word;
529
+ }
530
+
531
+ /* manager.js sets inline padding:0 on object cells; use an important override here */
532
+ .folderPaneMainTable > tr > td.obj,
533
+ .folderPaneMainTable > tbody > tr > td.obj {
534
+ padding-left: var(--spacing-lg, 1.5625rem) !important;
535
+ }
536
+
537
+ .folderPanePredicateCell {
538
+ width: 0;
539
+ min-width: 0;
540
+ max-width: 0;
541
+ padding: 0 !important;
542
+ margin: 0 !important;
543
+ border: 0 !important;
544
+ overflow: hidden;
545
+ }
546
+
547
+ .folderPaneCreationDiv {
548
+ display: flex;
549
+ align-items: flex-start;
550
+ justify-content: flex-start;
551
+ text-align: left;
552
+ width: 100%;
553
+ max-width: none;
554
+ margin-left: 0;
555
+ margin-right: 0;
556
+ }
557
+
558
+ .folderPaneDropTarget {
559
+ display: inline-block;
560
+ width: var(--icon-base, 2em);
561
+ min-width: var(--icon-base, 2em);
562
+ max-width: var(--icon-base, 2em);
563
+ height: var(--icon-base, 2em);
564
+ min-height: var(--icon-base, 2em);
565
+ max-height: var(--icon-base, 2em);
566
+ padding: 0 !important;
567
+ margin: 0 !important;
568
+ box-sizing: content-box;
569
+ flex: 0 0 var(--icon-base, 2em);
570
+ }
571
+
572
+ .folderPaneExplicitDropIcon {
573
+ width: var(--icon-base, 2em);
574
+ height: var(--icon-base, 2em);
575
+ }
576
+
577
+ @media (max-width: 700px) {
578
+ .folderPaneInstancePane {
579
+ border-top: solid 1px #777;
580
+ border-bottom: solid 1px #777;
581
+ margin-top: var(--spacing-2xs, 0.25em);
582
+ margin-bottom: var(--spacing-2xs, 0.25em);
583
+ }
584
+
585
+ .folderPaneExplicitDropIcon {
586
+ width: var(--icon-sm, 1.5em);
587
+ height: var(--icon-sm, 1.5em);
588
+ }
589
+ }
590
+ `, "",{"version":3,"sources":["webpack://./src/styles/folderPane.css"],"names":[],"mappings":"AAAA;EACE,sBAAsB;EACtB,mBAAmB;EACnB,gBAAgB;EAChB,WAAW;EACX,eAAe;EACf,cAAc;EACd,eAAe;EACf,0BAA0B;EAC1B,6BAA6B;EAC7B,oCAAoC;EACpC,uCAAuC;EACvC,gBAAgB;EAChB,iCAAiC;EACjC,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,cAAc;EACd,gBAAgB;EAChB,WAAW;EACX,eAAe;EACf,cAAc;EACd,eAAe;EACf,4BAA4B;EAC5B,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,WAAW;EACX,eAAe;EACf,kBAAkB;EAClB,gBAAgB;EAChB,cAAc;EACd,kBAAkB;EAClB,2CAA2C;AAC7C;;AAEA;;EAEE,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,sBAAsB;AACxB;;AAEA,qFAAqF;AACrF;;EAEE,qDAAqD;AACvD;;AAEA;EACE,QAAQ;EACR,YAAY;EACZ,YAAY;EACZ,qBAAqB;EACrB,oBAAoB;EACpB,oBAAoB;EACpB,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,uBAAuB;EACvB,2BAA2B;EAC3B,gBAAgB;EAChB,WAAW;EACX,eAAe;EACf,cAAc;EACd,eAAe;AACjB;;AAEA;EACE,qBAAqB;EACrB,4BAA4B;EAC5B,gCAAgC;EAChC,gCAAgC;EAChC,6BAA6B;EAC7B,iCAAiC;EACjC,iCAAiC;EACjC,qBAAqB;EACrB,oBAAoB;EACpB,uBAAuB;EACvB,+BAA+B;AACjC;;AAEA;EACE,4BAA4B;EAC5B,6BAA6B;AAC/B;;AAEA;EACE;IACE,0BAA0B;IAC1B,6BAA6B;IAC7B,sCAAsC;IACtC,yCAAyC;EAC3C;;EAEA;IACE,4BAA4B;IAC5B,6BAA6B;EAC/B;AACF","sourcesContent":[".folderPaneInstancePane {\n box-sizing: border-box;\n align-self: stretch;\n text-align: left;\n width: 100%;\n max-width: none;\n margin-left: 0;\n margin-right: 0;\n border-top: solid 1px #777;\n border-bottom: solid 1px #777;\n margin-top: var(--spacing-xs, 0.5em);\n margin-bottom: var(--spacing-xs, 0.5em);\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.folderPanePackageDiv {\n display: block;\n text-align: left;\n width: 100%;\n max-width: none;\n margin-left: 0;\n margin-right: 0;\n border-top: 0.2em solid #ccc;\n overflow-x: auto;\n}\n\n.folderPaneMainTable {\n display: table;\n width: 100%;\n max-width: none;\n table-layout: auto;\n text-align: left;\n margin-left: 0;\n margin-right: auto;\n margin-bottom: var(--spacing-lg, 1.5625rem);\n}\n\n.folderPaneMainTable td,\n.folderPaneMainTable th {\n text-align: left;\n vertical-align: top;\n overflow-wrap: anywhere;\n word-break: break-word;\n}\n\n/* manager.js sets inline padding:0 on object cells; use an important override here */\n.folderPaneMainTable > tr > td.obj,\n.folderPaneMainTable > tbody > tr > td.obj {\n padding-left: var(--spacing-lg, 1.5625rem) !important;\n}\n\n.folderPanePredicateCell {\n width: 0;\n min-width: 0;\n max-width: 0;\n padding: 0 !important;\n margin: 0 !important;\n border: 0 !important;\n overflow: hidden;\n}\n\n.folderPaneCreationDiv {\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n text-align: left;\n width: 100%;\n max-width: none;\n margin-left: 0;\n margin-right: 0;\n}\n\n.folderPaneDropTarget {\n display: inline-block;\n width: var(--icon-base, 2em);\n min-width: var(--icon-base, 2em);\n max-width: var(--icon-base, 2em);\n height: var(--icon-base, 2em);\n min-height: var(--icon-base, 2em);\n max-height: var(--icon-base, 2em);\n padding: 0 !important;\n margin: 0 !important;\n box-sizing: content-box;\n flex: 0 0 var(--icon-base, 2em);\n}\n\n.folderPaneExplicitDropIcon {\n width: var(--icon-base, 2em);\n height: var(--icon-base, 2em);\n}\n\n@media (max-width: 700px) {\n .folderPaneInstancePane {\n border-top: solid 1px #777;\n border-bottom: solid 1px #777;\n margin-top: var(--spacing-2xs, 0.25em);\n margin-bottom: var(--spacing-2xs, 0.25em);\n }\n\n .folderPaneExplicitDropIcon {\n width: var(--icon-sm, 1.5em);\n height: var(--icon-sm, 1.5em);\n }\n}\n"],"sourceRoot":""}]);
591
+ // Exports
592
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
593
+
594
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
595
+ /* harmony export */ "A", 0, /* export default binding */ __WEBPACK_DEFAULT_EXPORT__
596
+ /* harmony export */ ]);
597
+
598
+
599
+ /***/ },
600
+
601
+ /***/ 92
602
+ (module, __webpack_exports__, __webpack_require__) {
603
+
604
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(354);
605
+ /* 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__);
606
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
607
+ /* 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__);
608
+ // Imports
609
+
610
+
611
+ 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()));
612
+ // Module
613
+ ___CSS_LOADER_EXPORT___.push([module.id, `:root {
614
+ /* Shared utility variables (e.g., base icon size) */
615
+ --icon-base: 2em;
616
+ }`, "",{"version":3,"sources":["webpack://./src/styles/utilities.css"],"names":[],"mappings":"AAAA;EACE,oDAAoD;EACpD,gBAAgB;AAClB","sourcesContent":[":root {\n /* Shared utility variables (e.g., base icon size) */\n --icon-base: 2em;\n}"],"sourceRoot":""}]);
617
+ // Exports
618
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
619
+
620
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
621
+ /* harmony export */ "A", 0, /* export default binding */ __WEBPACK_DEFAULT_EXPORT__
622
+ /* harmony export */ ]);
623
+
624
+
625
+ /***/ },
626
+
627
+ /***/ 314
628
+ (module) {
629
+
630
+
631
+
632
+ /*
633
+ MIT License http://www.opensource.org/licenses/mit-license.php
634
+ Author Tobias Koppers @sokra
635
+ */
636
+ module.exports = function (cssWithMappingToString) {
637
+ var list = [];
638
+
639
+ // return the list of modules as css string
640
+ list.toString = function toString() {
641
+ return this.map(function (item) {
642
+ var content = "";
643
+ var needLayer = typeof item[5] !== "undefined";
644
+ if (item[4]) {
645
+ content += "@supports (".concat(item[4], ") {");
646
+ }
647
+ if (item[2]) {
648
+ content += "@media ".concat(item[2], " {");
649
+ }
650
+ if (needLayer) {
651
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
652
+ }
653
+ content += cssWithMappingToString(item);
654
+ if (needLayer) {
655
+ content += "}";
656
+ }
657
+ if (item[2]) {
658
+ content += "}";
659
+ }
660
+ if (item[4]) {
661
+ content += "}";
662
+ }
663
+ return content;
664
+ }).join("");
665
+ };
666
+
667
+ // import a list of modules into the list
668
+ list.i = function i(modules, media, dedupe, supports, layer) {
669
+ if (typeof modules === "string") {
670
+ modules = [[null, modules, undefined]];
671
+ }
672
+ var alreadyImportedModules = {};
673
+ if (dedupe) {
674
+ for (var k = 0; k < this.length; k++) {
675
+ var id = this[k][0];
676
+ if (id != null) {
677
+ alreadyImportedModules[id] = true;
678
+ }
679
+ }
680
+ }
681
+ for (var _k = 0; _k < modules.length; _k++) {
682
+ var item = [].concat(modules[_k]);
683
+ if (dedupe && alreadyImportedModules[item[0]]) {
684
+ continue;
685
+ }
686
+ if (typeof layer !== "undefined") {
687
+ if (typeof item[5] === "undefined") {
688
+ item[5] = layer;
689
+ } else {
690
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
691
+ item[5] = layer;
692
+ }
693
+ }
694
+ if (media) {
695
+ if (!item[2]) {
696
+ item[2] = media;
697
+ } else {
698
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
699
+ item[2] = media;
700
+ }
701
+ }
702
+ if (supports) {
703
+ if (!item[4]) {
704
+ item[4] = "".concat(supports);
705
+ } else {
706
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
707
+ item[4] = supports;
708
+ }
709
+ }
710
+ list.push(item);
711
+ }
712
+ };
713
+ return list;
714
+ };
715
+
716
+ /***/ },
717
+
718
+ /***/ 354
719
+ (module) {
720
+
721
+
722
+
723
+ module.exports = function (item) {
724
+ var content = item[1];
725
+ var cssMapping = item[3];
726
+ if (!cssMapping) {
727
+ return content;
728
+ }
729
+ if (typeof btoa === "function") {
730
+ var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
731
+ var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
732
+ var sourceMapping = "/*# ".concat(data, " */");
733
+ return [content].concat([sourceMapping]).join("\n");
734
+ }
735
+ return [content].join("\n");
736
+ };
737
+
738
+ /***/ },
739
+
740
+ /***/ 663
741
+ (module) {
742
+
743
+ module.exports = __WEBPACK_EXTERNAL_MODULE__663__;
744
+
745
+ /***/ },
746
+
747
+ /***/ 426
748
+ (module) {
749
+
750
+ module.exports = __WEBPACK_EXTERNAL_MODULE__426__;
751
+
752
+ /***/ }
753
+
754
+ /******/ });
755
+ /************************************************************************/
756
+ /******/ // The module cache
757
+ /******/ const __webpack_module_cache__ = {};
758
+ /******/
759
+ /******/ // The require function
760
+ /******/ function __webpack_require__(moduleId) {
761
+ /******/ // Check if module is in cache
762
+ /******/ const cachedModule = __webpack_module_cache__[moduleId];
763
+ /******/ if (cachedModule !== undefined) {
764
+ /******/ return cachedModule.exports;
765
+ /******/ }
766
+ /******/ // Create a new module (and put it into the cache)
767
+ /******/ const module = __webpack_module_cache__[moduleId] = {
768
+ /******/ id: moduleId,
769
+ /******/ // no module.loaded needed
770
+ /******/ exports: {}
771
+ /******/ };
772
+ /******/
773
+ /******/ // Execute the module function
774
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
775
+ /******/
776
+ /******/ // Return the exports of the module
777
+ /******/ return module.exports;
778
+ /******/ }
779
+ /******/
780
+ /************************************************************************/
781
+ /******/ /* webpack/runtime/compat get default export */
782
+ /******/ (() => {
783
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
784
+ /******/ __webpack_require__.n = (module) => {
785
+ /******/ const getter = module && module.__esModule ?
786
+ /******/ () => (module['default']) :
787
+ /******/ () => (module);
788
+ /******/ __webpack_require__.d(getter, { a: getter });
789
+ /******/ return getter;
790
+ /******/ };
791
+ /******/ })();
792
+ /******/
793
+ /******/ /* webpack/runtime/define property getters */
794
+ /******/ (() => {
795
+ /******/ // define getter/value functions for harmony exports
796
+ /******/ __webpack_require__.d = (exports, definition) => {
797
+ /******/ if(Array.isArray(definition)) {
798
+ /******/ var i = 0;
799
+ /******/ while(i < definition.length) {
800
+ /******/ var key = definition[i++];
801
+ /******/ var binding = definition[i++];
802
+ /******/ if(!__webpack_require__.o(exports, key)) {
803
+ /******/ if(binding === 0) {
804
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
805
+ /******/ } else {
806
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
807
+ /******/ }
808
+ /******/ } else if(binding === 0) { i++; }
809
+ /******/ }
810
+ /******/ } else {
811
+ /******/ for(var key in definition) {
812
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
813
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
814
+ /******/ }
815
+ /******/ }
816
+ /******/ }
817
+ /******/ };
818
+ /******/ })();
819
+ /******/
820
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
821
+ /******/ (() => {
822
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
823
+ /******/ })();
824
+ /******/
825
+ /******/ /* webpack/runtime/wrap commonjs module */
826
+ /******/ (() => {
827
+ /******/ // execute a CommonJS module body with real module/exports objects, returning the final exports
828
+ /******/ __webpack_require__.cjs = (body) => {
829
+ /******/ const mod = { exports: {} };
830
+ /******/ body.call(mod.exports, mod, mod.exports);
831
+ /******/ return mod.exports;
832
+ /******/ };
833
+ /******/ })();
834
+ /******/
835
+ /******/ /* webpack/runtime/nonce */
836
+ /******/ (() => {
837
+ /******/ __webpack_require__.nc = undefined;
838
+ /******/ })();
839
+ /******/
840
+ /************************************************************************/
841
+ /******/
842
+ /******/ // startup
843
+ /******/ // Load entry module and return exports
844
+ /******/ // This entry module used 'module' so it can't be inlined
845
+ /******/ let __webpack_exports__ = __webpack_require__(665);
846
+ /******/ __webpack_exports__ = __webpack_exports__["default"];
847
+ /******/
848
+ /******/ return __webpack_exports__;
849
+ /******/ })()
850
+ ;
851
+ });
852
+ //# sourceMappingURL=folder-pane.js.map