@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.
Files changed (140) hide show
  1. package/dist/cjs/{chunk.URTPIBTY-DdK9pL5v.js → chunk.URTPIBTY-FtbhZr1d.js} +2 -2
  2. package/dist/cjs/{chunk.XQ2OKYYA-DEkhm1i7.js → chunk.XQ2OKYYA-BpcNJ_Ey.js} +3 -3
  3. package/dist/cjs/{chunk.ZGGPD2XJ-uKZZdqOH.js → chunk.ZGGPD2XJ-DZsyTFqB.js} +1 -1
  4. package/dist/cjs/{class-map-DAZXfKKA.js → class-map-CF_MMTnq.js} +1 -1
  5. package/dist/cjs/elements.cjs.js +3 -3
  6. package/dist/cjs/{index-DCpu_nnH.js → index-CtUr8eOE.js} +525 -1988
  7. package/dist/cjs/{index-FUnpyb19.js → index-LDTTta4S.js} +863 -551
  8. package/dist/cjs/{jsonld-V2RB47OZ-BerQ9IRa.js → jsonld-V2RB47OZ-BWMHCZBW.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +6 -6
  11. package/dist/cjs/{pos-add-new-thing_31.cjs.entry.js → pos-add-new-thing_32.cjs.entry.js} +109 -61
  12. package/dist/cjs/pos-app-document-viewer.cjs.entry.js +1 -1
  13. package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
  14. package/dist/cjs/pos-app-image-viewer.cjs.entry.js +1 -1
  15. package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
  16. package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
  17. package/dist/cjs/pos-attachments.cjs.entry.js +2 -2
  18. package/dist/cjs/pos-case.cjs.entry.js +24 -0
  19. package/dist/cjs/pos-container-contents.cjs.entry.js +2 -2
  20. package/dist/cjs/pos-container-item_3.cjs.entry.js +4 -4
  21. package/dist/cjs/pos-document.cjs.entry.js +4 -4
  22. package/dist/cjs/pos-list.cjs.entry.js +1 -1
  23. package/dist/cjs/pos-markdown-document.cjs.entry.js +2 -2
  24. package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
  25. package/dist/cjs/pos-subjects.cjs.entry.js +2 -2
  26. package/dist/cjs/pos-switch.cjs.entry.js +64 -0
  27. package/dist/cjs/pos-tool-attachments.cjs.entry.js +2 -2
  28. package/dist/cjs/pos-value.cjs.entry.js +1 -1
  29. package/dist/collection/collection-manifest.json +4 -1
  30. package/dist/collection/components/pos-app/pos-app.js +2 -1
  31. package/dist/collection/components/pos-attachments/pos-attachments.js +2 -1
  32. package/dist/collection/components/pos-container-contents/pos-create-new-container-item/pos-create-new-container-item.js +4 -2
  33. package/dist/collection/components/pos-markdown-document/pos-markdown-document.js +2 -1
  34. package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.css +42 -22
  35. package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js +3 -2
  36. package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +1 -1
  37. package/dist/collection/components/pos-router/pos-router.js +1 -1
  38. package/dist/collection/components/pos-select-term/pos-select-term.js +1 -1
  39. package/dist/collection/components/pos-share/openNewTab.js +3 -0
  40. package/dist/collection/components/pos-share/pos-share.css +36 -0
  41. package/dist/collection/components/pos-share/pos-share.js +100 -0
  42. package/dist/collection/components/pos-switch/pos-case/pos-case.js +88 -0
  43. package/dist/collection/components/pos-switch/pos-switch.js +89 -0
  44. package/dist/collection/components/pos-tool-select/pos-tool-select.js +6 -3
  45. package/dist/collection/components/pos-upload/pos-upload.js +7 -4
  46. package/dist/collection/components/pos-user-menu/pos-user-menu.js +1 -1
  47. package/dist/collection/tools/pos-tool-attachments/pos-tool-attachments.js +1 -1
  48. package/dist/components/chunk.IVVHNXMC.js +20 -0
  49. package/dist/components/index.js +1 -1
  50. package/dist/components/index2.js +2 -2
  51. package/dist/components/pos-add-literal-value2.js +1 -1
  52. package/dist/components/pos-app-browser.js +1 -1
  53. package/dist/components/pos-attachments2.js +1 -1
  54. package/dist/components/pos-case.d.ts +11 -0
  55. package/dist/components/pos-case.js +1 -0
  56. package/dist/components/pos-make-findable2.js +1 -1
  57. package/dist/components/pos-navigation-bar2.js +1 -1
  58. package/dist/components/pos-navigation2.js +1 -1
  59. package/dist/components/pos-new-thing-form2.js +1 -1
  60. package/dist/components/pos-router2.js +1 -1
  61. package/dist/components/pos-select-term2.js +1 -1
  62. package/dist/components/pos-share.d.ts +11 -0
  63. package/dist/components/pos-share.js +1 -0
  64. package/dist/components/pos-share2.js +1 -0
  65. package/dist/components/pos-switch.d.ts +11 -0
  66. package/dist/components/pos-switch.js +1 -0
  67. package/dist/components/pos-tool-attachments.js +1 -1
  68. package/dist/components/pos-tool-select2.js +1 -1
  69. package/dist/components/pos-type-index-entries2.js +1 -1
  70. package/dist/components/pos-upload2.js +1 -1
  71. package/dist/components/pos-user-menu2.js +6 -25
  72. package/dist/elements/elements.esm.js +1 -1
  73. package/dist/elements/{p-9ad80b52.entry.js → p-07347eaf.entry.js} +1 -1
  74. package/dist/elements/{p-a9a18aa8.entry.js → p-23465966.entry.js} +1 -1
  75. package/dist/elements/{p-c8ee910c.entry.js → p-3ab681fe.entry.js} +1 -1
  76. package/dist/elements/{p-dff14248.entry.js → p-43ec0395.entry.js} +1 -1
  77. package/dist/elements/p-48f3b092.entry.js +1 -0
  78. package/dist/elements/{p-fe628201.entry.js → p-5b3f911d.entry.js} +1 -1
  79. package/dist/elements/{p-6561f1b7.entry.js → p-5d3c9c45.entry.js} +1 -1
  80. package/dist/elements/p-76e4882d.entry.js +1 -0
  81. package/dist/elements/{p-701f2c84.entry.js → p-780b0e14.entry.js} +34 -34
  82. package/dist/elements/p-9827b860.entry.js +1 -0
  83. package/dist/elements/p-98f9f7d6.entry.js +1 -0
  84. package/dist/elements/p-BKjkoLi4.js +2 -0
  85. package/dist/elements/{p-BkAnMOpW.js → p-Bc1EKYmT.js} +4 -4
  86. package/dist/elements/{p-Doy_38_j.js → p-CdRXVHZH.js} +1 -1
  87. package/dist/elements/p-CelEckSK.js +11 -0
  88. package/dist/elements/p-DEDHdpnD.js +67 -0
  89. package/dist/elements/{p-CrxYqX8r.js → p-Db6M_T3c.js} +7 -7
  90. package/dist/elements/{p-a20b72d8.entry.js → p-c0a8227e.entry.js} +1 -1
  91. package/dist/elements/{p-0e7413e6.entry.js → p-d56da833.entry.js} +1 -1
  92. package/dist/elements/{p-3e18b5dd.entry.js → p-db535410.entry.js} +1 -1
  93. package/dist/elements/p-df626ff5.entry.js +1 -0
  94. package/dist/elements/{p-b5d64c6f.entry.js → p-e2b0460d.entry.js} +1 -1
  95. package/dist/elements/{p-9b74c400.entry.js → p-e3e41963.entry.js} +1 -1
  96. package/dist/elements/{p-b363349c.entry.js → p-f5eacaa1.entry.js} +1 -1
  97. package/dist/elements/{p-52a612ed.entry.js → p-f61ab5a9.entry.js} +1 -1
  98. package/dist/elements/{p-8q-RA2Uq.js → p-k0sEkqnd.js} +3 -3
  99. package/dist/esm/{chunk.URTPIBTY-CNA3-SLq.js → chunk.URTPIBTY-IRBXSr44.js} +2 -2
  100. package/dist/esm/{chunk.XQ2OKYYA-CXNlpYUG.js → chunk.XQ2OKYYA-DeSebP8q.js} +3 -3
  101. package/dist/esm/{chunk.ZGGPD2XJ-BjT6fS1o.js → chunk.ZGGPD2XJ-DNRLq49v.js} +1 -1
  102. package/dist/esm/{class-map-CUYFUkXU.js → class-map-CdQEGha6.js} +1 -1
  103. package/dist/esm/elements.js +4 -4
  104. package/dist/esm/{index-DFqG64hG.js → index-BF-69-JC.js} +863 -551
  105. package/dist/esm/{index-VMHzF3uY.js → index-BKjkoLi4.js} +525 -1988
  106. package/dist/esm/{jsonld-V2RB47OZ-CaIJ08AA.js → jsonld-V2RB47OZ-CWZbzWzV.js} +1 -1
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/pos-add-literal-value_3.entry.js +6 -6
  109. package/dist/esm/{pos-add-new-thing_31.entry.js → pos-add-new-thing_32.entry.js} +109 -62
  110. package/dist/esm/pos-app-document-viewer.entry.js +1 -1
  111. package/dist/esm/pos-app-generic.entry.js +1 -1
  112. package/dist/esm/pos-app-image-viewer.entry.js +1 -1
  113. package/dist/esm/pos-app-ldp-container.entry.js +1 -1
  114. package/dist/esm/pos-app-rdf-document.entry.js +1 -1
  115. package/dist/esm/pos-attachments.entry.js +2 -2
  116. package/dist/esm/pos-case.entry.js +22 -0
  117. package/dist/esm/pos-container-contents.entry.js +2 -2
  118. package/dist/esm/pos-container-item_3.entry.js +4 -4
  119. package/dist/esm/pos-document.entry.js +4 -4
  120. package/dist/esm/pos-list.entry.js +1 -1
  121. package/dist/esm/pos-markdown-document.entry.js +2 -2
  122. package/dist/esm/pos-relations_2.entry.js +1 -1
  123. package/dist/esm/pos-subjects.entry.js +2 -2
  124. package/dist/esm/pos-switch.entry.js +62 -0
  125. package/dist/esm/pos-tool-attachments.entry.js +2 -2
  126. package/dist/esm/pos-value.entry.js +1 -1
  127. package/dist/jest-setup.js +4 -0
  128. package/dist/types/components/pos-share/openNewTab.d.ts +1 -0
  129. package/dist/types/components/pos-share/pos-share.d.ts +26 -0
  130. package/dist/types/components/pos-switch/pos-case/pos-case.d.ts +22 -0
  131. package/dist/types/components/pos-switch/pos-switch.d.ts +19 -0
  132. package/dist/types/components.d.ts +300 -74
  133. package/dist/types/stencil-public-runtime.d.ts +50 -2
  134. package/package.json +5 -4
  135. package/dist/elements/p-0a087865.entry.js +0 -1
  136. package/dist/elements/p-637a38d9.entry.js +0 -1
  137. package/dist/elements/p-8ggjG2YF.js +0 -11
  138. package/dist/elements/p-LoCE14bN.js +0 -67
  139. package/dist/elements/p-VMHzF3uY.js +0 -2
  140. package/dist/elements/p-ac17ed6a.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { _ as __commonJS } from './index-DFqG64hG.js';
1
+ import { _ as __commonJS } from './index-BF-69-JC.js';
2
2
 
3
3
  // ../node_modules/rdf-canonize/lib/IdentifierIssuer.js
4
4
  var require_IdentifierIssuer = __commonJS({
@@ -1,10 +1,10 @@
1
- import { g as globalScripts, b as bootstrapLazy } from './index-VMHzF3uY.js';
2
- export { s as setNonce } from './index-VMHzF3uY.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-BKjkoLi4.js';
2
+ export { s as setNonce } from './index-BKjkoLi4.js';
3
3
 
4
4
  const defineCustomElements = async (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
6
  await globalScripts();
7
- return bootstrapLazy([["pos-add-new-thing_31",[[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"],[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-app-generic",[[1,"pos-app-generic"]]],["pos-app-ldp-container",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-value",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document",[[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-relations_2",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects",[[1,"pos-subjects",{"data":[32]}]]],["pos-markdown-document",[[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",[[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",[[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);
7
+ return bootstrapLazy([["pos-app-generic",[[1,"pos-app-generic"]]],["pos-app-ldp-container",[[1,"pos-app-ldp-container"]]],["pos-app-rdf-document",[[1,"pos-app-rdf-document"]]],["pos-app-image-viewer",[[1,"pos-app-image-viewer",{"resource":[32]}]]],["pos-tool-attachments",[[1,"pos-tool-attachments",{"os":[32],"resource":[32]}]]],["pos-app-document-viewer",[[1,"pos-app-document-viewer",{"resource":[32]}]]],["pos-list",[[0,"pos-list",{"rel":[1],"ifTypeof":[1,"if-typeof"],"fetch":[4],"error":[32],"os":[32],"resource":[32],"items":[32],"templateString":[32]}]]],["pos-case",[[0,"pos-case",{"ifTypeof":[1,"if-typeof"],"not":[4],"else":[4],"error":[32]}]]],["pos-switch",[[0,"pos-switch",{"error":[32],"resource":[32],"caseElements":[32],"templateString":[32]}]]],["pos-value",[[1,"pos-value",{"predicate":[1],"resource":[32]}]]],["pos-attachments",[[1,"pos-attachments",{"resource":[32],"attachments":[32],"addToList":[64]}]]],["pos-container-contents",[[1,"pos-container-contents",{"container":[32],"contents":[32],"loading":[32],"createNewItem":[32]},[[0,"keydown","handleKeyDown"]]]]],["pos-document",[[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",[[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",[[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}]]],["pos-subjects",[[1,"pos-subjects",{"data":[32]}]]],["pos-markdown-document",[[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",[[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",[[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);
8
8
  };
9
9
 
10
10
  export { defineCustomElements };
@@ -1,12 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, e as Host } from './index-VMHzF3uY.js';
2
- import { l as labelFromUri } from './index-DFqG64hG.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BKjkoLi4.js';
2
+ import { l as labelFromUri } from './index-BF-69-JC.js';
3
3
  import { s as subscribePodOs } from './PodOsAware-jlzl8vRd.js';
4
4
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
5
- import './chunk.ZGGPD2XJ-BjT6fS1o.js';
6
- import './chunk.URTPIBTY-CNA3-SLq.js';
7
- import './class-map-CUYFUkXU.js';
5
+ import './chunk.ZGGPD2XJ-DNRLq49v.js';
6
+ import './chunk.URTPIBTY-IRBXSr44.js';
7
+ import './class-map-CdQEGha6.js';
8
8
 
9
- 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,\\n background-color 0.1s}`;
9
+ 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}`;
10
10
 
11
11
  const PosAddLiteralValue = class {
12
12
  constructor(hostRef) {
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h as h$4, e as Host, c as createEvent, a as getElement, i as getRenderingRef, j as forceUpdate } from './index-VMHzF3uY.js';
2
- import { i as i$5, E as E$2, T as T$3, c as component_styles_default, _ as __decorateClass, n as n$6, S as ShoelaceElement, x as x$1, d as SlIcon, r as r$4, w as watch, e as __yieldStar, f as f$5 } from './chunk.ZGGPD2XJ-BjT6fS1o.js';
3
- import { c as createStore$1, s as store, B as BrokenFile } from './chunk.XQ2OKYYA-CXNlpYUG.js';
4
- import { P as PodOS, N as NoOfflineCache, a as LabelIndex, T as TypeIndex2 } from './index-DFqG64hG.js';
1
+ import { r as registerInstance, h as h$4, H as Host, c as createEvent, a as getElement, i as getRenderingRef, j as forceUpdate } from './index-BKjkoLi4.js';
2
+ import { i as i$5, E as E$2, T as T$3, c as component_styles_default, _ as __decorateClass, n as n$6, S as ShoelaceElement, x as x$1, d as SlIcon, r as r$4, w as watch, e as __yieldStar, f as f$5 } from './chunk.ZGGPD2XJ-DNRLq49v.js';
3
+ import { c as createStore$1, s as store, B as BrokenFile } from './chunk.XQ2OKYYA-DeSebP8q.js';
4
+ import { P as PodOS, N as NoOfflineCache, a as LabelIndex, T as TypeIndex2 } from './index-BF-69-JC.js';
5
5
  import { c as cjsExports } from './index-vFMstSdt.js';
6
- import { L as LocalizeController, e as e$6, s as setDefaultAnimation, a as stopAnimations, g as getAnimation, b as animateTo, w as waitForEvent, S as SlPopup } from './chunk.URTPIBTY-CNA3-SLq.js';
7
- import { a as e$4, i as i$6, t as t$2, e as e$5 } from './class-map-CUYFUkXU.js';
6
+ import { L as LocalizeController, e as e$6, s as setDefaultAnimation, a as stopAnimations, g as getAnimation, b as animateTo, w as waitForEvent, S as SlPopup } from './chunk.URTPIBTY-IRBXSr44.js';
7
+ import { a as e$4, i as i$6, t as t$2, e as e$5 } from './class-map-CdQEGha6.js';
8
8
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
9
9
  import { s as subscribePodOs } from './PodOsAware-jlzl8vRd.js';
10
10
  import { u as usePodOS } from './usePodOS-D0uCfr1-.js';
@@ -5348,7 +5348,7 @@ __decorateClass([
5348
5348
 
5349
5349
  SlMenuItem.define("sl-menu-item");
5350
5350
 
5351
- const posMakeFindableCss = () => `button.main{display:flex;transition:width 200ms,\\n background-color 500ms,\\n color 500ms,\\n 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}}`;
5351
+ 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}}`;
5352
5352
 
5353
5353
  const PosMakeFindable = class {
5354
5354
  constructor(hostRef) {
@@ -5578,7 +5578,7 @@ const PosNavigation = class {
5578
5578
  };
5579
5579
  PosNavigation.style = posNavigationCss();
5580
5580
 
5581
- 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)}}section.current 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)}}`;
5581
+ 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)}}}`;
5582
5582
 
5583
5583
  const PosNavigationBar = class {
5584
5584
  constructor(hostRef) {
@@ -5596,7 +5596,7 @@ const PosNavigationBar = class {
5596
5596
  }
5597
5597
  render() {
5598
5598
  const ariaLabel = this.current ? `${this.current.label()} (Click to search or enter URI)` : 'Search or enter URI';
5599
- return (h$4("section", { key: '5f49aa9dad9d07550ee8ffbee90036cbc1efda55', class: "current" }, this.current && this.searchIndexReady && h$4("pos-make-findable", { key: '85974a4772aaf8cad3a11cdcd49e6df10141bfe3', uri: this.current.uri }), h$4("button", { key: '40660a3455b0f3392c68d7aea0075b102a1762a2', "aria-label": ariaLabel, onClick: () => this.onClick() }, h$4("div", { key: '9ab8922175d701f714f72aefb95745cf5ae4bb95' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon())));
5599
+ return (h$4("section", { key: '5f49aa9dad9d07550ee8ffbee90036cbc1efda55', class: "current" }, this.current && this.searchIndexReady && h$4("pos-make-findable", { key: '85974a4772aaf8cad3a11cdcd49e6df10141bfe3', uri: this.current.uri }), h$4("button", { key: '40660a3455b0f3392c68d7aea0075b102a1762a2', "aria-label": ariaLabel, onClick: () => this.onClick() }, h$4("div", { key: '9ab8922175d701f714f72aefb95745cf5ae4bb95' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon()), this.current && h$4("pos-share", { key: '3b80c1987f9f5138b11b8a106171fc73a236f426', uri: this.current.uri })));
5600
5600
  }
5601
5601
  icon() {
5602
5602
  return (h$4("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, h$4("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" })));
@@ -5624,7 +5624,7 @@ const PosNewThingForm = class {
5624
5624
  subscribePodOs(this);
5625
5625
  }
5626
5626
  render() {
5627
- return (h$4("form", { key: 'a362c5b749dd744123973987ff8b0291485b465e', method: "dialog", onSubmit: e => this.handleSubmit(e) }, h$4("label", { key: '45c78b0b48955cc157d04f547285b4ae4c19c38f', htmlFor: "type" }, "Type"), h$4("pos-select-term", { key: 'e3c3ab9abdbbb585916d95ba1aa14a066dbc5bd0', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), h$4("label", { key: 'c696f8ed862d40d3c366ef0ede5e88e574928db3', htmlFor: "name" }, "Name"), h$4("input", { key: '89e6289e24ca9d3969da97c7aeb22224db1c376c', id: "name", type: "text", value: this.name, onInput: e => this.handleChange(e) }), this.newUri ? (h$4("div", { id: "new-uri", title: "This will be the URI of the new thing" }, this.newUri)) : null, h$4("input", { key: 'b9520afef34177c6f14ab0798c045536d5661a2a', id: "create", type: "submit", value: "Create", disabled: !this.canSubmit })));
5627
+ return (h$4("form", { key: '64781cfb0e570d2368325d674c6637c581bb87c2', method: "dialog", onSubmit: e => this.handleSubmit(e) }, h$4("label", { key: '409e04f147430042eb334024fc7061574ab543cf', htmlFor: "type" }, "Type"), h$4("pos-select-term", { key: '8d5d580ee1f1e2e2c60cac0cc06798e94a0d28c3', id: "type", placeholder: "", value: this.selectedTypeUri, "onPod-os:term-selected": e => this.onTermSelected(e) }), h$4("label", { key: 'a45199618751e24b7d4a1bc13ad85c599cc93d1c', htmlFor: "name" }, "Name"), h$4("input", { key: 'bee3be7a680abbffc08caa5c549b68b1e653872d', id: "name", type: "text", value: this.name, onInput: e => this.handleChange(e) }), this.newUri ? (h$4("div", { id: "new-uri", title: "This will be the URI of the new thing" }, this.newUri)) : null, h$4("input", { key: 'e8fab4d442188f7f2f325ff7bde3dce6d3f772f6', id: "create", type: "submit", value: "Create", disabled: !this.canSubmit })));
5628
5628
  }
5629
5629
  handleChange(event) {
5630
5630
  this.name = event.target.value;
@@ -6211,7 +6211,7 @@ const PosRouter = class {
6211
6211
  this.routeChanged.emit(this.uri);
6212
6212
  }
6213
6213
  render() {
6214
- return h$4("slot", { key: '8b09de3dbbd253665cd541b9f264b0dcdc774354' });
6214
+ return h$4("slot", { key: '2775fc2835158ccd8d540e4f27edfd497eafe7a9' });
6215
6215
  }
6216
6216
  };
6217
6217
  PosRouter.style = posRouterCss();
@@ -6240,7 +6240,7 @@ const PosSelectTerm = class {
6240
6240
  this.termSelected.emit({ uri: event.target.value });
6241
6241
  }
6242
6242
  render() {
6243
- return (h$4(Host, { key: '2e995b15a3b76a13cd7e11d09670121a6191b5ce' }, h$4("input", { key: 'ad79f1b410312790d4f5cd1f398b2eec3c04aad7', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), h$4("datalist", { key: 'e3cc9ce85b75033bac29a32ca8e55c57535a9659', part: "terms", id: "terms" }, this.terms.map(term => (h$4("option", { value: term.uri }, term.shorthand))))));
6243
+ return (h$4(Host, { key: 'a4050d72acd62d907f0fd4c3b90c54194700871c' }, h$4("input", { key: '99b35c4a14a2623599ba237bb4af0b79c0761196', part: "input", list: "terms", placeholder: this.placeholder, value: this.value, onChange: ev => this.handleChange(ev) }), h$4("datalist", { key: 'd64ad5ea83200014c6de5cd4720f29922494982c', part: "terms", id: "terms" }, this.terms.map(term => (h$4("option", { value: term.uri }, term.shorthand))))));
6244
6244
  }
6245
6245
  static get delegatesFocus() { return true; }
6246
6246
  static get watchers() { return {
@@ -6263,7 +6263,99 @@ const PosSettingOfflineCache = class {
6263
6263
  };
6264
6264
  PosSettingOfflineCache.style = posSettingOfflineCacheCss();
6265
6265
 
6266
- const posToolSelectCss = () => `:host {\\n --button-size: var(--size-16);\\n display: block;\\n position: sticky;\\n align-self: flex-start;\\n top: 0;\\n overflow: auto;\\n min-width: var(--button-size);\\n z-index: var(--layer-1);\\n}\\n\\n[role='tablist'] {\\n display: flex;\\n flex-direction: column;\\n justify-content: center;\\n\\n border-right: var(--size-px) solid var(--pos-border-color);\\n\\n button {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n gap: 0;\\n font-size: var(--size-6);\\n position: relative;\\n overflow: hidden;\\n outline: none;\\n border: none;\\n width: var(--button-size);\\n min-width: var(--button-size);\\n height: var(--button-size);\\n min-height: var(--button-size);\\n color: var(--pos-normal-text-color);\\n background-color: var(--pos-background-color);\\n\\n &::after {\\n content: '';\\n position: absolute;\\n top: 50%;\\n left: 50%;\\n width: 0;\\n height: 0;\\n border-radius: 100%;\\n background: color-mix(in srgb, var(--pos-primary-color), transparent 50%);\\n transform: translate(-50%, -50%);\\n opacity: 1;\\n }\\n\\n &:active::after,\\n &:focus::after {\\n width: calc(var(--button-size) * 1.5);\\n height: calc(var(--button-size) * 1.5);\\n opacity: 0;\\n transition:\\n width 0.5s ease-out,\\n height 0.5s ease-out,\\n opacity 1s ease-out;\\n }\\n\\n &:focus-visible {\\n border: var(--size-px) solid var(--pos-primary-color);\\n }\\n\\n @media (min-width: 640px) {\\n &[aria-selected] {\\n border-right: var(--size-1) solid var(--pos-primary-color);\\n }\\n }\\n\\n .text {\\n font-size: var(--size-3);\\n white-space: nowrap;\\n text-overflow: ellipsis;\\n width: 100%;\\n overflow: hidden;\\n }\\n }\\n}\\n\\n@media (max-width: 640px) {\\n :host {\\n position: fixed;\\n top: unset;\\n bottom: 0;\\n width: 100dvw;\\n }\\n [role='tablist'] {\\n flex-direction: row;\\n background-color: var(--pos-background-color);\\n\\n border-top: var(--size-px) solid var(--pos-border-color);\\n\\n button {\\n &[aria-selected] {\\n border-top: var(--size-1) solid var(--pos-primary-color);\\n }\\n }\\n }\\n}\\n`;
6266
+ // src/components/divider/divider.styles.ts
6267
+ var divider_styles_default = i$5`
6268
+ :host {
6269
+ --color: var(--sl-panel-border-color);
6270
+ --width: var(--sl-panel-border-width);
6271
+ --spacing: var(--sl-spacing-medium);
6272
+ }
6273
+
6274
+ :host(:not([vertical])) {
6275
+ display: block;
6276
+ border-top: solid var(--width) var(--color);
6277
+ margin: var(--spacing) 0;
6278
+ }
6279
+
6280
+ :host([vertical]) {
6281
+ display: inline-block;
6282
+ height: 100%;
6283
+ border-left: solid var(--width) var(--color);
6284
+ margin: 0 var(--spacing);
6285
+ }
6286
+ `;
6287
+
6288
+ var SlDivider = class extends ShoelaceElement {
6289
+ constructor() {
6290
+ super(...arguments);
6291
+ this.vertical = false;
6292
+ }
6293
+ connectedCallback() {
6294
+ super.connectedCallback();
6295
+ this.setAttribute("role", "separator");
6296
+ }
6297
+ handleVerticalChange() {
6298
+ this.setAttribute("aria-orientation", this.vertical ? "vertical" : "horizontal");
6299
+ }
6300
+ };
6301
+ SlDivider.styles = [component_styles_default, divider_styles_default];
6302
+ __decorateClass([
6303
+ n$6({ type: Boolean, reflect: true })
6304
+ ], SlDivider.prototype, "vertical", 2);
6305
+ __decorateClass([
6306
+ watch("vertical")
6307
+ ], SlDivider.prototype, "handleVerticalChange", 1);
6308
+
6309
+ SlDivider.define("sl-divider");
6310
+
6311
+ function openNewTab(url) {
6312
+ window.open(url.toString(), '_blank');
6313
+ }
6314
+
6315
+ 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}}`;
6316
+
6317
+ const PosShare = class {
6318
+ constructor(hostRef) {
6319
+ registerInstance(this, hostRef);
6320
+ this.apps = [];
6321
+ }
6322
+ async componentWillLoad() {
6323
+ this.os = await usePodOS(this.el);
6324
+ await this.updateApps();
6325
+ }
6326
+ async updateApps() {
6327
+ const thing = this.os.store.get(this.uri);
6328
+ this.apps = this.os.proposeAppsFor(thing);
6329
+ }
6330
+ onSelect(e) {
6331
+ const { value } = e.detail.item;
6332
+ if (value === 'copy-uri') {
6333
+ navigator.clipboard.writeText(this.uri);
6334
+ }
6335
+ else {
6336
+ openNewTab(value.urlTemplate.expand({ uri: this.uri }));
6337
+ }
6338
+ }
6339
+ render() {
6340
+ return (h$4("sl-dropdown", { key: '29aa438dc2598ae0ca874cebbddb56798587d03a' }, h$4("button", { key: 'e3faedf0eb0613563281634ce597c7c6feaf6eee', slot: "trigger", "aria-label": "Share", part: "button" }, h$4("sl-icon", { key: '6b932bd7a91f47a6e406e99b074ecb3108a1c611', name: "share" })), h$4("sl-menu", { key: 'e17beb4fc2709ec701618b26f446964460ffe2e1' }, h$4("sl-menu-item", { key: '34cef924cd9a503f87214df50cb6ec0ecc6402ed', value: "copy-uri" }, h$4("sl-icon", { key: 'db7910538c61bf6ad0e9591f77f353ff5209933e', slot: "prefix", name: "copy" }), "Copy URI"), this.apps.length > 0 && h$4(OpenWithApps, { key: '5ae82ba277c26ce5d99ddb68ff6616c5a3c43d96', apps: this.apps }))));
6341
+ }
6342
+ get el() { return getElement(this); }
6343
+ static get watchers() { return {
6344
+ "uri": [{
6345
+ "updateApps": 0
6346
+ }]
6347
+ }; }
6348
+ };
6349
+ function OpenWithApps({ apps }) {
6350
+ return [
6351
+ h$4("sl-divider", null),
6352
+ h$4("sl-menu-item", { disabled: true }, "Open with..."),
6353
+ apps.map(it => h$4("sl-menu-item", { value: it }, it.name)),
6354
+ ];
6355
+ }
6356
+ PosShare.style = posShareCss();
6357
+
6358
+ 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); } } } } `;
6267
6359
 
6268
6360
  const PosToolSelect = class {
6269
6361
  constructor(hostRef) {
@@ -6286,7 +6378,7 @@ const PosToolSelect = class {
6286
6378
  };
6287
6379
  PosToolSelect.style = posToolSelectCss();
6288
6380
 
6289
- const posTypeIndexEntriesCss = () => `dl {\\n > * {\\n display: flex;\\n flex-direction: column;\\n gap: var(--size-1);\\n }\\n\\n display: flex;\\n flex-direction: column;\\n gap: var(--size-4);\\n dd {\\n margin: 0;\\n }\\n}\\n`;
6381
+ const posTypeIndexEntriesCss = () => `dl { > * { display: flex; flex-direction: column; gap: var(--size-1); } display: flex; flex-direction: column; gap: var(--size-4); dd { margin: 0; } } `;
6290
6382
 
6291
6383
  const PosTypeIndexEntries = class {
6292
6384
  constructor(hostRef) {
@@ -18559,7 +18651,7 @@ const PosUpload = class {
18559
18651
  }
18560
18652
  }
18561
18653
  render() {
18562
- return h$4("div", { key: '0f77e2cac68f5aaf1d25a429b866015160c5787b', class: "container", ref: el => (this.uppy = el) });
18654
+ return h$4("div", { key: 'bba1889322d2bb688881bcab1797dbc2a325e4e3', class: "container", ref: el => (this.uppy = el) });
18563
18655
  }
18564
18656
  };
18565
18657
  PosUpload.style = posUploadCss();
@@ -18715,51 +18807,6 @@ __decorateClass([
18715
18807
 
18716
18808
  SlAvatar.define("sl-avatar");
18717
18809
 
18718
- // src/components/divider/divider.styles.ts
18719
- var divider_styles_default = i$5`
18720
- :host {
18721
- --color: var(--sl-panel-border-color);
18722
- --width: var(--sl-panel-border-width);
18723
- --spacing: var(--sl-spacing-medium);
18724
- }
18725
-
18726
- :host(:not([vertical])) {
18727
- display: block;
18728
- border-top: solid var(--width) var(--color);
18729
- margin: var(--spacing) 0;
18730
- }
18731
-
18732
- :host([vertical]) {
18733
- display: inline-block;
18734
- height: 100%;
18735
- border-left: solid var(--width) var(--color);
18736
- margin: 0 var(--spacing);
18737
- }
18738
- `;
18739
-
18740
- var SlDivider = class extends ShoelaceElement {
18741
- constructor() {
18742
- super(...arguments);
18743
- this.vertical = false;
18744
- }
18745
- connectedCallback() {
18746
- super.connectedCallback();
18747
- this.setAttribute("role", "separator");
18748
- }
18749
- handleVerticalChange() {
18750
- this.setAttribute("aria-orientation", this.vertical ? "vertical" : "horizontal");
18751
- }
18752
- };
18753
- SlDivider.styles = [component_styles_default, divider_styles_default];
18754
- __decorateClass([
18755
- n$6({ type: Boolean, reflect: true })
18756
- ], SlDivider.prototype, "vertical", 2);
18757
- __decorateClass([
18758
- watch("vertical")
18759
- ], SlDivider.prototype, "handleVerticalChange", 1);
18760
-
18761
- SlDivider.define("sl-divider");
18762
-
18763
18810
  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}`;
18764
18811
 
18765
18812
  const PosUserMenu = class {
@@ -18785,10 +18832,10 @@ const PosUserMenu = class {
18785
18832
  }
18786
18833
  render() {
18787
18834
  if (!this.webId)
18788
- return null; //?
18835
+ return null;
18789
18836
  return (h$4("pos-resource", { uri: this.webId }, h$4("sl-dropdown", null, h$4("button", { slot: "trigger", "aria-label": "User menu" }, h$4("pos-picture", { "no-upload": true }, h$4("sl-avatar", null))), h$4("sl-menu", null, h$4("sl-menu-item", { value: "dashboard" }, "Dashboard"), h$4("sl-menu-item", { value: "profile" }, h$4("pos-label", null)), h$4("sl-menu-item", { value: "settings" }, "Settings"), h$4("sl-divider", null), h$4("sl-menu-item", { value: "logout" }, "Logout")))));
18790
18837
  }
18791
18838
  };
18792
18839
  PosUserMenu.style = posUserMenuCss();
18793
18840
 
18794
- export { PosAddNewThing as pos_add_new_thing, PosApp as pos_app, PosAppBrowser as pos_app_browser, PosAppDashboard as pos_app_dashboard, PosAppSettings as pos_app_settings, PosDescription as pos_description, PosDialog as pos_dialog, PosErrorToast as pos_error_toast, PosExampleResources as pos_example_resources, PosGettingStarted as pos_getting_started, PosImage as pos_image, PosInternalRouter as pos_internal_router, PosLabel as pos_label, PosLogin as pos_login, PosLoginForm as pos_login_form, PosMakeFindable as pos_make_findable, PosNavigation as pos_navigation, PosNavigationBar as pos_navigation_bar, PosNewThingForm as pos_new_thing_form, PosPicture as pos_picture, PosPredicate as pos_predicate, PosResource as pos_resource, PosRichLink as pos_rich_link, PosRouter as pos_router, PosSelectTerm as pos_select_term, PosSettingOfflineCache as pos_setting_offline_cache, PosToolSelect as pos_tool_select, PosTypeIndexEntries as pos_type_index_entries, PosTypeRouter as pos_type_router, PosUpload as pos_upload, PosUserMenu as pos_user_menu };
18841
+ export { PosAddNewThing as pos_add_new_thing, PosApp as pos_app, PosAppBrowser as pos_app_browser, PosAppDashboard as pos_app_dashboard, PosAppSettings as pos_app_settings, PosDescription as pos_description, PosDialog as pos_dialog, PosErrorToast as pos_error_toast, PosExampleResources as pos_example_resources, PosGettingStarted as pos_getting_started, PosImage as pos_image, PosInternalRouter as pos_internal_router, PosLabel as pos_label, PosLogin as pos_login, PosLoginForm as pos_login_form, PosMakeFindable as pos_make_findable, PosNavigation as pos_navigation, PosNavigationBar as pos_navigation_bar, PosNewThingForm as pos_new_thing_form, PosPicture as pos_picture, PosPredicate as pos_predicate, PosResource as pos_resource, PosRichLink as pos_rich_link, PosRouter as pos_router, PosSelectTerm as pos_select_term, PosSettingOfflineCache as pos_setting_offline_cache, PosShare as pos_share, PosToolSelect as pos_tool_select, PosTypeIndexEntries as pos_type_index_entries, PosTypeRouter as pos_type_router, PosUpload as pos_upload, PosUserMenu as pos_user_menu };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, e as Host } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BKjkoLi4.js';
2
2
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
3
3
 
4
4
  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,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, h, H as Host } from './index-BKjkoLi4.js';
2
2
 
3
3
  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}}}`;
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, e as Host } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BKjkoLi4.js';
2
2
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
3
3
 
4
4
  const posAppImageViewerCss = () => `pos-image{--max-width:100%}`;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, h, H as Host } from './index-BKjkoLi4.js';
2
2
 
3
3
  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%}}}`;
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, h, H as Host } from './index-BKjkoLi4.js';
2
2
 
3
3
  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%}}}`;
4
4
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, e as Host, a as getElement } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BKjkoLi4.js';
2
2
  import { u as useResource } from './useResource-yVO4JQ9P.js';
3
3
 
4
- 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,\\n 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}}`;
4
+ 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}}`;
5
5
 
6
6
  const PosAttachments = class {
7
7
  constructor(hostRef) {
@@ -0,0 +1,22 @@
1
+ import { r as registerInstance, a as getElement } from './index-BKjkoLi4.js';
2
+
3
+ const PosCase = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.error = null;
7
+ }
8
+ componentWillLoad() {
9
+ const templateElement = this.host.querySelector('template');
10
+ if (templateElement == null) {
11
+ this.error = 'No template element found';
12
+ }
13
+ }
14
+ render() {
15
+ if (this.error)
16
+ return this.error;
17
+ return null;
18
+ }
19
+ get host() { return getElement(this); }
20
+ };
21
+
22
+ export { PosCase as pos_case };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, e as Host } from './index-VMHzF3uY.js';
2
- import { L as LdpContainer } from './index-DFqG64hG.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BKjkoLi4.js';
2
+ import { L as LdpContainer } from './index-BF-69-JC.js';
3
3
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
4
4
 
5
5
  const posContainerContentsCss = () => `ul{list-style:none;padding:0;margin:0}li{padding:0;margin:0}`;
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, e as Host, a as getElement } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BKjkoLi4.js';
2
2
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
3
- import './chunk.ZGGPD2XJ-BjT6fS1o.js';
4
- import './chunk.URTPIBTY-CNA3-SLq.js';
3
+ import './chunk.ZGGPD2XJ-DNRLq49v.js';
4
+ import './chunk.URTPIBTY-IRBXSr44.js';
5
5
  import { u as usePodOS } from './usePodOS-D0uCfr1-.js';
6
- import './class-map-CUYFUkXU.js';
6
+ import './class-map-CdQEGha6.js';
7
7
 
8
8
  function selectIconForTypes(types) {
9
9
  if (containsType(types, 'http://www.w3.org/ns/ldp#Container')) {
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-VMHzF3uY.js';
2
- import { s as store, B as BrokenFile } from './chunk.XQ2OKYYA-CXNlpYUG.js';
3
- import './chunk.ZGGPD2XJ-BjT6fS1o.js';
4
- import './class-map-CUYFUkXU.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-BKjkoLi4.js';
2
+ import { s as store, B as BrokenFile } from './chunk.XQ2OKYYA-DeSebP8q.js';
3
+ import './chunk.ZGGPD2XJ-DNRLq49v.js';
4
+ import './class-map-CdQEGha6.js';
5
5
 
6
6
  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%}}}`;
