@pod-os/elements 0.41.0-rc.fcadbb6.0 → 0.41.0-rc.fd6b5f1.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.
- package/dist/cjs/{chunk.URTPIBTY-CyUQzrtC.js → chunk.URTPIBTY-C9cOc4B-.js} +2 -2
- package/dist/cjs/{chunk.XQ2OKYYA-Dfzydh50.js → chunk.XQ2OKYYA-CTZvRtz3.js} +3 -3
- package/dist/cjs/{chunk.ZGGPD2XJ-BhNheC5q.js → chunk.ZGGPD2XJ-BvGHEYp6.js} +1 -1
- package/dist/cjs/{class-map-DFvbJjpM.js → class-map-C9P5WsLw.js} +1 -1
- package/dist/cjs/elements.cjs.js +2 -2
- package/dist/cjs/{index-BP03J2RA.js → index-BPvAwpRj.js} +137 -33
- package/dist/cjs/{index-CFcC3IGM.js → index-CjKppELa.js} +2 -2
- package/dist/cjs/{jsonld-V2RB47OZ-B6QDxKa1.js → jsonld-V2RB47OZ-C8WVLsWC.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +5 -5
- package/dist/cjs/pos-add-new-thing_32.cjs.entry.js +27 -10
- package/dist/cjs/pos-add-relation.cjs.entry.js +3 -3
- package/dist/cjs/pos-app-document-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-image-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
- package/dist/cjs/pos-attachments.cjs.entry.js +1 -1
- package/dist/cjs/pos-case.cjs.entry.js +1 -1
- package/dist/cjs/pos-container-contents.cjs.entry.js +2 -2
- package/dist/cjs/pos-container-item_3.cjs.entry.js +4 -4
- package/dist/cjs/pos-document.cjs.entry.js +4 -4
- package/dist/cjs/pos-list.cjs.entry.js +1 -1
- package/dist/cjs/pos-markdown-document.cjs.entry.js +412 -122
- package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
- package/dist/cjs/pos-subjects.cjs.entry.js +2 -2
- package/dist/cjs/pos-switch.cjs.entry.js +1 -1
- package/dist/cjs/pos-tool-attachments.cjs.entry.js +1 -1
- package/dist/cjs/pos-value.cjs.entry.js +22 -2
- package/dist/collection/components/pos-description/pos-description.js +18 -3
- package/dist/collection/components/pos-label/pos-label.js +15 -4
- package/dist/collection/components/pos-value/pos-value.js +27 -4
- package/dist/components/index2.js +2 -2
- package/dist/components/pos-description2.js +1 -1
- package/dist/components/pos-label2.js +1 -1
- package/dist/components/pos-markdown-document2.js +1 -1
- package/dist/components/pos-value.js +1 -1
- package/dist/custom-elements.json +5 -3
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-33783890.entry.js → p-1b8c9b61.entry.js} +1 -1
- package/dist/elements/p-1bcdde10.entry.js +1 -0
- package/dist/elements/{p-2f122da6.entry.js → p-1e98efdc.entry.js} +1 -1
- package/dist/elements/{p-3ef3a9a9.entry.js → p-380d72c2.entry.js} +1 -1
- package/dist/elements/{p-31370224.entry.js → p-440a8508.entry.js} +1 -1
- package/dist/elements/{p-aca646a4.entry.js → p-4d349a89.entry.js} +1 -1
- package/dist/elements/{p-a234b3fe.entry.js → p-52443feb.entry.js} +1 -1
- package/dist/elements/{p-513f7548.entry.js → p-641e64fd.entry.js} +1 -1
- package/dist/elements/{p-DqO-cIHe.js → p-7TsXf0Xj.js} +1 -1
- package/dist/elements/{p-a78df72b.entry.js → p-941b9b51.entry.js} +1 -1
- package/dist/elements/{p-5506bf9a.entry.js → p-9b5c45b6.entry.js} +1 -1
- package/dist/elements/{p-DPNKR_cm.js → p-BKLehMby.js} +5 -5
- package/dist/elements/p-BzjgviTt.js +67 -0
- package/dist/elements/{p-DO6v4X9H.js → p-C-Ke6Sdx.js} +3 -3
- package/dist/elements/{p-spEUIGXI.js → p-CsdCh9hf.js} +1 -1
- package/dist/elements/{p-Bz2zblgU.js → p-KLP10Ef6.js} +7 -7
- package/dist/elements/{p-d31c55b9.entry.js → p-a62af5eb.entry.js} +1 -1
- package/dist/elements/{p-1e0bd264.entry.js → p-b30e9b9c.entry.js} +9 -9
- package/dist/elements/{p-5f8df3c2.entry.js → p-c1cb97ef.entry.js} +1 -1
- package/dist/elements/p-c60dc303.entry.js +1 -0
- package/dist/elements/{p-c4034954.entry.js → p-c697bb3c.entry.js} +1 -1
- package/dist/elements/{p-0febf76e.entry.js → p-c83d76f9.entry.js} +1 -1
- package/dist/elements/{p-4fa32d10.entry.js → p-ccfbad21.entry.js} +1 -1
- package/dist/elements/{p-e4eae182.entry.js → p-eadbef6c.entry.js} +1 -1
- package/dist/elements/p-f26842e5.entry.js +1 -0
- package/dist/elements/{p-17d63fec.entry.js → p-f57e26b7.entry.js} +1 -1
- package/dist/elements/{p-DpbuT47x.js → p-jSCnU8fW.js} +1 -1
- package/dist/esm/{chunk.URTPIBTY-DGDKVdvN.js → chunk.URTPIBTY-CndE5cVS.js} +2 -2
- package/dist/esm/{chunk.XQ2OKYYA-DY8d9BRU.js → chunk.XQ2OKYYA-BBXcL00i.js} +3 -3
- package/dist/esm/{chunk.ZGGPD2XJ-CLV8PNGL.js → chunk.ZGGPD2XJ-DGIJXk11.js} +1 -1
- package/dist/esm/{class-map-CtuZET5H.js → class-map-BaV3g1im.js} +1 -1
- package/dist/esm/elements.js +3 -3
- package/dist/esm/{index-CMbRpNym.js → index-CmKOSDim.js} +137 -33
- package/dist/esm/{index-spEUIGXI.js → index-CsdCh9hf.js} +1 -1
- package/dist/esm/{jsonld-V2RB47OZ-zn531VHn.js → jsonld-V2RB47OZ-CIDz9zb9.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pos-add-literal-value_3.entry.js +5 -5
- package/dist/esm/pos-add-new-thing_32.entry.js +27 -10
- package/dist/esm/pos-add-relation.entry.js +3 -3
- package/dist/esm/pos-app-document-viewer.entry.js +1 -1
- package/dist/esm/pos-app-generic.entry.js +1 -1
- package/dist/esm/pos-app-image-viewer.entry.js +1 -1
- package/dist/esm/pos-app-ldp-container.entry.js +1 -1
- package/dist/esm/pos-app-rdf-document.entry.js +1 -1
- package/dist/esm/pos-attachments.entry.js +1 -1
- package/dist/esm/pos-case.entry.js +1 -1
- package/dist/esm/pos-container-contents.entry.js +2 -2
- package/dist/esm/pos-container-item_3.entry.js +4 -4
- package/dist/esm/pos-document.entry.js +4 -4
- package/dist/esm/pos-list.entry.js +1 -1
- package/dist/esm/pos-markdown-document.entry.js +412 -122
- package/dist/esm/pos-relations_2.entry.js +1 -1
- package/dist/esm/pos-subjects.entry.js +2 -2
- package/dist/esm/pos-switch.entry.js +1 -1
- package/dist/esm/pos-tool-attachments.entry.js +1 -1
- package/dist/esm/pos-value.entry.js +22 -2
- package/dist/types/components/pos-description/pos-description.d.ts +9 -2
- package/dist/types/components/pos-label/pos-label.d.ts +6 -2
- package/dist/types/components/pos-value/pos-value.d.ts +7 -2
- package/dist/types/components.d.ts +32 -8
- package/package.json +7 -7
- package/dist/elements/p-624503dd.entry.js +0 -1
- package/dist/elements/p-d6e9d178.entry.js +0 -1
- package/dist/elements/p-f9c10964.entry.js +0 -1
- package/dist/elements/p-sVi8GCz5.js +0 -67
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunk_ZGGPD2XJ = require('./chunk.ZGGPD2XJ-
|
|
4
|
-
var classMap = require('./class-map-
|
|
3
|
+
var chunk_ZGGPD2XJ = require('./chunk.ZGGPD2XJ-BvGHEYp6.js');
|
|
4
|
+
var classMap = require('./class-map-C9P5WsLw.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var chunk_ZGGPD2XJ = require('./chunk.ZGGPD2XJ-
|
|
5
|
-
var classMap = require('./class-map-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
|
+
var chunk_ZGGPD2XJ = require('./chunk.ZGGPD2XJ-BvGHEYp6.js');
|
|
5
|
+
var classMap = require('./class-map-C9P5WsLw.js');
|
|
6
6
|
|
|
7
7
|
const appendToMap = (map, propName, value) => {
|
|
8
8
|
let refs = map.get(propName);
|
package/dist/cjs/elements.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
/*
|
|
@@ -45,7 +45,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
45
45
|
|
|
46
46
|
patchBrowser().then(async (options) => {
|
|
47
47
|
await index.globalScripts();
|
|
48
|
-
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[
|
|
48
|
+
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[513],"resource":[32],"value":[32]},null,{"predicate":[{"observeAnyValue":0}]}]]],["pos-attachments.cjs",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents.cjs",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document.cjs",[[1,"pos-document",{"src":[1],"alt":[1],"os":[32],"file":[32],"brokenFile":[32],"error":[32],"saveStatus":[32],"loading":[32],"isEditable":[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}]]],["pos-add-new-thing_32.cjs",[[0,"pos-app-browser",{"restorePreviousSession":[4,"restore-previous-session"],"mode":[1],"uri":[32]}],[0,"pos-internal-router",{"uri":[1]}],[257,"pos-login",{"os":[32],"customLoggedInComponent":[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[1,"pos-navigation",{"uri":[1],"os":[32],"inputValue":[32],"searchIndex":[32],"suggestions":[32],"selectedIndex":[32],"resource":[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{"uri":[{"updateResource":0}],"os":[{"updateResource":0}]}],[1,"pos-user-menu",{"webId":[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{"referenceUri":[1,"reference-uri"]}],[1,"pos-type-router",{"initialTool":[32],"availableTools":[32],"oldTool":[32],"currentTool":[32],"transitioning":[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-app",{"restorePreviousSession":[4,"restore-previous-session"],"os":[32],"unsubscribeSettings":[32],"loading":[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[257,"pos-error-toast",{"title":[32],"message":[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{"mode":[1],"uri":[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-app-dashboard"],[1,"pos-navigation-bar",{"current":[16],"searchIndexReady":[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-app-settings"],[17,"pos-new-thing-form",{"referenceUri":[1,"reference-uri"],"os":[32],"newUri":[32],"name":[32],"selectedTypeUri":[32],"canSubmit":[32]},null,{"name":[{"validate":0}],"selectedTypeUri":[{"validate":0}]}],[17,"pos-login-form",{"idpUrl":[32],"canSubmit":[32],"rememberMe":[32]},null,{"idpUrl":[{"validate":0}]}],[1,"pos-tool-select",{"selected":[16],"tools":[16]}],[1,"pos-type-index-entries",{"uri":[1],"entries":[32]}],[1,"pos-example-resources"],[1,"pos-make-findable",{"uri":[1],"os":[32],"thing":[32],"indexes":[32],"unsubscribeSessionChange":[32],"showOptions":[32],"isIndexed":[32]},[[0,"sl-select","onSelect"]],{"uri":[{"updateUri":0}]}],[260,"pos-dialog",{"showModal":[64],"close":[64]}],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"],[1,"pos-share",{"uri":[1],"apps":[32],"os":[32]},[[4,"pod-os:resource-loaded","resourceLoaded"],[0,"sl-select","onSelect"]],{"uri":[{"updateApps":0}]}],[257,"pos-picture",{"blurredBackground":[4,"blurred-background"],"noUpload":[4,"no-upload"],"resource":[32],"os":[32],"isUploading":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"blurredBackground":[4,"blurred-background"],"os":[32],"dataUri":[32],"brokenFile":[32],"networkError":[32],"imageError":[32],"loading":[32]},null,{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}],[1,"pos-upload",{"accept":[16],"uploader":[16]}],[1,"pos-predicate",{"uri":[1],"label":[1],"expanded":[32]}],[17,"pos-select-term",{"placeholder":[1],"value":[1],"os":[32],"terms":[32]},null,{"os":[{"setTerms":0}]}],[257,"pos-rich-link",{"uri":[1],"rel":[1],"rev":[1],"link":[32],"followPredicate":[32],"error":[32],"showCustomContent":[32]}],[1,"pos-description",{"description":[32]}],[1,"pos-label",{"label":[32]}],[257,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]],{"os":[{"loadResource":0}],"uri":[{"loadResource":0}]}]]],["pos-relations_2.cjs",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects.cjs",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation.cjs",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document.cjs",[[1,"pos-markdown-document",{"file":[16],"saveStatus":[1,"save-status"],"editable":[4],"markdown":[32],"isModified":[32],"isEditing":[32],"startEditing":[64],"stopEditing":[64]}]]],["pos-container-item_3.cjs",[[257,"pos-container-item",{"resource":[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{"type":[1],"container":[16],"os":[32],"name":[32]}]]],["pos-add-literal-value_3.cjs",[[1,"pos-literals",{"data":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[1,"pos-add-literal-value",{"os":[32],"resource":[32],"currentValue":[32],"selectedTermUri":[32]},null,{"os":[{"setName":0}]}]]]], options);
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
exports.setNonce = index.setNonce;
|
|
@@ -13771,8 +13771,8 @@ function __generator(thisArg, body) {
|
|
|
13771
13771
|
var _ = { label: 0, sent: function() {
|
|
13772
13772
|
if (t[0] & 1) throw t[1];
|
|
13773
13773
|
return t[1];
|
|
13774
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
13775
|
-
return g =
|
|
13774
|
+
}, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13775
|
+
return g.next = verb2(0), g["throw"] = verb2(1), g["return"] = verb2(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
13776
13776
|
return this;
|
|
13777
13777
|
}), g;
|
|
13778
13778
|
function verb2(n2) {
|
|
@@ -13879,16 +13879,24 @@ function __await(v2) {
|
|
|
13879
13879
|
function __asyncGenerator(thisArg, _arguments, generator3) {
|
|
13880
13880
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
13881
13881
|
var g = generator3.apply(thisArg, _arguments || []), i, q = [];
|
|
13882
|
-
return i =
|
|
13882
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb2("next"), verb2("throw"), verb2("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
13883
13883
|
return this;
|
|
13884
13884
|
}, i;
|
|
13885
|
-
function
|
|
13886
|
-
|
|
13887
|
-
return
|
|
13888
|
-
q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
|
|
13889
|
-
});
|
|
13885
|
+
function awaitReturn(f) {
|
|
13886
|
+
return function(v2) {
|
|
13887
|
+
return Promise.resolve(v2).then(f, reject);
|
|
13890
13888
|
};
|
|
13891
13889
|
}
|
|
13890
|
+
function verb2(n2, f) {
|
|
13891
|
+
if (g[n2]) {
|
|
13892
|
+
i[n2] = function(v2) {
|
|
13893
|
+
return new Promise(function(a, b) {
|
|
13894
|
+
q.push([n2, v2, a, b]) > 1 || resume(n2, v2);
|
|
13895
|
+
});
|
|
13896
|
+
};
|
|
13897
|
+
if (f) i[n2] = f(i[n2]);
|
|
13898
|
+
}
|
|
13899
|
+
}
|
|
13892
13900
|
function resume(n2, v2) {
|
|
13893
13901
|
try {
|
|
13894
13902
|
step4(g[n2](v2));
|
|
@@ -15413,6 +15421,23 @@ function debounceTime(dueTime, scheduler) {
|
|
|
15413
15421
|
});
|
|
15414
15422
|
}
|
|
15415
15423
|
|
|
15424
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/take.js
|
|
15425
|
+
function take(count2) {
|
|
15426
|
+
return count2 <= 0 ? function() {
|
|
15427
|
+
return EMPTY;
|
|
15428
|
+
} : operate(function(source8, subscriber3) {
|
|
15429
|
+
var seen = 0;
|
|
15430
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value7) {
|
|
15431
|
+
if (++seen <= count2) {
|
|
15432
|
+
subscriber3.next(value7);
|
|
15433
|
+
if (count2 <= seen) {
|
|
15434
|
+
subscriber3.complete();
|
|
15435
|
+
}
|
|
15436
|
+
}
|
|
15437
|
+
}));
|
|
15438
|
+
});
|
|
15439
|
+
}
|
|
15440
|
+
|
|
15416
15441
|
// ../node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js
|
|
15417
15442
|
function distinctUntilChanged(comparator2, keySelector) {
|
|
15418
15443
|
if (keySelector === void 0) {
|
|
@@ -15448,6 +15473,31 @@ function startWith() {
|
|
|
15448
15473
|
});
|
|
15449
15474
|
}
|
|
15450
15475
|
|
|
15476
|
+
// ../node_modules/rxjs/dist/esm5/internal/operators/switchMap.js
|
|
15477
|
+
function switchMap(project, resultSelector) {
|
|
15478
|
+
return operate(function(source8, subscriber3) {
|
|
15479
|
+
var innerSubscriber = null;
|
|
15480
|
+
var index2 = 0;
|
|
15481
|
+
var isComplete = false;
|
|
15482
|
+
var checkComplete = function() {
|
|
15483
|
+
return isComplete && !innerSubscriber && subscriber3.complete();
|
|
15484
|
+
};
|
|
15485
|
+
source8.subscribe(createOperatorSubscriber(subscriber3, function(value7) {
|
|
15486
|
+
innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
|
|
15487
|
+
var outerIndex = index2++;
|
|
15488
|
+
innerFrom(project(value7, outerIndex)).subscribe(innerSubscriber = createOperatorSubscriber(subscriber3, function(innerValue) {
|
|
15489
|
+
return subscriber3.next(innerValue);
|
|
15490
|
+
}, function() {
|
|
15491
|
+
innerSubscriber = null;
|
|
15492
|
+
checkComplete();
|
|
15493
|
+
}));
|
|
15494
|
+
}, function() {
|
|
15495
|
+
isComplete = true;
|
|
15496
|
+
checkComplete();
|
|
15497
|
+
}));
|
|
15498
|
+
});
|
|
15499
|
+
}
|
|
15500
|
+
|
|
15451
15501
|
// ../node_modules/rxjs/dist/esm5/internal/operators/tap.js
|
|
15452
15502
|
function tap(observerOrNext, error4, complete2) {
|
|
15453
15503
|
var tapObserver = isFunction(observerOrNext) || error4 || complete2 ? { next: observerOrNext, error: error4, complete: complete2 } : observerOrNext;
|
|
@@ -22140,7 +22190,7 @@ function listToCollection(kb, obj) {
|
|
|
22140
22190
|
}
|
|
22141
22191
|
async function jsonldParser(str, kb, base2) {
|
|
22142
22192
|
const baseString = base2 && Object.prototype.hasOwnProperty.call(base2, "termType") ? base2.value : base2;
|
|
22143
|
-
const jsonld = await Promise.resolve().then(function () { return require('./jsonld-V2RB47OZ-
|
|
22193
|
+
const jsonld = await Promise.resolve().then(function () { return require('./jsonld-V2RB47OZ-C8WVLsWC.js'); });
|
|
22144
22194
|
const flattened = await jsonld.default.flatten(JSON.parse(str), null, {
|
|
22145
22195
|
base: baseString
|
|
22146
22196
|
});
|
|
@@ -27881,6 +27931,30 @@ function getFilename(url7) {
|
|
|
27881
27931
|
}
|
|
27882
27932
|
|
|
27883
27933
|
// src/thing/Thing.ts
|
|
27934
|
+
var LABEL_PREDICATES = [
|
|
27935
|
+
"http://www.w3.org/2006/vcard/ns#fn",
|
|
27936
|
+
"http://xmlns.com/foaf/0.1/name",
|
|
27937
|
+
"http://xmlns.com/foaf/0.1/nick",
|
|
27938
|
+
"https://schema.org/name",
|
|
27939
|
+
"http://schema.org/name",
|
|
27940
|
+
"http://purl.org/dc/terms/title",
|
|
27941
|
+
"http://purl.org/dc/elements/1.1/title",
|
|
27942
|
+
"http://www.w3.org/2000/01/rdf-schema#label",
|
|
27943
|
+
"https://www.w3.org/ns/activitystreams#name",
|
|
27944
|
+
"http://schema.org/caption",
|
|
27945
|
+
"https://schema.org/caption"
|
|
27946
|
+
];
|
|
27947
|
+
var DESCRIPTION_PREDICATES = [
|
|
27948
|
+
"http://purl.org/dc/terms/description",
|
|
27949
|
+
"http://purl.org/dc/elements/1.1/description",
|
|
27950
|
+
"http://schema.org/description",
|
|
27951
|
+
"https://schema.org/description",
|
|
27952
|
+
"https://schema.org/text",
|
|
27953
|
+
"http://www.w3.org/2000/01/rdf-schema#comment",
|
|
27954
|
+
"https://www.w3.org/ns/activitystreams#summary",
|
|
27955
|
+
"https://www.w3.org/ns/activitystreams#content",
|
|
27956
|
+
"http://www.w3.org/2006/vcard/ns#note"
|
|
27957
|
+
];
|
|
27884
27958
|
var Thing = class {
|
|
27885
27959
|
constructor(uri6, store, editable = false) {
|
|
27886
27960
|
this.uri = uri6;
|
|
@@ -27894,24 +27968,20 @@ var Thing = class {
|
|
|
27894
27968
|
* If no such term is present, it will derive a label from the URI.
|
|
27895
27969
|
*/
|
|
27896
27970
|
label() {
|
|
27897
|
-
const value7 = this.anyValue(
|
|
27898
|
-
"http://www.w3.org/2006/vcard/ns#fn",
|
|
27899
|
-
"http://xmlns.com/foaf/0.1/name",
|
|
27900
|
-
"http://xmlns.com/foaf/0.1/nick",
|
|
27901
|
-
"https://schema.org/name",
|
|
27902
|
-
"http://schema.org/name",
|
|
27903
|
-
"http://purl.org/dc/terms/title",
|
|
27904
|
-
"http://purl.org/dc/elements/1.1/title",
|
|
27905
|
-
"http://www.w3.org/2000/01/rdf-schema#label",
|
|
27906
|
-
"https://www.w3.org/ns/activitystreams#name",
|
|
27907
|
-
"http://schema.org/caption",
|
|
27908
|
-
"https://schema.org/caption"
|
|
27909
|
-
);
|
|
27971
|
+
const value7 = this.anyValue(...LABEL_PREDICATES);
|
|
27910
27972
|
if (value7) {
|
|
27911
27973
|
return value7;
|
|
27912
27974
|
}
|
|
27913
27975
|
return labelFromUri(this.uri);
|
|
27914
27976
|
}
|
|
27977
|
+
/**
|
|
27978
|
+
* Observe changes in human-readable label for this thing. See `label`.
|
|
27979
|
+
*/
|
|
27980
|
+
observeLabel() {
|
|
27981
|
+
return this.observeAnyValue(...LABEL_PREDICATES).pipe(
|
|
27982
|
+
map((value7) => value7 ?? labelFromUri(this.uri))
|
|
27983
|
+
);
|
|
27984
|
+
}
|
|
27915
27985
|
/**
|
|
27916
27986
|
* Returns all the literal values that are linked to this thing
|
|
27917
27987
|
*/
|
|
@@ -28003,22 +28073,56 @@ var Thing = class {
|
|
|
28003
28073
|
});
|
|
28004
28074
|
return value7;
|
|
28005
28075
|
}
|
|
28076
|
+
/**
|
|
28077
|
+
* Observe changes in a value linked from this thing via one of the given predicates
|
|
28078
|
+
*
|
|
28079
|
+
* Note that return value may differ from that from `anyValue` when more than one value is present.
|
|
28080
|
+
*
|
|
28081
|
+
* @param predicateUris
|
|
28082
|
+
*/
|
|
28083
|
+
observeAnyValue(...predicateUris) {
|
|
28084
|
+
const currentValue = this.anyValue(...predicateUris);
|
|
28085
|
+
const relevantChanges$ = (observable2) => observable2.pipe(
|
|
28086
|
+
filter(
|
|
28087
|
+
(quad3) => quad3.subject.value === this.uri && predicateUris.includes(quad3.predicate.value)
|
|
28088
|
+
)
|
|
28089
|
+
);
|
|
28090
|
+
const removalOrInitial$ = relevantChanges$(this.store.removals$).pipe(
|
|
28091
|
+
map(() => ({ type: "removal" })),
|
|
28092
|
+
currentValue === void 0 ? startWith({ type: "removal" }) : identity
|
|
28093
|
+
);
|
|
28094
|
+
const addition$ = removalOrInitial$.pipe(
|
|
28095
|
+
switchMap(
|
|
28096
|
+
() => relevantChanges$(this.store.additions$).pipe(
|
|
28097
|
+
take(1),
|
|
28098
|
+
map((quad3) => ({
|
|
28099
|
+
type: "addition",
|
|
28100
|
+
value: quad3.object.value
|
|
28101
|
+
}))
|
|
28102
|
+
)
|
|
28103
|
+
)
|
|
28104
|
+
);
|
|
28105
|
+
return merge(removalOrInitial$, addition$).pipe(
|
|
28106
|
+
debounceTime(250),
|
|
28107
|
+
map(
|
|
28108
|
+
(event4) => event4.type === "addition" ? event4.value : this.anyValue(...predicateUris)
|
|
28109
|
+
// determine a new value after a removal
|
|
28110
|
+
),
|
|
28111
|
+
startWith(currentValue)
|
|
28112
|
+
);
|
|
28113
|
+
}
|
|
28006
28114
|
/**
|
|
28007
28115
|
* Returns a literal value that describes this thing. Tries to match common RDF terms
|
|
28008
28116
|
* used for descriptions, like `dct:description`, `schema:description` or `rdfs:comment`
|
|
28009
28117
|
*/
|
|
28010
28118
|
description() {
|
|
28011
|
-
return this.anyValue(
|
|
28012
|
-
|
|
28013
|
-
|
|
28014
|
-
|
|
28015
|
-
|
|
28016
|
-
|
|
28017
|
-
|
|
28018
|
-
"https://www.w3.org/ns/activitystreams#summary",
|
|
28019
|
-
"https://www.w3.org/ns/activitystreams#content",
|
|
28020
|
-
"http://www.w3.org/2006/vcard/ns#note"
|
|
28021
|
-
);
|
|
28119
|
+
return this.anyValue(...DESCRIPTION_PREDICATES);
|
|
28120
|
+
}
|
|
28121
|
+
/**
|
|
28122
|
+
* Observe changes in literal values that describe this thing. See `description`
|
|
28123
|
+
*/
|
|
28124
|
+
observeDescription() {
|
|
28125
|
+
return this.observeAnyValue(...DESCRIPTION_PREDICATES);
|
|
28022
28126
|
}
|
|
28023
28127
|
/**
|
|
28024
28128
|
* Returns the url of a picture or logo associated with this thing
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
4
4
|
const NAMESPACE = 'elements';
|
|
5
|
-
const BUILD = /* elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, deserializer: false, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propChangeCallback: true, propMutable: false, propNumber: false, propString: true, reflect:
|
|
5
|
+
const BUILD = /* elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, deserializer: false, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propChangeCallback: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, serializer: false, shadowDelegatesFocus: true, shadowDom: true, shadowSlotAssignmentManual: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false };
|
|
6
6
|
const Env = /* elements */ {};
|
|
7
7
|
|
|
8
8
|
// src/utilities/base-path.ts
|
|
@@ -34,7 +34,7 @@ function updateTheme(e) {
|
|
|
34
34
|
document.documentElement.classList.toggle('sl-theme-dark', e.matches);
|
|
35
35
|
}
|
|
36
36
|
function global () {
|
|
37
|
-
setBasePath(new URL('./shoelace', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
37
|
+
setBasePath(new URL('./shoelace', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-CjKppELa.js', document.baseURI).href))).toString());
|
|
38
38
|
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
39
39
|
updateTheme(mediaQuery);
|
|
40
40
|
mediaQuery.addEventListener('change', updateTheme);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await index.globalScripts();
|
|
8
|
-
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[
|
|
8
|
+
return index.bootstrapLazy([["pos-app-generic.cjs",[[1,"pos-app-generic"]]],["pos-app-ldp-container.cjs",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document.cjs",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer.cjs",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments.cjs",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer.cjs",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list.cjs",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case.cjs",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"ifProperty":[1,"if-property"],"ifRev":[1,"if-rev"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"types":[32],"relations":[32],"reverseRelations":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[513],"resource":[32],"value":[32]},null,{"predicate":[{"observeAnyValue":0}]}]]],["pos-attachments.cjs",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents.cjs",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document.cjs",[[1,"pos-document",{"src":[1],"alt":[1],"os":[32],"file":[32],"brokenFile":[32],"error":[32],"saveStatus":[32],"loading":[32],"isEditable":[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}]]],["pos-add-new-thing_32.cjs",[[0,"pos-app-browser",{"restorePreviousSession":[4,"restore-previous-session"],"mode":[1],"uri":[32]}],[0,"pos-internal-router",{"uri":[1]}],[257,"pos-login",{"os":[32],"customLoggedInComponent":[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[1,"pos-navigation",{"uri":[1],"os":[32],"inputValue":[32],"searchIndex":[32],"suggestions":[32],"selectedIndex":[32],"resource":[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{"uri":[{"updateResource":0}],"os":[{"updateResource":0}]}],[1,"pos-user-menu",{"webId":[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{"referenceUri":[1,"reference-uri"]}],[1,"pos-type-router",{"initialTool":[32],"availableTools":[32],"oldTool":[32],"currentTool":[32],"transitioning":[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-app",{"restorePreviousSession":[4,"restore-previous-session"],"os":[32],"unsubscribeSettings":[32],"loading":[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[257,"pos-error-toast",{"title":[32],"message":[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{"mode":[1],"uri":[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-app-dashboard"],[1,"pos-navigation-bar",{"current":[16],"searchIndexReady":[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-app-settings"],[17,"pos-new-thing-form",{"referenceUri":[1,"reference-uri"],"os":[32],"newUri":[32],"name":[32],"selectedTypeUri":[32],"canSubmit":[32]},null,{"name":[{"validate":0}],"selectedTypeUri":[{"validate":0}]}],[17,"pos-login-form",{"idpUrl":[32],"canSubmit":[32],"rememberMe":[32]},null,{"idpUrl":[{"validate":0}]}],[1,"pos-tool-select",{"selected":[16],"tools":[16]}],[1,"pos-type-index-entries",{"uri":[1],"entries":[32]}],[1,"pos-example-resources"],[1,"pos-make-findable",{"uri":[1],"os":[32],"thing":[32],"indexes":[32],"unsubscribeSessionChange":[32],"showOptions":[32],"isIndexed":[32]},[[0,"sl-select","onSelect"]],{"uri":[{"updateUri":0}]}],[260,"pos-dialog",{"showModal":[64],"close":[64]}],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"],[1,"pos-share",{"uri":[1],"apps":[32],"os":[32]},[[4,"pod-os:resource-loaded","resourceLoaded"],[0,"sl-select","onSelect"]],{"uri":[{"updateApps":0}]}],[257,"pos-picture",{"blurredBackground":[4,"blurred-background"],"noUpload":[4,"no-upload"],"resource":[32],"os":[32],"isUploading":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"blurredBackground":[4,"blurred-background"],"os":[32],"dataUri":[32],"brokenFile":[32],"networkError":[32],"imageError":[32],"loading":[32]},null,{"os":[{"fetchBlob":0}],"src":[{"fetchBlob":0}]}],[1,"pos-upload",{"accept":[16],"uploader":[16]}],[1,"pos-predicate",{"uri":[1],"label":[1],"expanded":[32]}],[17,"pos-select-term",{"placeholder":[1],"value":[1],"os":[32],"terms":[32]},null,{"os":[{"setTerms":0}]}],[257,"pos-rich-link",{"uri":[1],"rel":[1],"rev":[1],"link":[32],"followPredicate":[32],"error":[32],"showCustomContent":[32]}],[1,"pos-description",{"description":[32]}],[1,"pos-label",{"label":[32]}],[257,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]],{"os":[{"loadResource":0}],"uri":[{"loadResource":0}]}]]],["pos-relations_2.cjs",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects.cjs",[[1,"pos-subjects",{"data":[32]}]]],["pos-add-relation.cjs",[[1,"pos-add-relation",{"os":[32],"resource":[32],"selectedTermUri":[32],"currentValue":[32]}]]],["pos-markdown-document.cjs",[[1,"pos-markdown-document",{"file":[16],"saveStatus":[1,"save-status"],"editable":[4],"markdown":[32],"isModified":[32],"isEditing":[32],"startEditing":[64],"stopEditing":[64]}]]],["pos-container-item_3.cjs",[[257,"pos-container-item",{"resource":[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{"type":[1],"container":[16],"os":[32],"name":[32]}]]],["pos-add-literal-value_3.cjs",[[1,"pos-literals",{"data":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[1,"pos-add-literal-value",{"os":[32],"resource":[32],"currentValue":[32],"selectedTermUri":[32]},null,{"os":[{"setName":0}]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
|
+
var index$1 = require('./index-BPvAwpRj.js');
|
|
5
5
|
var PodOsAware = require('./PodOsAware-_Lsp4KsV.js');
|
|
6
6
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
7
|
-
require('./chunk.ZGGPD2XJ-
|
|
8
|
-
require('./chunk.URTPIBTY-
|
|
9
|
-
require('./class-map-
|
|
7
|
+
require('./chunk.ZGGPD2XJ-BvGHEYp6.js');
|
|
8
|
+
require('./chunk.URTPIBTY-C9cOc4B-.js');
|
|
9
|
+
require('./class-map-C9P5WsLw.js');
|
|
10
10
|
|
|
11
11
|
const posAddLiteralValueCss = () => `:host{display:flex;align-items:center;gap:0.2rem}input{padding:var(--size-2);background-color:transparent;color:var(--pos-normal-text-color);border:none}input:focus{outline:2px solid var(--pos-primary-color);background-color:var(--pos-input-background-color);transition:outline 0.1s, background-color 0.1s}`;
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var chunk_ZGGPD2XJ = require('./chunk.ZGGPD2XJ-
|
|
5
|
-
var chunk_XQ2OKYYA = require('./chunk.XQ2OKYYA-
|
|
6
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
|
+
var chunk_ZGGPD2XJ = require('./chunk.ZGGPD2XJ-BvGHEYp6.js');
|
|
5
|
+
var chunk_XQ2OKYYA = require('./chunk.XQ2OKYYA-CTZvRtz3.js');
|
|
6
|
+
var index$1 = require('./index-BPvAwpRj.js');
|
|
7
7
|
var index$2 = require('./index-DlHQ3blV.js');
|
|
8
|
-
var chunk_URTPIBTY = require('./chunk.URTPIBTY-
|
|
9
|
-
var classMap = require('./class-map-
|
|
8
|
+
var chunk_URTPIBTY = require('./chunk.URTPIBTY-C9cOc4B-.js');
|
|
9
|
+
var classMap = require('./class-map-C9P5WsLw.js');
|
|
10
10
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
11
11
|
var PodOsAware = require('./PodOsAware-_Lsp4KsV.js');
|
|
12
12
|
var usePodOS = require('./usePodOS-BnFzjtlx.js');
|
|
@@ -3178,15 +3178,24 @@ const PosDescription = class {
|
|
|
3178
3178
|
constructor(hostRef) {
|
|
3179
3179
|
index.registerInstance(this, hostRef);
|
|
3180
3180
|
this.subscribeResource = index.createEvent(this, "pod-os:resource", 7);
|
|
3181
|
+
this.disconnected$ = new index$2.cjsExports.Subject();
|
|
3181
3182
|
this.receiveResource = (resource) => {
|
|
3182
|
-
this.
|
|
3183
|
+
this.disconnected$.next();
|
|
3184
|
+
resource
|
|
3185
|
+
.observeDescription()
|
|
3186
|
+
.pipe(index$2.cjsExports.takeUntil(this.disconnected$))
|
|
3187
|
+
.subscribe(description => (this.description = description));
|
|
3183
3188
|
};
|
|
3184
3189
|
}
|
|
3185
3190
|
componentWillLoad() {
|
|
3186
3191
|
ResourceAware.subscribeResource(this);
|
|
3187
3192
|
}
|
|
3188
3193
|
render() {
|
|
3189
|
-
return this.
|
|
3194
|
+
return this.description ? this.description : null;
|
|
3195
|
+
}
|
|
3196
|
+
disconnectedCallback() {
|
|
3197
|
+
this.disconnected$.next();
|
|
3198
|
+
this.disconnected$.complete();
|
|
3190
3199
|
}
|
|
3191
3200
|
};
|
|
3192
3201
|
|
|
@@ -3963,15 +3972,23 @@ const PosLabel = class {
|
|
|
3963
3972
|
constructor(hostRef) {
|
|
3964
3973
|
index.registerInstance(this, hostRef);
|
|
3965
3974
|
this.subscribeResource = index.createEvent(this, "pod-os:resource", 7);
|
|
3975
|
+
this.disconnected$ = new index$2.cjsExports.Subject();
|
|
3966
3976
|
this.receiveResource = (resource) => {
|
|
3967
|
-
|
|
3977
|
+
resource
|
|
3978
|
+
.observeLabel()
|
|
3979
|
+
.pipe(index$2.cjsExports.takeUntil(this.disconnected$))
|
|
3980
|
+
.subscribe(label => (this.label = label));
|
|
3968
3981
|
};
|
|
3969
3982
|
}
|
|
3970
3983
|
componentWillLoad() {
|
|
3971
3984
|
ResourceAware.subscribeResource(this);
|
|
3972
3985
|
}
|
|
3973
3986
|
render() {
|
|
3974
|
-
return this.
|
|
3987
|
+
return this.label ? this.label : null;
|
|
3988
|
+
}
|
|
3989
|
+
disconnectedCallback() {
|
|
3990
|
+
this.disconnected$.next();
|
|
3991
|
+
this.disconnected$.complete();
|
|
3975
3992
|
}
|
|
3976
3993
|
};
|
|
3977
3994
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
var useResource = require('./useResource-IN7KmaP3.js');
|
|
5
|
-
require('./chunk.ZGGPD2XJ-
|
|
6
|
-
var index$1 = require('./index-
|
|
5
|
+
require('./chunk.ZGGPD2XJ-BvGHEYp6.js');
|
|
6
|
+
var index$1 = require('./index-BPvAwpRj.js');
|
|
7
7
|
var usePodOS = require('./usePodOS-BnFzjtlx.js');
|
|
8
8
|
|
|
9
9
|
const posAddRelationCss = () => `:host{display:flex;align-items:center;gap:0.2rem}input{padding:var(--size-2);background-color:transparent;color:var(--pos-normal-text-color);border:none}input:focus{outline:2px solid var(--pos-primary-color);background-color:var(--pos-input-background-color);transition:outline 0.1s, background-color 0.1s}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
5
5
|
|
|
6
6
|
const defaultAppLayoutCss = () => `:host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
|
|
5
5
|
const posAppGenericCss = () => `:host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}article{outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;pos-picture{--object-fit:contain;--width:100%;--height:auto;--max-height:300px;border-radius:var(--radius-sm) var(--radius-sm) 0 0;--border-radius:var(--radius-sm) var(--radius-sm) 0 0}h1,pos-type-badges{margin:var(--size-2)}}main{padding:var(--size-2);pos-description{color:var(--pos-secondary-text-color);font-weight:var(--weight-light)}}}@media (min-width: 640px){:host{flex-direction:row;flex-wrap:wrap;section:first-of-type{flex:0 0 25%}section:not(:first-of-type){flex:1}}}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
|
|
5
5
|
const defaultAppLayoutCss = () => `:host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
|
|
5
5
|
const defaultAppLayoutCss = () => `:host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
var useResource = require('./useResource-IN7KmaP3.js');
|
|
5
5
|
|
|
6
6
|
const posAttachmentsCss = () => `:host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color);ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--size-1);li{padding:var(--size-1);&:nth-child(even){background-color:var(--background-color-even)}&:nth-child(odd){background-color:var(--background-color-odd)}&.new{animation:newItemBounce 0.8s ease-out, highlightFlash 2.5s ease-in-out}}}}@keyframes newItemBounce{0%{transform:scale(0.95);opacity:0}60%{transform:scale(1.02)}100%{transform:scale(1);opacity:1}}@keyframes highlightFlash{0%{box-shadow:0 0 20px var(--pos-primary-color)}100%{box-shadow:0 0 0 transparent}}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$2 = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
|
+
var index$2 = require('./index-BPvAwpRj.js');
|
|
5
5
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
6
6
|
var index$1 = require('./index-DlHQ3blV.js');
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CjKppELa.js');
|
|
4
4
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
5
|
-
require('./chunk.ZGGPD2XJ-
|
|
6
|
-
require('./chunk.URTPIBTY-
|
|
5
|
+
require('./chunk.ZGGPD2XJ-BvGHEYp6.js');
|
|
6
|
+
require('./chunk.URTPIBTY-C9cOc4B-.js');
|
|
7
7
|
var usePodOS = require('./usePodOS-BnFzjtlx.js');
|
|
8
|
-
require('./class-map-
|
|
8
|
+
require('./class-map-C9P5WsLw.js');
|
|
9
9
|
|
|
10
10
|
function selectIconForTypes(types) {
|
|
11
11
|
if (containsType(types, 'http://www.w3.org/ns/ldp#Container')) {
|