@pod-os/elements 0.37.0-rc.c8b54d1.0 → 0.37.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-DcQsb_nW.js} +2 -2
- package/dist/cjs/{chunk.XQ2OKYYA-DEkhm1i7.js → chunk.XQ2OKYYA-D224sdKt.js} +3 -3
- package/dist/cjs/{chunk.ZGGPD2XJ-uKZZdqOH.js → chunk.ZGGPD2XJ-Cj6xUx2M.js} +1 -1
- package/dist/cjs/{class-map-DAZXfKKA.js → class-map-Nx8L8ElN.js} +1 -1
- package/dist/cjs/elements.cjs.js +3 -3
- package/dist/cjs/{index-DCpu_nnH.js → index-Be_lnf0w.js} +547 -2001
- package/dist/cjs/{index-FUnpyb19.js → index-OR1wNkjG.js} +1052 -489
- package/dist/cjs/{jsonld-V2RB47OZ-BerQ9IRa.js → jsonld-V2RB47OZ-B82QNsYZ.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} +411 -227
- 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 +13 -4
- 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 +442 -2327
- 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 +5 -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-container-contents.js +10 -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 +111 -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-container-contents2.js +1 -1
- package/dist/components/pos-make-findable2.js +1 -1
- package/dist/components/pos-markdown-document2.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 +12 -3
- package/dist/components/pos-user-menu2.js +6 -25
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-6561f1b7.entry.js → p-03464a71.entry.js} +1 -1
- package/dist/elements/{p-52a612ed.entry.js → p-272209e3.entry.js} +1 -1
- package/dist/elements/{p-a9a18aa8.entry.js → p-38aa17bc.entry.js} +1 -1
- package/dist/elements/p-3a890f5f.entry.js +1 -0
- package/dist/elements/{p-9ad80b52.entry.js → p-4cd2f9da.entry.js} +1 -1
- package/dist/elements/{p-0e7413e6.entry.js → p-5126fb6e.entry.js} +1 -1
- package/dist/elements/p-53610ccd.entry.js +1 -0
- package/dist/elements/{p-b5d64c6f.entry.js → p-631976a8.entry.js} +1 -1
- package/dist/elements/{p-fe628201.entry.js → p-6d628d74.entry.js} +1 -1
- package/dist/elements/{p-b363349c.entry.js → p-7c3785d8.entry.js} +1 -1
- package/dist/elements/p-8934c5ea.entry.js +1 -0
- package/dist/elements/p-8e76e9dc.entry.js +1 -0
- package/dist/elements/{p-3e18b5dd.entry.js → p-9bf6c310.entry.js} +1 -1
- package/dist/elements/{p-Doy_38_j.js → p-BLUiM5OK.js} +1 -1
- package/dist/elements/{p-BkAnMOpW.js → p-CSTMd_cW.js} +2 -2
- package/dist/elements/{p-CrxYqX8r.js → p-CVwgVrbO.js} +7 -7
- package/dist/elements/{p-8ggjG2YF.js → p-CnIOZlf7.js} +1 -1
- package/dist/elements/p-DHl0QGLf.js +67 -0
- package/dist/elements/p-DzbCx-pP.js +2 -0
- package/dist/elements/{p-c8ee910c.entry.js → p-a1dd6b42.entry.js} +1 -1
- package/dist/elements/p-ab4eba43.entry.js +859 -0
- package/dist/elements/{p-dff14248.entry.js → p-c7032012.entry.js} +1 -1
- package/dist/elements/{p-a20b72d8.entry.js → p-d396cc56.entry.js} +1 -1
- package/dist/elements/p-dc4c38c8.entry.js +1 -0
- package/dist/elements/{p-0a087865.entry.js → p-e0660718.entry.js} +1 -1
- package/dist/elements/{p-8q-RA2Uq.js → p-mIPOXLnA.js} +3 -3
- package/dist/esm/{chunk.URTPIBTY-CNA3-SLq.js → chunk.URTPIBTY-yxgfEQ1K.js} +2 -2
- package/dist/esm/{chunk.XQ2OKYYA-CXNlpYUG.js → chunk.XQ2OKYYA-Cr3bMzqn.js} +3 -3
- package/dist/esm/{chunk.ZGGPD2XJ-BjT6fS1o.js → chunk.ZGGPD2XJ-SJISSXOc.js} +1 -1
- package/dist/esm/{class-map-CUYFUkXU.js → class-map-DEweE_Cr.js} +1 -1
- package/dist/esm/elements.js +4 -4
- package/dist/esm/{index-DFqG64hG.js → index-CXK32bJz.js} +1052 -489
- package/dist/esm/{index-VMHzF3uY.js → index-DzbCx-pP.js} +547 -2001
- package/dist/esm/{jsonld-V2RB47OZ-CaIJ08AA.js → jsonld-V2RB47OZ-BbN7F0s8.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} +411 -228
- 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 +12 -3
- 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 +442 -2327
- 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-container-contents/pos-container-contents.d.ts +2 -0
- package/dist/types/components/pos-share/openNewTab.d.ts +1 -0
- package/dist/types/components/pos-share/pos-share.d.ts +28 -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 +52 -2
- package/package.json +13 -12
- package/dist/elements/p-637a38d9.entry.js +0 -1
- package/dist/elements/p-701f2c84.entry.js +0 -850
- package/dist/elements/p-9b74c400.entry.js +0 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as s,HTMLElement as t,createEvent as e,h as o,Host as r,transformTag as i}from"@stencil/core/internal/client";import{l as a}from"./index2.js";import{s as l}from"./PodOsAware.js";import{s as n}from"./ResourceAware.js";import{d as c}from"./pos-select-term2.js";const d=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.subscribePodOs=e(this,"pod-os:init",7),this.subscribeResource=e(this,"pod-os:resource",7),this.addedLiteralValue=e(this,"pod-os:added-literal-value",7),this.error=e(this,"pod-os:error",7),this.receiveResource=s=>{this.resource=s},this.receivePodOs=async s=>{this.os=s}}setName(){}componentWillLoad(){n(this),l(this)}async save(){try{await this.os.addPropertyValue(this.resource,this.selectedTermUri,this.currentValue);const s={predicate:this.selectedTermUri,label:a(this.selectedTermUri),values:[this.currentValue]};this.addedLiteralValue.emit(s),this.currentValue=""}catch(s){this.error.emit(s)}}onTermSelected(s){this.selectedTermUri=s.detail.uri,this.valueInput.focus()}render(){var s;if(null===(s=this.resource)||void 0===s?void 0:s.editable)return o(r,null,o("sl-icon",{name:"plus-circle"}),o("pos-select-term",{placeholder:"Add literal","onPod-os:term-selected":s=>this.onTermSelected(s)}),o("input",{ref:s=>this.valueInput=s,value:this.currentValue,placeholder:"",onInput:s=>this.currentValue=s.target.value,onChange:()=>this.save()}))}static get watchers(){return{os:[{setName:0}]}}static get style(){return":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
|
|
1
|
+
import{proxyCustomElement as s,HTMLElement as t,createEvent as e,h as o,Host as r,transformTag as i}from"@stencil/core/internal/client";import{l as a}from"./index2.js";import{s as l}from"./PodOsAware.js";import{s as n}from"./ResourceAware.js";import{d as c}from"./pos-select-term2.js";const d=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.subscribePodOs=e(this,"pod-os:init",7),this.subscribeResource=e(this,"pod-os:resource",7),this.addedLiteralValue=e(this,"pod-os:added-literal-value",7),this.error=e(this,"pod-os:error",7),this.receiveResource=s=>{this.resource=s},this.receivePodOs=async s=>{this.os=s}}setName(){}componentWillLoad(){n(this),l(this)}async save(){try{await this.os.addPropertyValue(this.resource,this.selectedTermUri,this.currentValue);const s={predicate:this.selectedTermUri,label:a(this.selectedTermUri),values:[this.currentValue]};this.addedLiteralValue.emit(s),this.currentValue=""}catch(s){this.error.emit(s)}}onTermSelected(s){this.selectedTermUri=s.detail.uri,this.valueInput.focus()}render(){var s;if(null===(s=this.resource)||void 0===s?void 0:s.editable)return o(r,null,o("sl-icon",{name:"plus-circle"}),o("pos-select-term",{placeholder:"Add literal","onPod-os:term-selected":s=>this.onTermSelected(s)}),o("input",{ref:s=>this.valueInput=s,value:this.currentValue,placeholder:"",onInput:s=>this.currentValue=s.target.value,onChange:()=>this.save()}))}static get watchers(){return{os:[{setName:0}]}}static get style(){return":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,"pos-add-literal-value",{os:[32],resource:[32],currentValue:[32],selectedTermUri:[32]},void 0,{os:[{setName:0}]}]);function h(){"undefined"!=typeof customElements&&["pos-add-literal-value","pos-select-term"].forEach((s=>{switch(s){case"pos-add-literal-value":customElements.get(i(s))||customElements.define(i(s),d);break;case"pos-select-term":customElements.get(i(s))||c()}}))}export{d as P,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as e,HTMLElement as s,h as o,Host as r,transformTag as t}from"@stencil/core/internal/client";import{s as a}from"./session.js";import{d as p}from"./pos-add-new-thing2.js";import{d as i}from"./pos-app2.js";import{d as n}from"./pos-app-dashboard2.js";import{d as m}from"./pos-app-settings2.js";import{d}from"./pos-description2.js";import{d as c}from"./pos-dialog2.js";import{d as l}from"./pos-error-toast2.js";import{d as f}from"./pos-example-resources2.js";import{d as u}from"./pos-getting-started2.js";import{d as b}from"./pos-image2.js";import{d as g}from"./pos-internal-router2.js";import{d as h}from"./pos-label2.js";import{d as k}from"./pos-login2.js";import{d as j}from"./pos-login-form2.js";import{d as v}from"./pos-make-findable2.js";import{d as y}from"./pos-navigation2.js";import{d as
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as s,h as o,Host as r,transformTag as t}from"@stencil/core/internal/client";import{s as a}from"./session.js";import{d as p}from"./pos-add-new-thing2.js";import{d as i}from"./pos-app2.js";import{d as n}from"./pos-app-dashboard2.js";import{d as m}from"./pos-app-settings2.js";import{d}from"./pos-description2.js";import{d as c}from"./pos-dialog2.js";import{d as l}from"./pos-error-toast2.js";import{d as f}from"./pos-example-resources2.js";import{d as u}from"./pos-getting-started2.js";import{d as b}from"./pos-image2.js";import{d as g}from"./pos-internal-router2.js";import{d as h}from"./pos-label2.js";import{d as k}from"./pos-login2.js";import{d as j}from"./pos-login-form2.js";import{d as v}from"./pos-make-findable2.js";import{d as y}from"./pos-navigation2.js";import{d as E}from"./pos-navigation-bar2.js";import{d as w}from"./pos-new-thing-form2.js";import{d as x}from"./pos-picture2.js";import{d as L}from"./pos-predicate2.js";import{d as z}from"./pos-resource2.js";import{d as B}from"./pos-rich-link2.js";import{d as P}from"./pos-router2.js";import{d as C}from"./pos-select-term2.js";import{d as M}from"./pos-setting-offline-cache2.js";import{d as S}from"./pos-share2.js";import{d as Z}from"./pos-tool-select2.js";import{d as D}from"./pos-type-index-entries2.js";import{d as F}from"./pos-type-router2.js";import{d as I}from"./pos-upload2.js";import{d as O}from"./pos-user-menu2.js";const U=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.restorePreviousSession=!1,this.mode="standalone",this.uri=""}render(){return o(r,{key:"08b186d2f354d6c07df02707eb4ada81aef7dec3"},o("pos-app",{key:"54c372343e916ab5d77584381b3965c925ae0cd0",restorePreviousSession:this.restorePreviousSession},o("pos-error-toast",{key:"ab63e18121ca16670f81da141219a782dde0694b"},o("pos-router",{key:"69b6f3bf8ce3720c6c39cdb4be69e640e27ccc5b",mode:this.mode,"onPod-os:route-changed":e=>this.uri=e.detail},o("header",{key:"5cd3412caf13b6d99da517ae7e6f5877234e65d7"},o("pos-add-new-thing",{key:"9b83b3cf03b7038303975386176df539b35ff547",referenceUri:this.uri}),o("pos-navigation",{key:"26bfed9b1c8dd1be018babc6ef40ae42808a5c42",uri:"pod-os:dashboard"===this.uri?"":this.uri}),o("pos-login",{key:"e29f18dcde866d8ac1e317fcd7b71ef584e69034"},o("pos-user-menu",{key:"be796f0914649eb4e8525a9d8acdfd535626303c",webId:a.state.webId,slot:"if-logged-in"}))),o("main",{key:"f99dfb2d43e949528bc767b94801c99bf04a7eea"},this.mainContent()),o("footer",{key:"64744d1246356fa00da9c6b561785e2b794a7907"},o(q,{key:"a648f7f88e12c79348bda33152f2759d2b93e738"}),o("span",{key:"f22e2f9904ba517fc2e579a05018704b5ade6302"},"PodOS Browser"))))))}mainContent(){return""===this.uri?null:this.uri.startsWith("pod-os:")?o("pos-internal-router",{uri:this.uri}):o("pos-resource",{key:this.uri,uri:this.uri},o("pos-type-router",null))}static get style(){return"pos-router{margin:0;padding:0;display:flex;flex-direction:column;height:100%}pos-navigation{max-width:var(--width-lg);margin:0;min-width:var(--size-32);flex-shrink:1;}pos-add-new-thing,pos-login{flex:0 1 auto;flex-shrink:0;}header,footer{display:flex;gap:var(--size-1);height:auto;justify-content:center;align-items:center;padding:var(--size-1)}footer svg{width:var(--size-5);height:var(--size-5)}footer{font-size:var(--scale-fluid-000);.settings{padding:0 var(--size-1);text-decoration:none;background-color:var(--pos-background-color);border:1px solid var(--pos-secondary-border-color);color:var(--pos-secondary-border-color);border-radius:var(--radius-xs);&:hover{background-color:var(--pos-secondary-border-color);color:var(--pos-background-color)}}}header{flex-wrap:nowrap;padding:var(--size-1) var(--size-8)}main{flex:1;max-height:100vh;overflow:auto}@media (max-width: 640px){header{padding:var(--size-1);justify-content:space-between}footer{display:none}}"}},[0,"pos-app-browser",{restorePreviousSession:[4,"restore-previous-session"],mode:[1],uri:[32]}]),q=()=>o("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M50 350 L50 100 L200 50 L350 100 L350 350 Z",style:{fill:"#008BF8",stroke:"#008BF8","stroke-width":"70"},"stroke-linejoin":"round"}),o("path",{d:"M100 300 L100 150 L200 120 L300 150 L300 300 L130 300 L130 370 L100 370Z",style:{fill:"white",stroke:"white","stroke-width":"45"},"stroke-linejoin":"round"}),o("path",{d:"M150 250 L150 200 L200 180 L250 200 L250 250 Z",style:{fill:"#DC0073",stroke:"#DC0073","stroke-width":"20"},"stroke-linejoin":"round"})),A=U,G=function(){"undefined"!=typeof customElements&&["pos-app-browser","pos-add-new-thing","pos-app","pos-app-dashboard","pos-app-settings","pos-description","pos-dialog","pos-error-toast","pos-example-resources","pos-getting-started","pos-image","pos-internal-router","pos-label","pos-login","pos-login-form","pos-make-findable","pos-navigation","pos-navigation-bar","pos-new-thing-form","pos-picture","pos-predicate","pos-resource","pos-rich-link","pos-router","pos-select-term","pos-setting-offline-cache","pos-share","pos-tool-select","pos-type-index-entries","pos-type-router","pos-upload","pos-user-menu"].forEach((e=>{switch(e){case"pos-app-browser":customElements.get(t(e))||customElements.define(t(e),U);break;case"pos-add-new-thing":customElements.get(t(e))||p();break;case"pos-app":customElements.get(t(e))||i();break;case"pos-app-dashboard":customElements.get(t(e))||n();break;case"pos-app-settings":customElements.get(t(e))||m();break;case"pos-description":customElements.get(t(e))||d();break;case"pos-dialog":customElements.get(t(e))||c();break;case"pos-error-toast":customElements.get(t(e))||l();break;case"pos-example-resources":customElements.get(t(e))||f();break;case"pos-getting-started":customElements.get(t(e))||u();break;case"pos-image":customElements.get(t(e))||b();break;case"pos-internal-router":customElements.get(t(e))||g();break;case"pos-label":customElements.get(t(e))||h();break;case"pos-login":customElements.get(t(e))||k();break;case"pos-login-form":customElements.get(t(e))||j();break;case"pos-make-findable":customElements.get(t(e))||v();break;case"pos-navigation":customElements.get(t(e))||y();break;case"pos-navigation-bar":customElements.get(t(e))||E();break;case"pos-new-thing-form":customElements.get(t(e))||w();break;case"pos-picture":customElements.get(t(e))||x();break;case"pos-predicate":customElements.get(t(e))||L();break;case"pos-resource":customElements.get(t(e))||z();break;case"pos-rich-link":customElements.get(t(e))||B();break;case"pos-router":customElements.get(t(e))||P();break;case"pos-select-term":customElements.get(t(e))||C();break;case"pos-setting-offline-cache":customElements.get(t(e))||M();break;case"pos-share":customElements.get(t(e))||S();break;case"pos-tool-select":customElements.get(t(e))||Z();break;case"pos-type-index-entries":customElements.get(t(e))||D();break;case"pos-type-router":customElements.get(t(e))||F();break;case"pos-upload":customElements.get(t(e))||I();break;case"pos-user-menu":customElements.get(t(e))||O()}}))};export{A as PosAppBrowser,G as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as o,HTMLElement as s,h as e,Host as r,transformTag as t}from"@stencil/core/internal/client";import{d as a}from"./pos-description2.js";import{d as c}from"./pos-label2.js";import{d as n}from"./pos-resource2.js";import{d as l}from"./pos-rich-link2.js";function i(o){return new Promise((s=>{o.dispatchEvent(new CustomEvent("pod-os:resource",{bubbles:!0,composed:!0,cancelable:!0,detail:o=>{s(o)}}))}))}const d=o(class extends s{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow()}async addToList(o){this.attachments=[...this.attachments,Object.assign(Object.assign({},o),{newlyAdded:!0})]}async componentWillLoad(){this.resource=await i(this.el),this.attachments=this.resource.attachments()}render(){return 0===this.attachments.length?e(r,null,"No attachments found."):e("ul",null,this.attachments.map((o=>e("li",{class:{new:o.newlyAdded}},e("pos-rich-link",{uri:o.uri})))))}get el(){return this}static get style(){return":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
|
|
1
|
+
import{proxyCustomElement as o,HTMLElement as s,h as e,Host as r,transformTag as t}from"@stencil/core/internal/client";import{d as a}from"./pos-description2.js";import{d as c}from"./pos-label2.js";import{d as n}from"./pos-resource2.js";import{d as l}from"./pos-rich-link2.js";function i(o){return new Promise((s=>{o.dispatchEvent(new CustomEvent("pod-os:resource",{bubbles:!0,composed:!0,cancelable:!0,detail:o=>{s(o)}}))}))}const d=o(class extends s{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow()}async addToList(o){this.attachments=[...this.attachments,Object.assign(Object.assign({},o),{newlyAdded:!0})]}async componentWillLoad(){this.resource=await i(this.el),this.attachments=this.resource.attachments()}render(){return 0===this.attachments.length?e(r,null,"No attachments found."):e("ul",null,this.attachments.map((o=>e("li",{class:{new:o.newlyAdded}},e("pos-rich-link",{uri:o.uri})))))}get el(){return this}static get style(){return":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,"pos-attachments",{resource:[32],attachments:[32],addToList:[64]}]);function m(){"undefined"!=typeof customElements&&["pos-attachments","pos-description","pos-label","pos-resource","pos-rich-link"].forEach((o=>{switch(o){case"pos-attachments":customElements.get(t(o))||customElements.define(t(o),d);break;case"pos-description":customElements.get(t(o))||a();break;case"pos-label":customElements.get(t(o))||c();break;case"pos-resource":customElements.get(t(o))||n();break;case"pos-rich-link":customElements.get(t(o))||l()}}))}export{d as P,m as d,i as u}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PosCase extends Components.PosCase, HTMLElement {}
|
|
4
|
+
export const PosCase: {
|
|
5
|
+
prototype: PosCase;
|
|
6
|
+
new (): PosCase;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,transformTag as s}from"@stencil/core/internal/client";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.error=null}componentWillLoad(){null==this.host.querySelector("template")&&(this.error="No template element found")}render(){return this.error?this.error:null}get host(){return this}},[0,"pos-case",{ifTypeof:[1,"if-typeof"],not:[4],else:[4],error:[32]}]),o=n,l=function(){"undefined"!=typeof customElements&&["pos-case"].forEach((e=>{"pos-case"===e&&(customElements.get(s(e))||customElements.define(s(e),n))}))};export{o as PosCase,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as e,HTMLElement as t,createEvent as
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,createEvent as s,h as o,Host as n,transformTag as i}from"@stencil/core/internal/client";import{L as r}from"./index2.js";import{s as a}from"./ResourceAware.js";import{c}from"./index3.js";import{d as l}from"./pos-container-item2.js";import{d as m}from"./pos-container-toolbar2.js";import{d as p}from"./pos-create-new-container-item2.js";import{d as h}from"./pos-resource2.js";const u=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.subscribeResource=s(this,"pod-os:resource",7),this.contents=[],this.loading=!0,this.createNewItem=null,this.disconnected$=new c.Subject,this.receiveResource=e=>{this.container=e.assume(r),this.loading=!1,this.container.observeContains().pipe(c.takeUntil(this.disconnected$)).subscribe((e=>this.contents=e.sort(((e,t)=>e.name.localeCompare(t.name)))))}}onCreateNewFile(){this.createNewItem="file"}onCreateNewFolder(){this.createNewItem="folder"}componentWillLoad(){a(this)}handleKeyDown(e){"Escape"===e.key&&(this.createNewItem=null)}render(){if(this.loading)return null;const e=this.contents.map((e=>o("li",{key:e.uri},o("pos-resource",{lazy:!0,uri:e.uri},o("pos-container-item",null,e.name)))));return null!==this.createNewItem&&e.unshift(o("li",{key:"new-item"},o("pos-create-new-container-item",{type:this.createNewItem,container:this.container}))),o(n,null,o("pos-container-toolbar",{"onPod-os:create-new-file":()=>this.onCreateNewFile(),"onPod-os:create-new-folder":()=>this.onCreateNewFolder()}),e.length>0?o("ul",{"aria-label":"Container contents"},e):o("p",null,"The container is empty"))}disconnectedCallback(){this.disconnected$.next(),this.disconnected$.unsubscribe()}static get style(){return"ul{list-style:none;padding:0;margin:0}li{padding:0;margin:0}"}},[1,"pos-container-contents",{container:[32],contents:[32],loading:[32],createNewItem:[32]},[[0,"keydown","handleKeyDown"]]]);function d(){"undefined"!=typeof customElements&&["pos-container-contents","pos-container-item","pos-container-toolbar","pos-create-new-container-item","pos-resource"].forEach((e=>{switch(e){case"pos-container-contents":customElements.get(i(e))||customElements.define(i(e),u);break;case"pos-container-item":customElements.get(i(e))||l();break;case"pos-container-toolbar":customElements.get(i(e))||m();break;case"pos-create-new-container-item":customElements.get(i(e))||p();break;case"pos-resource":customElements.get(i(e))||h()}}))}export{u as P,d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as s,HTMLElement as t,createEvent as e,h as o,Host as i,transformTag as r}from"@stencil/core/internal/client";import{a as n}from"./index2.js";import{s as a}from"./PodOsAware.js";import{s as l}from"./session.js";import"./chunk.HVTXQL7M.js";import"./chunk.5JY5FUCG.js";import"./chunk.6CTB5ZDJ.js";import"./chunk.4TUIT776.js";import"./chunk.YHLNUJ7P.js";import{d as c}from"./pos-label2.js";import{d as h}from"./pos-resource2.js";const d=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.subscribePodOs=e(this,"pod-os:init",7),this.errorEmitter=e(this,"pod-os:error",7),this.indexUpdatedEmitter=e(this,"pod-os:search:index-updated",7),this.indexCreatedEmitter=e(this,"pod-os:search:index-created",7),this.indexes=[],this.showOptions=!1,this.isIndexed=!1,this.receivePodOs=async s=>{this.os=s,this.thing=this.os.store.get(this.uri),this.getLabelIndexes(l.state.profile),this.unsubscribeSessionChange=l.onChange("profile",(s=>{this.getLabelIndexes(s)}))}}componentWillLoad(){a(this)}disconnectedCallback(){this.unsubscribeSessionChange&&this.unsubscribeSessionChange()}updateUri(s){this.thing=this.os.store.get(s),this.isIndexed=this.checkIfIndexed(s)}checkIfIndexed(s){return this.indexes.some((t=>t.contains(s)))}getLabelIndexes(s){s&&(this.indexes=s.getPrivateLabelIndexes().map((s=>this.os.store.get(s).assume(n))),this.showOptions=this.indexes.length>1,this.isIndexed=this.checkIfIndexed(this.uri))}async onClick(s){if(s.preventDefault(),1===this.indexes.length){const s=this.indexes[0];await this.addToLabelIndex(s),this.indexUpdatedEmitter.emit(s)}else if(0===this.indexes.length){const s=await this.createDefaultLabelIndex();await this.addToLabelIndex(s),this.indexCreatedEmitter.emit(s)}}async addToLabelIndex(s){try{await this.os.addToLabelIndex(this.thing,s),this.isIndexed=!0}catch(s){this.errorEmitter.emit(s)}}async createDefaultLabelIndex(){try{return await this.os.createDefaultLabelIndex(l.state.profile)}catch(s){this.errorEmitter.emit(s)}}render(){if(!l.state.isLoggedIn||!this.uri)return null;const s="Make this findable",t=o("button",{type:"button",slot:"trigger","aria-label":s,class:{main:!0,success:this.isIndexed},onClick:s=>this.onClick(s),title:""},o(this.isIndexed?p:u,null),o("p",null,s));return this.showOptions?o(i,null,o("sl-dropdown",null,t,o("sl-menu",{role:"listbox"},this.indexes.map((s=>o("sl-menu-item",{role:"option",value:s,type:"checkbox",checked:s.contains(this.uri)},o("pos-resource",{uri:s.uri,lazy:!0},o("pos-label",null)))))))):t}async onSelect(s){const t=s.detail.item.value;s.preventDefault(),await this.addToLabelIndex(t),this.indexUpdatedEmitter.emit(t)}get el(){return this}static get watchers(){return{uri:[{updateUri:0}]}}static get style(){return"button.main{display:flex;transition:width 200ms
|
|
1
|
+
import{proxyCustomElement as s,HTMLElement as t,createEvent as e,h as o,Host as i,transformTag as r}from"@stencil/core/internal/client";import{a as n}from"./index2.js";import{s as a}from"./PodOsAware.js";import{s as l}from"./session.js";import"./chunk.HVTXQL7M.js";import"./chunk.5JY5FUCG.js";import"./chunk.6CTB5ZDJ.js";import"./chunk.4TUIT776.js";import"./chunk.YHLNUJ7P.js";import{d as c}from"./pos-label2.js";import{d as h}from"./pos-resource2.js";const d=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.subscribePodOs=e(this,"pod-os:init",7),this.errorEmitter=e(this,"pod-os:error",7),this.indexUpdatedEmitter=e(this,"pod-os:search:index-updated",7),this.indexCreatedEmitter=e(this,"pod-os:search:index-created",7),this.indexes=[],this.showOptions=!1,this.isIndexed=!1,this.receivePodOs=async s=>{this.os=s,this.thing=this.os.store.get(this.uri),this.getLabelIndexes(l.state.profile),this.unsubscribeSessionChange=l.onChange("profile",(s=>{this.getLabelIndexes(s)}))}}componentWillLoad(){a(this)}disconnectedCallback(){this.unsubscribeSessionChange&&this.unsubscribeSessionChange()}updateUri(s){this.thing=this.os.store.get(s),this.isIndexed=this.checkIfIndexed(s)}checkIfIndexed(s){return this.indexes.some((t=>t.contains(s)))}getLabelIndexes(s){s&&(this.indexes=s.getPrivateLabelIndexes().map((s=>this.os.store.get(s).assume(n))),this.showOptions=this.indexes.length>1,this.isIndexed=this.checkIfIndexed(this.uri))}async onClick(s){if(s.preventDefault(),1===this.indexes.length){const s=this.indexes[0];await this.addToLabelIndex(s),this.indexUpdatedEmitter.emit(s)}else if(0===this.indexes.length){const s=await this.createDefaultLabelIndex();await this.addToLabelIndex(s),this.indexCreatedEmitter.emit(s)}}async addToLabelIndex(s){try{await this.os.addToLabelIndex(this.thing,s),this.isIndexed=!0}catch(s){this.errorEmitter.emit(s)}}async createDefaultLabelIndex(){try{return await this.os.createDefaultLabelIndex(l.state.profile)}catch(s){this.errorEmitter.emit(s)}}render(){if(!l.state.isLoggedIn||!this.uri)return null;const s="Make this findable",t=o("button",{type:"button",slot:"trigger","aria-label":s,class:{main:!0,success:this.isIndexed},onClick:s=>this.onClick(s),title:""},o(this.isIndexed?p:u,null),o("p",null,s));return this.showOptions?o(i,null,o("sl-dropdown",null,t,o("sl-menu",{role:"listbox"},this.indexes.map((s=>o("sl-menu-item",{role:"option",value:s,type:"checkbox",checked:s.contains(this.uri)},o("pos-resource",{uri:s.uri,lazy:!0},o("pos-label",null)))))))):t}async onSelect(s){const t=s.detail.item.value;s.preventDefault(),await this.addToLabelIndex(t),this.indexUpdatedEmitter.emit(t)}get el(){return this}static get watchers(){return{uri:[{updateUri:0}]}}static get style(){return"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}}"}},[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}]}]),u=()=>o("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"})),p=()=>o("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}));function m(){"undefined"!=typeof customElements&&["pos-make-findable","pos-label","pos-resource"].forEach((s=>{switch(s){case"pos-make-findable":customElements.get(r(s))||customElements.define(r(s),d);break;case"pos-label":customElements.get(r(s))||c();break;case"pos-resource":customElements.get(r(s))||h()}}))}export{d as P,m as d}
|