7
7
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-BKjkoLi4.js';
2
2
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
3
3
  import { s as subscribePodOs } from './PodOsAware-jlzl8vRd.js';
4
4
  import { c as cjsExports } from './index-vFMstSdt.js';
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h as h$1 } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, c as createEvent, h as h$1 } from './index-BKjkoLi4.js';
2
2
  import { r as requireFilter, a as requireNot, b as requireRaceWith, d as requireArgsOrArgArray, e as requireAudit, f as requireAuditTime, g as requireBuffer, h as requireBufferCount, i as requireBufferTime, j as requireBufferToggle, k as requireBufferWhen, l as requireCatchError, m as requireCombineAll, n as requireCombineLatestAll, o as requireCombineLatest, p as requireCombineLatestWith, q as requireConcat, s as requireConcatAll, t as requireConcatMap, u as requireConcatMapTo, v as requireConcatWith, w as requireConnect, x as requireCount, y as requireDebounce, z as requireDebounceTime, A as requireDefaultIfEmpty, B as requireDelay, C as requireDelayWhen, D as requireDematerialize, E as requireDistinct, F as requireDistinctUntilChanged, G as requireDistinctUntilKeyChanged, H as requireElementAt, I as requireEndWith, J as requireEvery, K as requireExhaust, L as requireExhaustAll, M as requireExhaustMap, N as requireExpand, O as requireFinalize, P as requireFind, Q as requireFindIndex, R as requireFirst, S as requireGroupBy, T as requireIgnoreElements, U as requireIsEmpty, V as requireLast, W as requireMap, X as requireMapTo, Y as requireMaterialize, Z as requireMax, _ as requireMerge, $ as requireMergeAll, a0 as requireFlatMap, a1 as requireMergeMap, a2 as requireMergeMapTo, a3 as requireMergeScan, a4 as requireMergeWith, a5 as requireMin, a6 as requireMulticast, a7 as requireObserveOn, a8 as requireOnErrorResumeNextWith, a9 as requirePairwise, aa as requirePluck, ab as requirePublish, ac as requirePublishBehavior, ad as requirePublishLast, ae as requirePublishReplay, af as requireReduce, ag as requireRepeat, ah as requireRepeatWhen, ai as requireRetry, aj as requireRetryWhen, ak as requireRefCount, al as requireSample, am as requireSampleTime, an as requireScan, ao as requireSequenceEqual, ap as requireShare, aq as requireShareReplay, ar as requireSingle, as as requireSkip, at as requireSkipLast, au as requireSkipUntil, av as requireSkipWhile, aw as requireStartWith, ax as requireSubscribeOn, ay as requireSwitchAll, az as requireSwitchMap, aA as requireSwitchMapTo, aB as requireSwitchScan, aC as requireTake, aD as requireTakeLast, aE as requireTakeUntil, aF as requireTakeWhile, aG as requireTap, aH as requireThrottle, aI as requireThrottleTime, aJ as requireThrowIfEmpty, aK as requireTimeInterval, aL as requireTimeout, aM as requireTimeoutWith, aN as requireTimestamp, aO as requireToArray, aP as requireWindow, aQ as requireWindowCount, aR as requireWindowTime, aS as requireWindowToggle, aT as requireWindowWhen, aU as requireWithLatestFrom, aV as requireZip, aW as requireZipAll, aX as requireZipWith, c as cjsExports } from './index-vFMstSdt.js';
