@pod-os/elements 0.36.0 → 0.37.0-rc.0b98c3c.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-DdK9pL5v.js → chunk.URTPIBTY-FtbhZr1d.js} +2 -2
- package/dist/cjs/{chunk.XQ2OKYYA-DEkhm1i7.js → chunk.XQ2OKYYA-BpcNJ_Ey.js} +3 -3
- package/dist/cjs/{chunk.ZGGPD2XJ-uKZZdqOH.js → chunk.ZGGPD2XJ-DZsyTFqB.js} +1 -1
- package/dist/cjs/{class-map-DAZXfKKA.js → class-map-CF_MMTnq.js} +1 -1
- package/dist/cjs/elements.cjs.js +3 -3
- package/dist/cjs/{index-DCpu_nnH.js → index-CtUr8eOE.js} +525 -1988
- package/dist/cjs/{index-FUnpyb19.js → index-LDTTta4S.js} +863 -551
- package/dist/cjs/{jsonld-V2RB47OZ-BerQ9IRa.js → jsonld-V2RB47OZ-BWMHCZBW.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +6 -6
- package/dist/cjs/{pos-add-new-thing_31.cjs.entry.js → pos-add-new-thing_32.cjs.entry.js} +109 -61
- 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 +2 -2
- package/dist/cjs/pos-case.cjs.entry.js +24 -0
- 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 +2 -2
- 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 +64 -0
- package/dist/cjs/pos-tool-attachments.cjs.entry.js +2 -2
- package/dist/cjs/pos-value.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/pos-app/pos-app.js +2 -1
- package/dist/collection/components/pos-attachments/pos-attachments.js +2 -1
- package/dist/collection/components/pos-container-contents/pos-create-new-container-item/pos-create-new-container-item.js +4 -2
- package/dist/collection/components/pos-markdown-document/pos-markdown-document.js +2 -1
- package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.css +42 -22
- package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js +3 -2
- package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +1 -1
- package/dist/collection/components/pos-router/pos-router.js +1 -1
- package/dist/collection/components/pos-select-term/pos-select-term.js +1 -1
- package/dist/collection/components/pos-share/openNewTab.js +3 -0
- package/dist/collection/components/pos-share/pos-share.css +36 -0
- package/dist/collection/components/pos-share/pos-share.js +100 -0
- package/dist/collection/components/pos-switch/pos-case/pos-case.js +88 -0
- package/dist/collection/components/pos-switch/pos-switch.js +89 -0
- package/dist/collection/components/pos-tool-select/pos-tool-select.js +6 -3
- package/dist/collection/components/pos-upload/pos-upload.js +7 -4
- package/dist/collection/components/pos-user-menu/pos-user-menu.js +1 -1
- package/dist/collection/tools/pos-tool-attachments/pos-tool-attachments.js +1 -1
- package/dist/components/chunk.IVVHNXMC.js +20 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +2 -2
- package/dist/components/pos-add-literal-value2.js +1 -1
- package/dist/components/pos-app-browser.js +1 -1
- package/dist/components/pos-attachments2.js +1 -1
- package/dist/components/pos-case.d.ts +11 -0
- package/dist/components/pos-case.js +1 -0
- package/dist/components/pos-make-findable2.js +1 -1
- package/dist/components/pos-navigation-bar2.js +1 -1
- package/dist/components/pos-navigation2.js +1 -1
- package/dist/components/pos-new-thing-form2.js +1 -1
- package/dist/components/pos-router2.js +1 -1
- package/dist/components/pos-select-term2.js +1 -1
- package/dist/components/pos-share.d.ts +11 -0
- package/dist/components/pos-share.js +1 -0
- package/dist/components/pos-share2.js +1 -0
- package/dist/components/pos-switch.d.ts +11 -0
- package/dist/components/pos-switch.js +1 -0
- package/dist/components/pos-tool-attachments.js +1 -1
- package/dist/components/pos-tool-select2.js +1 -1
- package/dist/components/pos-type-index-entries2.js +1 -1
- package/dist/components/pos-upload2.js +1 -1
- package/dist/components/pos-user-menu2.js +6 -25
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-9ad80b52.entry.js → p-07347eaf.entry.js} +1 -1
- package/dist/elements/{p-a9a18aa8.entry.js → p-23465966.entry.js} +1 -1
- package/dist/elements/{p-c8ee910c.entry.js → p-3ab681fe.entry.js} +1 -1
- package/dist/elements/{p-dff14248.entry.js → p-43ec0395.entry.js} +1 -1
- package/dist/elements/p-48f3b092.entry.js +1 -0
- package/dist/elements/{p-fe628201.entry.js → p-5b3f911d.entry.js} +1 -1
- package/dist/elements/{p-6561f1b7.entry.js → p-5d3c9c45.entry.js} +1 -1
- package/dist/elements/p-76e4882d.entry.js +1 -0
- package/dist/elements/{p-701f2c84.entry.js → p-780b0e14.entry.js} +34 -34
- package/dist/elements/p-9827b860.entry.js +1 -0
- package/dist/elements/p-98f9f7d6.entry.js +1 -0
- package/dist/elements/p-BKjkoLi4.js +2 -0
- package/dist/elements/{p-BkAnMOpW.js → p-Bc1EKYmT.js} +4 -4
- package/dist/elements/{p-Doy_38_j.js → p-CdRXVHZH.js} +1 -1
- package/dist/elements/p-CelEckSK.js +11 -0
- package/dist/elements/p-DEDHdpnD.js +67 -0
- package/dist/elements/{p-CrxYqX8r.js → p-Db6M_T3c.js} +7 -7
- package/dist/elements/{p-a20b72d8.entry.js → p-c0a8227e.entry.js} +1 -1
- package/dist/elements/{p-0e7413e6.entry.js → p-d56da833.entry.js} +1 -1
- package/dist/elements/{p-3e18b5dd.entry.js → p-db535410.entry.js} +1 -1
- package/dist/elements/p-df626ff5.entry.js +1 -0
- package/dist/elements/{p-b5d64c6f.entry.js → p-e2b0460d.entry.js} +1 -1
- package/dist/elements/{p-9b74c400.entry.js → p-e3e41963.entry.js} +1 -1
- package/dist/elements/{p-b363349c.entry.js → p-f5eacaa1.entry.js} +1 -1
- package/dist/elements/{p-52a612ed.entry.js → p-f61ab5a9.entry.js} +1 -1
- package/dist/elements/{p-8q-RA2Uq.js → p-k0sEkqnd.js} +3 -3
- package/dist/esm/{chunk.URTPIBTY-CNA3-SLq.js → chunk.URTPIBTY-IRBXSr44.js} +2 -2
- package/dist/esm/{chunk.XQ2OKYYA-CXNlpYUG.js → chunk.XQ2OKYYA-DeSebP8q.js} +3 -3
- package/dist/esm/{chunk.ZGGPD2XJ-BjT6fS1o.js → chunk.ZGGPD2XJ-DNRLq49v.js} +1 -1
- package/dist/esm/{class-map-CUYFUkXU.js → class-map-CdQEGha6.js} +1 -1
- package/dist/esm/elements.js +4 -4
- package/dist/esm/{index-DFqG64hG.js → index-BF-69-JC.js} +863 -551
- package/dist/esm/{index-VMHzF3uY.js → index-BKjkoLi4.js} +525 -1988
- package/dist/esm/{jsonld-V2RB47OZ-CaIJ08AA.js → jsonld-V2RB47OZ-CWZbzWzV.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pos-add-literal-value_3.entry.js +6 -6
- package/dist/esm/{pos-add-new-thing_31.entry.js → pos-add-new-thing_32.entry.js} +109 -62
- 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 +2 -2
- package/dist/esm/pos-case.entry.js +22 -0
- 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 +2 -2
- 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 +62 -0
- package/dist/esm/pos-tool-attachments.entry.js +2 -2
- package/dist/esm/pos-value.entry.js +1 -1
- package/dist/jest-setup.js +4 -0
- package/dist/types/components/pos-share/openNewTab.d.ts +1 -0
- package/dist/types/components/pos-share/pos-share.d.ts +26 -0
- package/dist/types/components/pos-switch/pos-case/pos-case.d.ts +22 -0
- package/dist/types/components/pos-switch/pos-switch.d.ts +19 -0
- package/dist/types/components.d.ts +300 -74
- package/dist/types/stencil-public-runtime.d.ts +50 -2
- package/package.json +5 -4
- package/dist/elements/p-0a087865.entry.js +0 -1
- package/dist/elements/p-637a38d9.entry.js +0 -1
- package/dist/elements/p-8ggjG2YF.js +0 -11
- package/dist/elements/p-LoCE14bN.js +0 -67
- package/dist/elements/p-VMHzF3uY.js +0 -2
- package/dist/elements/p-ac17ed6a.entry.js +0 -1
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-CtUr8eOE.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-add-new-
|
|
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"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch.cjs",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"templateString":[32]}]]],["pos-value.cjs",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["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]},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]},[[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]}],[17,"pos-select-term",{"placeholder":[1],"value":[1],"os":[32],"terms":[32]},null,{"os":[{"setTerms":0}]}],[1,"pos-predicate",{"uri":[1],"label":[1],"expanded":[32]}],[257,"pos-rich-link",{"uri":[1],"rel":[1],"rev":[1],"link":[32],"followPredicate":[32],"error":[32],"showCustomContent":[32]}],[1,"pos-description",{"resource":[32]}],[1,"pos-label",{"resource":[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-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,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
|
+
var index$1 = require('./index-LDTTta4S.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-DZsyTFqB.js');
|
|
8
|
+
require('./chunk.URTPIBTY-FtbhZr1d.js');
|
|
9
|
+
require('./class-map-CF_MMTnq.js');
|
|
10
10
|
|
|
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
|
|
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
|
|
|
13
13
|
const PosAddLiteralValue = class {
|
|
14
14
|
constructor(hostRef) {
|
|
@@ -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-CtUr8eOE.js');
|
|
4
|
+
var chunk_ZGGPD2XJ = require('./chunk.ZGGPD2XJ-DZsyTFqB.js');
|
|
5
|
+
var chunk_XQ2OKYYA = require('./chunk.XQ2OKYYA-BpcNJ_Ey.js');
|
|
6
|
+
var index$1 = require('./index-LDTTta4S.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-FtbhZr1d.js');
|
|
9
|
+
var classMap = require('./class-map-CF_MMTnq.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');
|
|
@@ -5350,7 +5350,7 @@ chunk_ZGGPD2XJ.__decorateClass([
|
|
|
5350
5350
|
|
|
5351
5351
|
SlMenuItem.define("sl-menu-item");
|
|
5352
5352
|
|
|
5353
|
-
const posMakeFindableCss = () => `button.main{display:flex;transition:width 200ms
|
|
5353
|
+
const posMakeFindableCss = () => `button.main{display:flex;transition:width 200ms, background-color 500ms, color 500ms, border-color 500ms;max-width:var(--size-40);flex-direction:row;overflow:hidden;height:var(--pos-navigation-bar-height);width:var(--pos-navigation-bar-height);align-items:center;justify-content:center;border-radius:var(--radius-md);color:var(--pos-subtle-text-color);border:var(--size-px) dashed var(--pos-subtle-text-color);background-color:var(--pos-background-color);p{padding:0;margin:0;display:none;white-space:nowrap}&.success{color:var(--color-green-700);border-color:var(--color-green-700);border-style:solid;background-color:var(--color-green-100)}&:active{transform:scale(0.99);filter:brightness(90%)}&:focus{outline:var(--pos-input-focus-outline)}}svg{display:inline-block;height:var(--size-6);flex-shrink:0;flex-grow:0;width:var(--size-6)}button.main:hover,sl-dropdown[open] button{width:var(--size-full);height:var(--pos-navigation-bar-height);background:var(--pos-background-color);color:var(--pos-normal-text-color);&.success{background:var(--color-green-200);color:var(--color-green-700)}p{display:inline-block}}`;
|
|
5354
5354
|
|
|
5355
5355
|
const PosMakeFindable = class {
|
|
5356
5356
|
constructor(hostRef) {
|
|
@@ -5580,7 +5580,7 @@ const PosNavigation = class {
|
|
|
5580
5580
|
};
|
|
5581
5581
|
PosNavigation.style = posNavigationCss();
|
|
5582
5582
|
|
|
5583
|
-
const posNavigationBarCss = () => `section.current{display:flex;height:var(--pos-navigation-bar-height);flex-grow:1;gap:0;background-color:var(--pos-input-background-color);border-radius:var(--radius-md);width:100%;&:focus-within{outline:var(--pos-input-focus-outline)}
|
|
5583
|
+
const posNavigationBarCss = () => `section.current{display:flex;align-items:center;box-sizing:border-box;padding:0 var(--size-2);height:var(--pos-navigation-bar-height);flex-grow:1;gap:0;background-color:var(--pos-input-background-color);border-radius:var(--radius-md);width:100%;&:focus-within{outline:var(--pos-input-focus-outline)}button{cursor:pointer;font-size:var(--scale-1);display:flex;align-items:center;justify-content:center;flex-grow:1;background:none;color:var(--pos-normal-text-color);outline:none;border:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:focus{text-decoration:underline}:first-child{flex-grow:1}svg{width:var(--size-6);color:var(--pos-subtle-text-color)}}pos-share{height:80%;&:hover{&::part(button){color:var(--pos-primary-color);background-color:var(--pos-border-color);border-radius:var(--radius-full)}}&::part(button){font-size:var(--size-4);background:none;outline:none;border:none;color:var(--pos-subtle-text-color)}}}`;
|
|
5584
5584
|
|
|
5585
5585
|
const PosNavigationBar = class {
|
|
5586
5586
|
constructor(hostRef) {
|
|
@@ -5598,7 +5598,7 @@ const PosNavigationBar = class {
|
|
|
5598
5598
|
}
|
|
5599
5599
|
render() {
|
|
5600
5600
|
const ariaLabel = this.current ? `${this.current.label()} (Click to search or enter URI)` : 'Search or enter URI';
|
|
5601
|
-
return (index.h("section", { key: '5f49aa9dad9d07550ee8ffbee90036cbc1efda55', class: "current" }, this.current && this.searchIndexReady && index.h("pos-make-findable", { key: '85974a4772aaf8cad3a11cdcd49e6df10141bfe3', uri: this.current.uri }), index.h("button", { key: '40660a3455b0f3392c68d7aea0075b102a1762a2', "aria-label": ariaLabel, onClick: () => this.onClick() }, index.h("div", { key: '9ab8922175d701f714f72aefb95745cf5ae4bb95' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon())));
|
|
5601
|
+
return (index.h("section", { key: '5f49aa9dad9d07550ee8ffbee90036cbc1efda55', class: "current" }, this.current && this.searchIndexReady && index.h("pos-make-findable", { key: '85974a4772aaf8cad3a11cdcd49e6df10141bfe3', uri: this.current.uri }), index.h("button", { key: '40660a3455b0f3392c68d7aea0075b102a1762a2', "aria-label": ariaLabel, onClick: () => this.onClick() }, index.h("div", { key: '9ab8922175d701f714f72aefb95745cf5ae4bb95' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon()), this.current && index.h("pos-share", { key: '3b80c1987f9f5138b11b8a106171fc73a236f426', uri: this.current.uri })));
|
|
5602
5602
|
}
|
|
5603
5603
|
icon() {
|
|
5604
5604
|
return (index.h("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" })));
|
|
@@ -5626,7 +5626,7 @@ const PosNewThingForm = class {
|
|
|
5626
5626
|
PodOsAware.subscribePodOs(this);
|
|
5627
5627
|
}
|
|
5628
5628
|
render() {
|
|
5629
|
-
return (index.h("form", { key: '
|
|
5629
|
+
return (index.h("form", { key: '64781cfb0e570d2368325d674c6637c581bb87c2', method: "dialog", onSubmit: e => this.handleSubmit(e) }, index.h("label", { key: '409e04f147430042eb334024fc7061574ab543cf', htmlFor: "type" }, "Type"), index.h("pos-select-term", { key: '8d5d580ee1f1e2e2c60cac0cc06798e94a0d28c3', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), index.h("label", { key: 'a45199618751e24b7d4a1bc13ad85c599cc93d1c', htmlFor: "name" }, "Name"), index.h("input", { key: 'bee3be7a680abbffc08caa5c549b68b1e653872d', id: "name", type: "text", value: this.name, onInput: e => this.handleChange(e) }), this.newUri ? (index.h("div", { id: "new-uri", title: "This will be the URI of the new thing" }, this.newUri)) : null, index.h("input", { key: 'e8fab4d442188f7f2f325ff7bde3dce6d3f772f6', id: "create", type: "submit", value: "Create", disabled: !this.canSubmit })));
|
|
5630
5630
|
}
|
|
5631
5631
|
handleChange(event) {
|
|
5632
5632
|
this.name = event.target.value;
|
|
@@ -6213,7 +6213,7 @@ const PosRouter = class {
|
|
|
6213
6213
|
this.routeChanged.emit(this.uri);
|
|
6214
6214
|
}
|
|
6215
6215
|
render() {
|
|
6216
|
-
return index.h("slot", { key: '
|
|
6216
|
+
return index.h("slot", { key: '2775fc2835158ccd8d540e4f27edfd497eafe7a9' });
|
|
6217
6217
|
}
|
|
6218
6218
|
};
|
|
6219
6219
|
PosRouter.style = posRouterCss();
|
|
@@ -6242,7 +6242,7 @@ const PosSelectTerm = class {
|
|
|
6242
6242
|
this.termSelected.emit({ uri: event.target.value });
|
|
6243
6243
|
}
|
|
6244
6244
|
render() {
|
|
6245
|
-
return (index.h(index.Host, { key: '
|
|
6245
|
+
return (index.h(index.Host, { key: 'a4050d72acd62d907f0fd4c3b90c54194700871c' }, index.h("input", { key: '99b35c4a14a2623599ba237bb4af0b79c0761196', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), index.h("datalist", { key: 'd64ad5ea83200014c6de5cd4720f29922494982c', part: "terms", id: "terms" }, this.terms.map(term => (index.h("option", { value: term.uri }, term.shorthand))))));
|
|
6246
6246
|
}
|
|
6247
6247
|
static get delegatesFocus() { return true; }
|
|
6248
6248
|
static get watchers() { return {
|
|
@@ -6265,7 +6265,99 @@ const PosSettingOfflineCache = class {
|
|
|
6265
6265
|
};
|
|
6266
6266
|
PosSettingOfflineCache.style = posSettingOfflineCacheCss();
|
|
6267
6267
|
|
|
6268
|
-
|
|
6268
|
+
// src/components/divider/divider.styles.ts
|
|
6269
|
+
var divider_styles_default = chunk_ZGGPD2XJ.i`
|
|
6270
|
+
:host {
|
|
6271
|
+
--color: var(--sl-panel-border-color);
|
|
6272
|
+
--width: var(--sl-panel-border-width);
|
|
6273
|
+
--spacing: var(--sl-spacing-medium);
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6276
|
+
:host(:not([vertical])) {
|
|
6277
|
+
display: block;
|
|
6278
|
+
border-top: solid var(--width) var(--color);
|
|
6279
|
+
margin: var(--spacing) 0;
|
|
6280
|
+
}
|
|
6281
|
+
|
|
6282
|
+
:host([vertical]) {
|
|
6283
|
+
display: inline-block;
|
|
6284
|
+
height: 100%;
|
|
6285
|
+
border-left: solid var(--width) var(--color);
|
|
6286
|
+
margin: 0 var(--spacing);
|
|
6287
|
+
}
|
|
6288
|
+
`;
|
|
6289
|
+
|
|
6290
|
+
var SlDivider = class extends chunk_ZGGPD2XJ.ShoelaceElement {
|
|
6291
|
+
constructor() {
|
|
6292
|
+
super(...arguments);
|
|
6293
|
+
this.vertical = false;
|
|
6294
|
+
}
|
|
6295
|
+
connectedCallback() {
|
|
6296
|
+
super.connectedCallback();
|
|
6297
|
+
this.setAttribute("role", "separator");
|
|
6298
|
+
}
|
|
6299
|
+
handleVerticalChange() {
|
|
6300
|
+
this.setAttribute("aria-orientation", this.vertical ? "vertical" : "horizontal");
|
|
6301
|
+
}
|
|
6302
|
+
};
|
|
6303
|
+
SlDivider.styles = [chunk_ZGGPD2XJ.component_styles_default, divider_styles_default];
|
|
6304
|
+
chunk_ZGGPD2XJ.__decorateClass([
|
|
6305
|
+
chunk_ZGGPD2XJ.n({ type: Boolean, reflect: true })
|
|
6306
|
+
], SlDivider.prototype, "vertical", 2);
|
|
6307
|
+
chunk_ZGGPD2XJ.__decorateClass([
|
|
6308
|
+
chunk_ZGGPD2XJ.watch("vertical")
|
|
6309
|
+
], SlDivider.prototype, "handleVerticalChange", 1);
|
|
6310
|
+
|
|
6311
|
+
SlDivider.define("sl-divider");
|
|
6312
|
+
|
|
6313
|
+
function openNewTab(url) {
|
|
6314
|
+
window.open(url.toString(), '_blank');
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
const posShareCss = () => `:host{display:flex;aspect-ratio:1/1;height:var(--size-8);align-items:center;justify-content:center}sl-dropdown{height:100%;width:100%;display:flex;align-items:center;justify-content:center;&::part(trigger){height:100%;width:100%}button{display:flex;align-items:center;justify-content:center;height:100%;width:100%;cursor:pointer;padding:0;margin:0}}sl-menu-item[disabled]{&::part(base){cursor:default;opacity:1}}`;
|
|
6318
|
+
|
|
6319
|
+
const PosShare = class {
|
|
6320
|
+
constructor(hostRef) {
|
|
6321
|
+
index.registerInstance(this, hostRef);
|
|
6322
|
+
this.apps = [];
|
|
6323
|
+
}
|
|
6324
|
+
async componentWillLoad() {
|
|
6325
|
+
this.os = await usePodOS.usePodOS(this.el);
|
|
6326
|
+
await this.updateApps();
|
|
6327
|
+
}
|
|
6328
|
+
async updateApps() {
|
|
6329
|
+
const thing = this.os.store.get(this.uri);
|
|
6330
|
+
this.apps = this.os.proposeAppsFor(thing);
|
|
6331
|
+
}
|
|
6332
|
+
onSelect(e) {
|
|
6333
|
+
const { value } = e.detail.item;
|
|
6334
|
+
if (value === 'copy-uri') {
|
|
6335
|
+
navigator.clipboard.writeText(this.uri);
|
|
6336
|
+
}
|
|
6337
|
+
else {
|
|
6338
|
+
openNewTab(value.urlTemplate.expand({ uri: this.uri }));
|
|
6339
|
+
}
|
|
6340
|
+
}
|
|
6341
|
+
render() {
|
|
6342
|
+
return (index.h("sl-dropdown", { key: '29aa438dc2598ae0ca874cebbddb56798587d03a' }, index.h("button", { key: 'e3faedf0eb0613563281634ce597c7c6feaf6eee', slot: "trigger", "aria-label": "Share", part: "button" }, index.h("sl-icon", { key: '6b932bd7a91f47a6e406e99b074ecb3108a1c611', name: "share" })), index.h("sl-menu", { key: 'e17beb4fc2709ec701618b26f446964460ffe2e1' }, index.h("sl-menu-item", { key: '34cef924cd9a503f87214df50cb6ec0ecc6402ed', value: "copy-uri" }, index.h("sl-icon", { key: 'db7910538c61bf6ad0e9591f77f353ff5209933e', slot: "prefix", name: "copy" }), "Copy URI"), this.apps.length > 0 && index.h(OpenWithApps, { key: '5ae82ba277c26ce5d99ddb68ff6616c5a3c43d96', apps: this.apps }))));
|
|
6343
|
+
}
|
|
6344
|
+
get el() { return index.getElement(this); }
|
|
6345
|
+
static get watchers() { return {
|
|
6346
|
+
"uri": [{
|
|
6347
|
+
"updateApps": 0
|
|
6348
|
+
}]
|
|
6349
|
+
}; }
|
|
6350
|
+
};
|
|
6351
|
+
function OpenWithApps({ apps }) {
|
|
6352
|
+
return [
|
|
6353
|
+
index.h("sl-divider", null),
|
|
6354
|
+
index.h("sl-menu-item", { disabled: true }, "Open with..."),
|
|
6355
|
+
apps.map(it => index.h("sl-menu-item", { value: it }, it.name)),
|
|
6356
|
+
];
|
|
6357
|
+
}
|
|
6358
|
+
PosShare.style = posShareCss();
|
|
6359
|
+
|
|
6360
|
+
const posToolSelectCss = () => `:host { --button-size: var(--size-16); display: block; position: sticky; align-self: flex-start; top: 0; overflow: auto; min-width: var(--button-size); z-index: var(--layer-1); } [role='tablist'] { display: flex; flex-direction: column; justify-content: center; border-right: var(--size-px) solid var(--pos-border-color); button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: var(--size-6); position: relative; overflow: hidden; outline: none; border: none; width: var(--button-size); min-width: var(--button-size); height: var(--button-size); min-height: var(--button-size); color: var(--pos-normal-text-color); background-color: var(--pos-background-color); &::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 100%; background: color-mix(in srgb, var(--pos-primary-color), transparent 50%); transform: translate(-50%, -50%); opacity: 1; } &:active::after, &:focus::after { width: calc(var(--button-size) * 1.5); height: calc(var(--button-size) * 1.5); opacity: 0; transition: width 0.5s ease-out, height 0.5s ease-out, opacity 1s ease-out; } &:focus-visible { border: var(--size-px) solid var(--pos-primary-color); } @media (min-width: 640px) { &[aria-selected] { border-right: var(--size-1) solid var(--pos-primary-color); } } .text { font-size: var(--size-3); white-space: nowrap; text-overflow: ellipsis; width: 100%; overflow: hidden; } } } @media (max-width: 640px) { :host { position: fixed; top: unset; bottom: 0; width: 100dvw; } [role='tablist'] { flex-direction: row; background-color: var(--pos-background-color); border-top: var(--size-px) solid var(--pos-border-color); button { &[aria-selected] { border-top: var(--size-1) solid var(--pos-primary-color); } } } } `;
|
|
6269
6361
|
|
|
6270
6362
|
const PosToolSelect = class {
|
|
6271
6363
|
constructor(hostRef) {
|
|
@@ -6288,7 +6380,7 @@ const PosToolSelect = class {
|
|
|
6288
6380
|
};
|
|
6289
6381
|
PosToolSelect.style = posToolSelectCss();
|
|
6290
6382
|
|
|
6291
|
-
const posTypeIndexEntriesCss = () => `dl {
|
|
6383
|
+
const posTypeIndexEntriesCss = () => `dl { > * { display: flex; flex-direction: column; gap: var(--size-1); } display: flex; flex-direction: column; gap: var(--size-4); dd { margin: 0; } } `;
|
|
6292
6384
|
|
|
6293
6385
|
const PosTypeIndexEntries = class {
|
|
6294
6386
|
constructor(hostRef) {
|
|
@@ -18561,7 +18653,7 @@ const PosUpload = class {
|
|
|
18561
18653
|
}
|
|
18562
18654
|
}
|
|
18563
18655
|
render() {
|
|
18564
|
-
return index.h("div", { key: '
|
|
18656
|
+
return index.h("div", { key: 'bba1889322d2bb688881bcab1797dbc2a325e4e3', class: "container", ref: el => (this.uppy = el) });
|
|
18565
18657
|
}
|
|
18566
18658
|
};
|
|
18567
18659
|
PosUpload.style = posUploadCss();
|
|
@@ -18717,51 +18809,6 @@ chunk_ZGGPD2XJ.__decorateClass([
|
|
|
18717
18809
|
|
|
18718
18810
|
SlAvatar.define("sl-avatar");
|
|
18719
18811
|
|
|
18720
|
-
// src/components/divider/divider.styles.ts
|
|
18721
|
-
var divider_styles_default = chunk_ZGGPD2XJ.i`
|
|
18722
|
-
:host {
|
|
18723
|
-
--color: var(--sl-panel-border-color);
|
|
18724
|
-
--width: var(--sl-panel-border-width);
|
|
18725
|
-
--spacing: var(--sl-spacing-medium);
|
|
18726
|
-
}
|
|
18727
|
-
|
|
18728
|
-
:host(:not([vertical])) {
|
|
18729
|
-
display: block;
|
|
18730
|
-
border-top: solid var(--width) var(--color);
|
|
18731
|
-
margin: var(--spacing) 0;
|
|
18732
|
-
}
|
|
18733
|
-
|
|
18734
|
-
:host([vertical]) {
|
|
18735
|
-
display: inline-block;
|
|
18736
|
-
height: 100%;
|
|
18737
|
-
border-left: solid var(--width) var(--color);
|
|
18738
|
-
margin: 0 var(--spacing);
|
|
18739
|
-
}
|
|
18740
|
-
`;
|
|
18741
|
-
|
|
18742
|
-
var SlDivider = class extends chunk_ZGGPD2XJ.ShoelaceElement {
|
|
18743
|
-
constructor() {
|
|
18744
|
-
super(...arguments);
|
|
18745
|
-
this.vertical = false;
|
|
18746
|
-
}
|
|
18747
|
-
connectedCallback() {
|
|
18748
|
-
super.connectedCallback();
|
|
18749
|
-
this.setAttribute("role", "separator");
|
|
18750
|
-
}
|
|
18751
|
-
handleVerticalChange() {
|
|
18752
|
-
this.setAttribute("aria-orientation", this.vertical ? "vertical" : "horizontal");
|
|
18753
|
-
}
|
|
18754
|
-
};
|
|
18755
|
-
SlDivider.styles = [chunk_ZGGPD2XJ.component_styles_default, divider_styles_default];
|
|
18756
|
-
chunk_ZGGPD2XJ.__decorateClass([
|
|
18757
|
-
chunk_ZGGPD2XJ.n({ type: Boolean, reflect: true })
|
|
18758
|
-
], SlDivider.prototype, "vertical", 2);
|
|
18759
|
-
chunk_ZGGPD2XJ.__decorateClass([
|
|
18760
|
-
chunk_ZGGPD2XJ.watch("vertical")
|
|
18761
|
-
], SlDivider.prototype, "handleVerticalChange", 1);
|
|
18762
|
-
|
|
18763
|
-
SlDivider.define("sl-divider");
|
|
18764
|
-
|
|
18765
18812
|
const posUserMenuCss = () => `button{display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:none;cursor:pointer;border-radius:50%;pos-picture{--width:40px;--height:40px;--border-radius:50%}sl-avatar{--size:40px}}sl-dropdown{display:block}`;
|
|
18766
18813
|
|
|
18767
18814
|
const PosUserMenu = class {
|
|
@@ -18787,7 +18834,7 @@ const PosUserMenu = class {
|
|
|
18787
18834
|
}
|
|
18788
18835
|
render() {
|
|
18789
18836
|
if (!this.webId)
|
|
18790
|
-
return null;
|
|
18837
|
+
return null;
|
|
18791
18838
|
return (index.h("pos-resource", { uri: this.webId }, index.h("sl-dropdown", null, index.h("button", { slot: "trigger", "aria-label": "User menu" }, index.h("pos-picture", { "no-upload": true }, index.h("sl-avatar", null))), index.h("sl-menu", null, index.h("sl-menu-item", { value: "dashboard" }, "Dashboard"), index.h("sl-menu-item", { value: "profile" }, index.h("pos-label", null)), index.h("sl-menu-item", { value: "settings" }, "Settings"), index.h("sl-divider", null), index.h("sl-menu-item", { value: "logout" }, "Logout")))));
|
|
18792
18839
|
}
|
|
18793
18840
|
};
|
|
@@ -18819,6 +18866,7 @@ exports.pos_rich_link = PosRichLink;
|
|
|
18819
18866
|
exports.pos_router = PosRouter;
|
|
18820
18867
|
exports.pos_select_term = PosSelectTerm;
|
|
18821
18868
|
exports.pos_setting_offline_cache = PosSettingOfflineCache;
|
|
18869
|
+
exports.pos_share = PosShare;
|
|
18822
18870
|
exports.pos_tool_select = PosToolSelect;
|
|
18823
18871
|
exports.pos_type_index_entries = PosTypeIndexEntries;
|
|
18824
18872
|
exports.pos_type_router = PosTypeRouter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.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-CtUr8eOE.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-CtUr8eOE.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-CtUr8eOE.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,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
4
|
var useResource = require('./useResource-IN7KmaP3.js');
|
|
5
5
|
|
|
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
|
|
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}}`;
|
|
7
7
|
|
|
8
8
|
const PosAttachments = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
|
+
|
|
5
|
+
const PosCase = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
index.registerInstance(this, hostRef);
|
|
8
|
+
this.error = null;
|
|
9
|
+
}
|
|
10
|
+
componentWillLoad() {
|
|
11
|
+
const templateElement = this.host.querySelector('template');
|
|
12
|
+
if (templateElement == null) {
|
|
13
|
+
this.error = 'No template element found';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
if (this.error)
|
|
18
|
+
return this.error;
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
get host() { return index.getElement(this); }
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.pos_case = PosCase;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
|
+
var index$1 = require('./index-LDTTta4S.js');
|
|
5
5
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
6
6
|
|
|
7
7
|
const posContainerContentsCss = () => `ul{list-style:none;padding:0;margin:0}li{padding:0;margin:0}`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
4
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
5
|
-
require('./chunk.ZGGPD2XJ-
|
|
6
|
-
require('./chunk.URTPIBTY-
|
|
5
|
+
require('./chunk.ZGGPD2XJ-DZsyTFqB.js');
|
|
6
|
+
require('./chunk.URTPIBTY-FtbhZr1d.js');
|
|
7
7
|
var usePodOS = require('./usePodOS-BnFzjtlx.js');
|
|
8
|
-
require('./class-map-
|
|
8
|
+
require('./class-map-CF_MMTnq.js');
|
|
9
9
|
|
|
10
10
|
function selectIconForTypes(types) {
|
|
11
11
|
if (containsType(types, 'http://www.w3.org/ns/ldp#Container')) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var chunk_XQ2OKYYA = require('./chunk.XQ2OKYYA-
|
|
5
|
-
require('./chunk.ZGGPD2XJ-
|
|
6
|
-
require('./class-map-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
|
+
var chunk_XQ2OKYYA = require('./chunk.XQ2OKYYA-BpcNJ_Ey.js');
|
|
5
|
+
require('./chunk.ZGGPD2XJ-DZsyTFqB.js');
|
|
6
|
+
require('./class-map-CF_MMTnq.js');
|
|
7
7
|
|
|
8
8
|
const posDocumentCss = () => `iframe{background-color:var(--pos-background-color);width:100%;height:100vh}.error{display:flex;opacity:0.8;background:repeating-linear-gradient(-45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px);flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error{color:#282828;font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}.skeleton{display:flex;gap:var(--size-2);flex-direction:column;sl-skeleton{&:nth-child(2){width:95%}&:nth-child(4){width:90%}&:last-child{width:50%}}}`;
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
4
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
5
5
|
var PodOsAware = require('./PodOsAware-_Lsp4KsV.js');
|
|
6
6
|
var index$1 = require('./index-DlHQ3blV.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./index-
|
|
3
|
+
var index$1 = require('./index-CtUr8eOE.js');
|
|
4
4
|
var index = require('./index-DlHQ3blV.js');
|
|
5
|
-
require('./chunk.ZGGPD2XJ-
|
|
5
|
+
require('./chunk.ZGGPD2XJ-DZsyTFqB.js');
|
|
6
6
|
|
|
7
7
|
// ::- Persistent data structure representing an ordered mapping from
|
|
8
8
|
// strings to values, with some convenient update methods.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
4
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
5
5
|
|
|
6
6
|
const posRelationsCss = () => `: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)}dd{padding:0;margin:0}dl{display:flex;flex-direction:column;gap:var(--size-1);padding:0;margin:0}dt{margin-bottom:var(--size-1)}.predicate-values:nth-child(odd){background-color:var(--background-color-odd)}.predicate-values:nth-child(even){background-color:var(--background-color-even)}.predicate-values{display:flex;flex-direction:column;border:var(--size-px) solid var(--border-color);padding:var(--size-2);gap:var(--size-1);.values{display:flex;flex-direction:column;gap:var(--size-3)}}pos-rich-link{--background-color:inherit}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
|
+
var index$1 = require('./index-LDTTta4S.js');
|
|
5
5
|
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
6
6
|
|
|
7
7
|
const posSubjectsCss = () => `: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{display:flex;flex-direction:column;gap:var(--size-2);margin:0;padding:0;li{border:var(--size-px) solid var(--border-color);padding:var(--size-4);list-style-type:none;&:nth-child(even){background-color:var(--background-color-even)}&:nth-child(odd){background-color:var(--background-color-odd)}}}`;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
|
+
var ResourceAware = require('./ResourceAware-uqh9ZRDt.js');
|
|
5
|
+
|
|
6
|
+
const PosSwitch = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
index.registerInstance(this, hostRef);
|
|
9
|
+
this.subscribeResource = index.createEvent(this, "pod-os:resource", 7);
|
|
10
|
+
this.error = null;
|
|
11
|
+
this.receiveResource = (resource) => {
|
|
12
|
+
this.resource = resource;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
componentWillLoad() {
|
|
16
|
+
ResourceAware.subscribeResource(this);
|
|
17
|
+
const caseElements = this.host.querySelectorAll('pos-case');
|
|
18
|
+
if (caseElements.length == 0) {
|
|
19
|
+
this.error = 'No pos-case elements found';
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
this.caseElements = caseElements;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
test(caseElement) {
|
|
26
|
+
let state = null;
|
|
27
|
+
if (caseElement.getAttribute('if-typeof') !== null) {
|
|
28
|
+
state = this.resource
|
|
29
|
+
.types()
|
|
30
|
+
.map(x => x.uri)
|
|
31
|
+
.includes(caseElement.getAttribute('if-typeof'));
|
|
32
|
+
}
|
|
33
|
+
if (caseElement.getAttribute('not') != null) {
|
|
34
|
+
state = !state;
|
|
35
|
+
}
|
|
36
|
+
return state;
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
if (this.error) {
|
|
40
|
+
return this.error;
|
|
41
|
+
}
|
|
42
|
+
if (!this.resource) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
let state = null;
|
|
46
|
+
let activeElements = [];
|
|
47
|
+
this.caseElements.forEach(el => {
|
|
48
|
+
const elemState = this.test(el);
|
|
49
|
+
const includeCondition = state !== true || el.getAttribute('else') === null;
|
|
50
|
+
if (elemState && includeCondition) {
|
|
51
|
+
state = elemState;
|
|
52
|
+
activeElements.push(el);
|
|
53
|
+
}
|
|
54
|
+
if (elemState === null && includeCondition) {
|
|
55
|
+
activeElements.push(el);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
const activeElementsContent = activeElements.map(el => el.querySelector('template').innerHTML).join('\n');
|
|
59
|
+
return index.h(index.Host, { innerHTML: activeElementsContent });
|
|
60
|
+
}
|
|
61
|
+
get host() { return index.getElement(this); }
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.pos_switch = PosSwitch;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtUr8eOE.js');
|
|
4
4
|
var usePodOS = require('./usePodOS-BnFzjtlx.js');
|
|
5
5
|
var useResource = require('./useResource-IN7KmaP3.js');
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ const PosToolAttachments = class {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
var _a;
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: '90a688233dde6bed413d57c11d89833629e1e2c8' }, index.h("section", { key: 'd47427736806216b35cb5e77bcabf12b82a03b31' }, index.h("article", { key: 'a77c2f9e41165effdc6e41fed79fa6b48dcc753e' }, index.h("h2", { key: '5e4d9a23ceb3c88075ef7785ca1b6fba201714ca' }, "Attachments"), index.h("pos-attachments", { key: '6a1001d633b0cad66178818b7a32c76ebbc4e46c', ref: it => (this.attachmentsElement = it) }))), index.h("section", { key: 'ea6c933f2a5fb67d6e63ca799c14920361eafe1f' }, ((_a = this.resource) === null || _a === void 0 ? void 0 : _a.editable) ? (index.h("pos-upload", { accept: ['*/*'], uploader: file => {
|
|
24
24
|
const result = this.os.attachments().uploadAndAddAttachment(this.resource, file);
|
|
25
25
|
result.map(it => {
|
|
26
26
|
this.attachmentsElement.addToList({
|