3
- import './chunk.ZGGPD2XJ-BjT6fS1o.js';
3
+ import './chunk.ZGGPD2XJ-DNRLq49v.js';
4
4
 
5
5
  // ::- Persistent data structure representing an ordered mapping from
6
6
  // strings to values, with some convenient update methods.
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-BKjkoLi4.js';
2
2
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
3
3
 
4
4
  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,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-VMHzF3uY.js';
2
- import { R as RdfDocument } from './index-DFqG64hG.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-BKjkoLi4.js';
2
+ import { R as RdfDocument } from './index-BF-69-JC.js';
3
3
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
4
4
 
5
5
  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,62 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BKjkoLi4.js';
2
+ import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
3
+
4
+ const PosSwitch = class {
5
+ constructor(hostRef) {
6
+ registerInstance(this, hostRef);
7
+ this.subscribeResource = createEvent(this, "pod-os:resource", 7);
8
+ this.error = null;
9
+ this.receiveResource = (resource) => {
10
+ this.resource = resource;
11
+ };
12
+ }
13
+ componentWillLoad() {
14
+ subscribeResource(this);
15
+ const caseElements = this.host.querySelectorAll('pos-case');
16
+ if (caseElements.length == 0) {
17
+ this.error = 'No pos-case elements found';
18
+ }
19
+ else {
20
+ this.caseElements = caseElements;
21
+ }
22
+ }
23
+ test(caseElement) {
24
+ let state = null;
25
+ if (caseElement.getAttribute('if-typeof') !== null) {
26
+ state = this.resource
27
+ .types()
28
+ .map(x => x.uri)
29
+ .includes(caseElement.getAttribute('if-typeof'));
30
+ }
31
+ if (caseElement.getAttribute('not') != null) {
32
+ state = !state;
33
+ }
34
+ return state;
35
+ }
36
+ render() {
37
+ if (this.error) {
38
+ return this.error;
39
+ }
40
+ if (!this.resource) {
41
+ return null;
42
+ }
43
+ let state = null;
44
+ let activeElements = [];
45
+ this.caseElements.forEach(el => {
46
+ const elemState = this.test(el);
47
+ const includeCondition = state !== true || el.getAttribute('else') === null;
48
+ if (elemState && includeCondition) {
49
+ state = elemState;
50
+ activeElements.push(el);
51
+ }
52
+ if (elemState === null && includeCondition) {
53
+ activeElements.push(el);
54
+ }
55
+ });
56
+ const activeElementsContent = activeElements.map(el => el.querySelector('template').innerHTML).join('\n');
57
+ return h(Host, { innerHTML: activeElementsContent });
58
+ }
59
+ get host() { return getElement(this); }
60
+ };
61
+
62
+ export { PosSwitch as pos_switch };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host, a as getElement } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BKjkoLi4.js';
2
2
  import { u as usePodOS } from './usePodOS-D0uCfr1-.js';
3
3
  import { u as useResource } from './useResource-yVO4JQ9P.js';
4
4
 
@@ -18,7 +18,7 @@ const PosToolAttachments = class {
18
18
  }
19
19
  render() {
20
20
  var _a;
21
- return (h(Host, { key: 'c7670fa2c000099af02d33a702a404e9889d4552' }, h("section", { key: '1b3ce82d5101ec4c0b6e6df26ede473c7287b747' }, h("article", { key: 'b9929952d801ab53a848985af7ed08c18072a662' }, h("h2", { key: 'dc39c20da1730c6ea01b32a99dc8b0680a33b6c2' }, "Attachments"), h("pos-attachments", { key: '65fd33e592be78e1a15ac9c2238321973a3f8612', ref: it => (this.attachmentsElement = it) }))), h("section", { key: '4ebe089659ed2c517440a9ff06141f332e44c56d' }, ((_a = this.resource) === null || _a === void 0 ? void 0 : _a.editable) ? (h("pos-upload", { accept: ['*/*'], uploader: file => {
21
+ return (h(Host, { key: '90a688233dde6bed413d57c11d89833629e1e2c8' }, h("section", { key: 'd47427736806216b35cb5e77bcabf12b82a03b31' }, h("article", { key: 'a77c2f9e41165effdc6e41fed79fa6b48dcc753e' }, h("h2", { key: '5e4d9a23ceb3c88075ef7785ca1b6fba201714ca' }, "Attachments"), h("pos-attachments", { key: '6a1001d633b0cad66178818b7a32c76ebbc4e46c', ref: it => (this.attachmentsElement = it) }))), h("section", { key: 'ea6c933f2a5fb67d6e63ca799c14920361eafe1f' }, ((_a = this.resource) === null || _a === void 0 ? void 0 : _a.editable) ? (h("pos-upload", { accept: ['*/*'], uploader: file => {
22
22
  const result = this.os.attachments().uploadAndAddAttachment(this.resource, file);
23
23
  result.map(it => {
24
24
  this.attachmentsElement.addToList({
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent } from './index-VMHzF3uY.js';
1
+ import { r as registerInstance, c as createEvent } from './index-BKjkoLi4.js';
2
2
  import { s as subscribeResource } from './ResourceAware-BW_CkW1K.js';
3
3
 
4
4
  const PosValue = class {
@@ -3,3 +3,7 @@ jest.mock('@shoelace-style/shoelace/dist/components/icon/icon.js', () => ({}));
3
3
  jest.mock('@shoelace-style/shoelace/dist/components/progress-bar/progress-bar.js', () => ({}));
4
4
  jest.mock('@shoelace-style/shoelace/dist/components/skeleton/skeleton.js', () => ({}));
5
5
  jest.mock('@shoelace-style/shoelace/dist/components/tooltip/tooltip.js', () => ({}));
6
+ jest.mock('@shoelace-style/shoelace/dist/components/menu/menu.js', () => ({}));
7
+ jest.mock('@shoelace-style/shoelace/dist/components/menu-item/menu-item.js', () => ({}));
8
+ jest.mock('@shoelace-style/shoelace/dist/components/divider/divider.js', () => ({}));
9
+ jest.mock('@shoelace-style/shoelace/dist/components/dropdown/dropdown.js', () => ({}));
@@ -0,0 +1 @@
1
+ export declare function openNewTab(url: string): void;