@pod-os/elements 0.26.1-rc.e49d800.0 → 0.26.1-rc.f4329bf.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/app-globals-97a7ec18.js +23 -0
- package/dist/cjs/app-globals-97a7ec18.js.map +1 -0
- package/dist/cjs/elements.cjs.js +2 -2
- package/dist/cjs/ion-badge_5.cjs.entry.js +1 -1
- package/dist/cjs/ion-icon_32.cjs.entry.js +9150 -0
- package/dist/cjs/ion-icon_32.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pos-app-generic.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/collection/apps/pos-app-browser/pos-app-browser.js +2 -1
- package/dist/collection/apps/pos-app-browser/pos-app-browser.js.map +1 -1
- package/dist/collection/apps/pos-app-dashboard/pos-app-dashboard.js +1 -1
- package/dist/collection/apps/pos-app-dashboard/pos-example-resources/pos-example-resources.js +1 -1
- package/dist/collection/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.js +1 -1
- package/dist/collection/apps/pos-app-generic/pos-app-generic.js +1 -1
- package/dist/collection/apps/pos-app-ldp-container/pos-app-ldp-container.js +1 -1
- package/dist/collection/apps/pos-app-rdf-document/pos-app-rdf-document.js +1 -1
- package/dist/collection/apps/pos-app-settings/pos-app-settings.js +1 -1
- package/dist/collection/apps/pos-app-settings/pos-setting-offline-cache/pos-setting-offline-cache.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/pos-add-new-thing/pos-add-new-thing.js +1 -1
- package/dist/collection/components/pos-app/pos-app.js +1 -1
- package/dist/collection/components/pos-dialog/pos-dialog.js +15 -5
- package/dist/collection/components/pos-dialog/pos-dialog.js.map +1 -1
- package/dist/collection/components/pos-error-toast/pos-error-toast.js +1 -1
- package/dist/collection/components/pos-literals/pos-literals.js +1 -1
- package/dist/collection/components/pos-login/pos-login.js +21 -2
- package/dist/collection/components/pos-login/pos-login.js.map +1 -1
- package/dist/collection/components/pos-login-form/pos-login-form.js +1 -1
- package/dist/collection/components/pos-make-findable/pos-make-findable.css +2 -55
- package/dist/collection/components/pos-make-findable/pos-make-findable.js +15 -26
- package/dist/collection/components/pos-make-findable/pos-make-findable.js.map +1 -1
- package/dist/collection/components/pos-make-findable/shoelace.js +4 -0
- package/dist/collection/components/pos-make-findable/shoelace.js.map +1 -0
- package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js +1 -1
- package/dist/collection/components/pos-navigation/pos-navigation.js +1 -1
- package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +1 -1
- package/dist/collection/components/pos-picture/pos-picture.js +1 -1
- package/dist/collection/components/pos-picture/pos-picture.js.map +1 -1
- package/dist/collection/components/pos-rich-link/pos-rich-link.js +2 -2
- 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-user-menu/pos-user-menu.css +23 -0
- package/dist/collection/components/pos-user-menu/pos-user-menu.js +102 -0
- package/dist/collection/components/pos-user-menu/pos-user-menu.js.map +1 -0
- package/dist/collection/components/pos-user-menu/shoelace.js +6 -0
- package/dist/collection/components/pos-user-menu/shoelace.js.map +1 -0
- package/dist/collection/global.js +6 -0
- package/dist/collection/global.js.map +1 -1
- package/dist/components/chunk.HVTXQL7M.js +4775 -0
- package/dist/components/chunk.HVTXQL7M.js.map +1 -0
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/pos-add-new-thing2.js +1 -1
- package/dist/components/pos-app-browser.js +68 -61
- package/dist/components/pos-app-browser.js.map +1 -1
- package/dist/components/pos-app-dashboard2.js +1 -1
- package/dist/components/pos-app-generic.js +1 -1
- package/dist/components/pos-app-ldp-container.js +1 -1
- package/dist/components/pos-app-rdf-document.js +1 -1
- package/dist/components/pos-app-settings2.js +1 -1
- package/dist/components/pos-app2.js +1 -1
- package/dist/components/pos-dialog2.js +3 -3
- package/dist/components/pos-dialog2.js.map +1 -1
- package/dist/components/pos-error-toast2.js +1 -1
- package/dist/components/pos-example-resources2.js +1 -1
- package/dist/components/pos-getting-started2.js +1 -1
- package/dist/components/pos-literals2.js +1 -1
- package/dist/components/pos-login-form2.js +1 -1
- package/dist/components/pos-login2.js +16 -3
- package/dist/components/pos-login2.js.map +1 -1
- package/dist/components/pos-make-findable2.js +16 -21
- package/dist/components/pos-make-findable2.js.map +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-picture2.js +1 -1
- package/dist/components/pos-picture2.js.map +1 -1
- package/dist/components/pos-rich-link2.js +2 -2
- package/dist/components/pos-router2.js +1 -1
- package/dist/components/pos-select-term2.js +1 -1
- package/dist/components/pos-setting-offline-cache2.js +1 -1
- package/dist/components/pos-user-menu.d.ts +11 -0
- package/dist/components/pos-user-menu.js +8 -0
- package/dist/components/pos-user-menu.js.map +1 -0
- package/dist/components/pos-user-menu2.js +293 -0
- package/dist/components/pos-user-menu2.js.map +1 -0
- package/dist/elements/elements.css +8 -2
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/elements.esm.js.map +1 -1
- package/dist/elements/p-0d1dd954.entry.js +652 -0
- package/dist/elements/p-0d1dd954.entry.js.map +1 -0
- package/dist/elements/p-61cd1259.js +2 -0
- package/dist/elements/p-61cd1259.js.map +1 -0
- package/dist/elements/p-b1de75a4.entry.js +2 -0
- package/dist/elements/{p-178b3852.entry.js → p-c466d5bf.entry.js} +2 -2
- package/dist/elements/{p-2cda3231.entry.js → p-dbb94429.entry.js} +2 -2
- package/dist/elements/p-ff684bff.entry.js +2 -0
- package/dist/esm/app-globals-fd9221d0.js +21 -0
- package/dist/esm/app-globals-fd9221d0.js.map +1 -0
- package/dist/esm/elements.js +2 -2
- package/dist/esm/ion-badge_5.entry.js +1 -1
- package/dist/esm/ion-icon_32.entry.js +9115 -0
- package/dist/esm/ion-icon_32.entry.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/pos-app-generic.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/types/components/pos-dialog/pos-dialog.d.ts +2 -2
- package/dist/types/components/pos-login/pos-login.d.ts +4 -0
- package/dist/types/components/pos-make-findable/pos-make-findable.d.ts +6 -3
- package/dist/types/components/pos-make-findable/shoelace.d.ts +3 -0
- package/dist/types/components/pos-user-menu/pos-user-menu.d.ts +13 -0
- package/dist/types/components/pos-user-menu/shoelace.d.ts +5 -0
- package/dist/types/components.d.ts +33 -0
- package/package.json +2 -1
- package/dist/cjs/app-globals-1c06b5ae.js +0 -16
- package/dist/cjs/app-globals-1c06b5ae.js.map +0 -1
- package/dist/cjs/ion-icon_31.cjs.entry.js +0 -4144
- package/dist/cjs/ion-icon_31.cjs.entry.js.map +0 -1
- package/dist/elements/p-b80dbf24.entry.js +0 -20
- package/dist/elements/p-b80dbf24.entry.js.map +0 -1
- package/dist/elements/p-c27a94bc.entry.js +0 -2
- package/dist/elements/p-e1957ea1.entry.js +0 -2
- package/dist/elements/p-ec7a6c44.js +0 -2
- package/dist/elements/p-ec7a6c44.js.map +0 -1
- package/dist/esm/app-globals-31ecda4c.js +0 -14
- package/dist/esm/app-globals-31ecda4c.js.map +0 -1
- package/dist/esm/ion-icon_31.entry.js +0 -4110
- package/dist/esm/ion-icon_31.entry.js.map +0 -1
- /package/dist/elements/{p-e1957ea1.entry.js.map → p-b1de75a4.entry.js.map} +0 -0
- /package/dist/elements/{p-178b3852.entry.js.map → p-c466d5bf.entry.js.map} +0 -0
- /package/dist/elements/{p-2cda3231.entry.js.map → p-dbb94429.entry.js.map} +0 -0
- /package/dist/elements/{p-c27a94bc.entry.js.map → p-ff684bff.entry.js.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { i as initialize } from './ionic-global.js';
|
|
2
2
|
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
3
|
|
|
4
|
+
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
5
|
+
function updateTheme(e) {
|
|
6
|
+
document.documentElement.classList.toggle('sl-theme-dark', e.matches);
|
|
7
|
+
}
|
|
8
|
+
updateTheme(mediaQuery);
|
|
9
|
+
mediaQuery.addEventListener('change', updateTheme);
|
|
10
|
+
|
|
4
11
|
const globalFn = () => { };
|
|
5
12
|
|
|
6
13
|
const globalScripts = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;AAAA;AAEA;AAEA;;AAEA;AAEA,WAAW;;;;ACNJ,MAAM,aAAa,GAAG,MAAM;AACnC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC;AACrB,IAAIA,QAAoB,EAAE;AAC1B,IAAIC,UAAqB,EAAE;AAC3B,GAAG,CAAC,CAAC;AACL,CAAC;;","names":["elementsGlobalScript","ionicCoreGlobalScript"],"sources":["src/global.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import '@ionic/core';\n\nconst mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n\nfunction updateTheme(e) {\n document.documentElement.classList.toggle('sl-theme-dark', e.matches);\n}\n\nupdateTheme(mediaQuery);\n\nmediaQuery.addEventListener('change', updateTheme);\n","import ionicCoreGlobalScript from '/home/runner/work/PodOS/PodOS/node_modules/@ionic/core/dist/collection/global/ionic-global.js';\nimport elementsGlobalScript from '/home/runner/work/PodOS/PodOS/elements/src/global.ts';\nexport const globalScripts = () => {\n return Promise.all([\n elementsGlobalScript(),\n ionicCoreGlobalScript(),\n ]);\n};\n"],"version":3}
|
|
@@ -17,7 +17,7 @@ const PosAddNewThing = /*@__PURE__*/ proxyCustomElement(class PosAddNewThing ext
|
|
|
17
17
|
this.dialog.showModal();
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '6142a141ef03ca93a362a6b00ebe8d515c3a677a' }, h("button", { key: '72ecf353cd3a7d2d68f9ef28eb1bbe7fdb88b700', id: "new", title: "Add a new thing", onClick: () => this.openDialog() }, h("ion-icon", { key: 'bd05d75c42c10de6df519575787fc66eafb22930', name: "add-circle-outline" })), h("pos-dialog", { key: '23cf0118149704dfca16758970e4f4658e87e946', ref: el => (this.dialog = el) }, h("span", { key: '5af7b7f618cc20684c39134b5ea295400e651cb6', slot: "title" }, "Add a new thing"), h("pos-new-thing-form", { key: '895496c2f6ede3c8677d9d918e0b13582090baed', slot: "content", referenceUri: this.referenceUri }))));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return PosAddNewThingStyle0; }
|
|
23
23
|
}, [1, "pos-add-new-thing", {
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$
|
|
16
|
-
import { d as defineCustomElement$
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
22
|
-
import { d as defineCustomElement$
|
|
23
|
-
import { d as defineCustomElement$
|
|
24
|
-
import { d as defineCustomElement$
|
|
25
|
-
import { d as defineCustomElement$
|
|
26
|
-
import { d as defineCustomElement$
|
|
27
|
-
import { d as defineCustomElement$
|
|
28
|
-
import { d as defineCustomElement$
|
|
29
|
-
import { d as defineCustomElement$
|
|
30
|
-
import { d as defineCustomElement$
|
|
31
|
-
import { d as defineCustomElement$
|
|
2
|
+
import { s as store } from './session.js';
|
|
3
|
+
import { d as defineCustomElement$w } from './icon.js';
|
|
4
|
+
import { d as defineCustomElement$v } from './progress-bar.js';
|
|
5
|
+
import { d as defineCustomElement$u } from './ripple-effect.js';
|
|
6
|
+
import { d as defineCustomElement$t } from './skeleton-text.js';
|
|
7
|
+
import { d as defineCustomElement$s } from './toast.js';
|
|
8
|
+
import { d as defineCustomElement$r } from './pos-add-new-thing2.js';
|
|
9
|
+
import { d as defineCustomElement$q } from './pos-app2.js';
|
|
10
|
+
import { d as defineCustomElement$p } from './pos-app-dashboard2.js';
|
|
11
|
+
import { d as defineCustomElement$o } from './pos-app-settings2.js';
|
|
12
|
+
import { d as defineCustomElement$n } from './pos-description2.js';
|
|
13
|
+
import { d as defineCustomElement$m } from './pos-dialog2.js';
|
|
14
|
+
import { d as defineCustomElement$l } from './pos-error-toast2.js';
|
|
15
|
+
import { d as defineCustomElement$k } from './pos-example-resources2.js';
|
|
16
|
+
import { d as defineCustomElement$j } from './pos-getting-started2.js';
|
|
17
|
+
import { d as defineCustomElement$i } from './pos-image2.js';
|
|
18
|
+
import { d as defineCustomElement$h } from './pos-internal-router2.js';
|
|
19
|
+
import { d as defineCustomElement$g } from './pos-label2.js';
|
|
20
|
+
import { d as defineCustomElement$f } from './pos-login2.js';
|
|
21
|
+
import { d as defineCustomElement$e } from './pos-login-form2.js';
|
|
22
|
+
import { d as defineCustomElement$d } from './pos-make-findable2.js';
|
|
23
|
+
import { d as defineCustomElement$c } from './pos-navigation2.js';
|
|
24
|
+
import { d as defineCustomElement$b } from './pos-navigation-bar2.js';
|
|
25
|
+
import { d as defineCustomElement$a } from './pos-new-thing-form2.js';
|
|
26
|
+
import { d as defineCustomElement$9 } from './pos-picture2.js';
|
|
27
|
+
import { d as defineCustomElement$8 } from './pos-resource2.js';
|
|
28
|
+
import { d as defineCustomElement$7 } from './pos-rich-link2.js';
|
|
29
|
+
import { d as defineCustomElement$6 } from './pos-router2.js';
|
|
30
|
+
import { d as defineCustomElement$5 } from './pos-select-term2.js';
|
|
31
|
+
import { d as defineCustomElement$4 } from './pos-setting-offline-cache2.js';
|
|
32
|
+
import { d as defineCustomElement$3 } from './pos-type-router2.js';
|
|
33
|
+
import { d as defineCustomElement$2 } from './pos-user-menu2.js';
|
|
32
34
|
|
|
33
35
|
const posAppBrowserCss = "pos-router {\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\npos-navigation {\n max-width: var(--width-lg);\n margin: 0;\n min-width: var(--size-32);\n flex-shrink: 1; /* Ensure navigation can shrink */\n}\n\npos-add-new-thing,\npos-login {\n flex: 0 1 auto;\n flex-shrink: 0; /* Ensure those items don't shrink */\n}\n\nheader,\nfooter {\n display: flex;\n gap: var(--size-1);\n height: auto;\n justify-content: center;\n align-items: center;\n padding: var(--size-1);\n}\n\nfooter svg {\n width: var(--size-5);\n height: var(--size-5);\n}\n\nfooter {\n font-size: var(--scale-fluid-000);\n\n .settings {\n padding: 0 var(--size-1);\n text-decoration: none;\n background-color: var(--pos-background-color);\n border: 1px solid var(--pos-secondary-border-color);\n color: var(--pos-secondary-border-color);\n border-radius: var(--radius-xs);\n\n &:hover {\n background-color: var(--pos-secondary-border-color);\n color: var(--pos-background-color);\n }\n }\n}\n\nheader {\n flex-wrap: nowrap;\n padding: var(--size-1) var(--size-8);\n}\n\nmain {\n flex: 1;\n max-height: 100vh;\n overflow: auto;\n}\n\n@media (max-width: 640px) {\n header {\n padding: var(--size-1);\n justify-content: space-between;\n }\n}\n";
|
|
34
36
|
const PosAppBrowserStyle0 = posAppBrowserCss;
|
|
@@ -48,7 +50,7 @@ const PosAppBrowser$1 = /*@__PURE__*/ proxyCustomElement(class PosAppBrowser ext
|
|
|
48
50
|
this.uri = '';
|
|
49
51
|
}
|
|
50
52
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '08b186d2f354d6c07df02707eb4ada81aef7dec3' }, h("pos-app", { key: '54c372343e916ab5d77584381b3965c925ae0cd0', restorePreviousSession: this.restorePreviousSession }, h("pos-error-toast", { key: 'ab63e18121ca16670f81da141219a782dde0694b' }, h("pos-router", { key: '69b6f3bf8ce3720c6c39cdb4be69e640e27ccc5b', mode: this.mode, "onPod-os:route-changed": e => (this.uri = e.detail) }, h("header", { key: '5cd3412caf13b6d99da517ae7e6f5877234e65d7' }, h("pos-add-new-thing", { key: '9b83b3cf03b7038303975386176df539b35ff547', referenceUri: this.uri }), h("pos-navigation", { key: '26bfed9b1c8dd1be018babc6ef40ae42808a5c42', uri: this.uri === 'pod-os:dashboard' ? '' : this.uri }), h("pos-login", { key: 'e29f18dcde866d8ac1e317fcd7b71ef584e69034' }, h("pos-user-menu", { key: 'be796f0914649eb4e8525a9d8acdfd535626303c', webId: store.state.webId, slot: "if-logged-in" }))), h("main", { key: 'f99dfb2d43e949528bc767b94801c99bf04a7eea' }, this.mainContent()), h("footer", { key: '64744d1246356fa00da9c6b561785e2b794a7907' }, h(Logo, { key: 'a648f7f88e12c79348bda33152f2759d2b93e738' }), h("span", { key: 'f22e2f9904ba517fc2e579a05018704b5ade6302' }, "PodOS Browser")))))));
|
|
52
54
|
}
|
|
53
55
|
mainContent() {
|
|
54
56
|
if (this.uri === '') {
|
|
@@ -84,7 +86,7 @@ function defineCustomElement$1() {
|
|
|
84
86
|
if (typeof customElements === "undefined") {
|
|
85
87
|
return;
|
|
86
88
|
}
|
|
87
|
-
const components = ["pos-app-browser", "ion-icon", "ion-progress-bar", "ion-ripple-effect", "ion-skeleton-text", "ion-toast", "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-resource", "pos-rich-link", "pos-router", "pos-select-term", "pos-setting-offline-cache", "pos-type-router"];
|
|
89
|
+
const components = ["pos-app-browser", "ion-icon", "ion-progress-bar", "ion-ripple-effect", "ion-skeleton-text", "ion-toast", "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-resource", "pos-rich-link", "pos-router", "pos-select-term", "pos-setting-offline-cache", "pos-type-router", "pos-user-menu"];
|
|
88
90
|
components.forEach(tagName => { switch (tagName) {
|
|
89
91
|
case "pos-app-browser":
|
|
90
92
|
if (!customElements.get(tagName)) {
|
|
@@ -93,150 +95,155 @@ function defineCustomElement$1() {
|
|
|
93
95
|
break;
|
|
94
96
|
case "ion-icon":
|
|
95
97
|
if (!customElements.get(tagName)) {
|
|
96
|
-
defineCustomElement$
|
|
98
|
+
defineCustomElement$w();
|
|
97
99
|
}
|
|
98
100
|
break;
|
|
99
101
|
case "ion-progress-bar":
|
|
100
102
|
if (!customElements.get(tagName)) {
|
|
101
|
-
defineCustomElement$
|
|
103
|
+
defineCustomElement$v();
|
|
102
104
|
}
|
|
103
105
|
break;
|
|
104
106
|
case "ion-ripple-effect":
|
|
105
107
|
if (!customElements.get(tagName)) {
|
|
106
|
-
defineCustomElement$
|
|
108
|
+
defineCustomElement$u();
|
|
107
109
|
}
|
|
108
110
|
break;
|
|
109
111
|
case "ion-skeleton-text":
|
|
110
112
|
if (!customElements.get(tagName)) {
|
|
111
|
-
defineCustomElement$
|
|
113
|
+
defineCustomElement$t();
|
|
112
114
|
}
|
|
113
115
|
break;
|
|
114
116
|
case "ion-toast":
|
|
115
117
|
if (!customElements.get(tagName)) {
|
|
116
|
-
defineCustomElement$
|
|
118
|
+
defineCustomElement$s();
|
|
117
119
|
}
|
|
118
120
|
break;
|
|
119
121
|
case "pos-add-new-thing":
|
|
120
122
|
if (!customElements.get(tagName)) {
|
|
121
|
-
defineCustomElement$
|
|
123
|
+
defineCustomElement$r();
|
|
122
124
|
}
|
|
123
125
|
break;
|
|
124
126
|
case "pos-app":
|
|
125
127
|
if (!customElements.get(tagName)) {
|
|
126
|
-
defineCustomElement$
|
|
128
|
+
defineCustomElement$q();
|
|
127
129
|
}
|
|
128
130
|
break;
|
|
129
131
|
case "pos-app-dashboard":
|
|
130
132
|
if (!customElements.get(tagName)) {
|
|
131
|
-
defineCustomElement$
|
|
133
|
+
defineCustomElement$p();
|
|
132
134
|
}
|
|
133
135
|
break;
|
|
134
136
|
case "pos-app-settings":
|
|
135
137
|
if (!customElements.get(tagName)) {
|
|
136
|
-
defineCustomElement$
|
|
138
|
+
defineCustomElement$o();
|
|
137
139
|
}
|
|
138
140
|
break;
|
|
139
141
|
case "pos-description":
|
|
140
142
|
if (!customElements.get(tagName)) {
|
|
141
|
-
defineCustomElement$
|
|
143
|
+
defineCustomElement$n();
|
|
142
144
|
}
|
|
143
145
|
break;
|
|
144
146
|
case "pos-dialog":
|
|
145
147
|
if (!customElements.get(tagName)) {
|
|
146
|
-
defineCustomElement$
|
|
148
|
+
defineCustomElement$m();
|
|
147
149
|
}
|
|
148
150
|
break;
|
|
149
151
|
case "pos-error-toast":
|
|
150
152
|
if (!customElements.get(tagName)) {
|
|
151
|
-
defineCustomElement$
|
|
153
|
+
defineCustomElement$l();
|
|
152
154
|
}
|
|
153
155
|
break;
|
|
154
156
|
case "pos-example-resources":
|
|
155
157
|
if (!customElements.get(tagName)) {
|
|
156
|
-
defineCustomElement$
|
|
158
|
+
defineCustomElement$k();
|
|
157
159
|
}
|
|
158
160
|
break;
|
|
159
161
|
case "pos-getting-started":
|
|
160
162
|
if (!customElements.get(tagName)) {
|
|
161
|
-
defineCustomElement$
|
|
163
|
+
defineCustomElement$j();
|
|
162
164
|
}
|
|
163
165
|
break;
|
|
164
166
|
case "pos-image":
|
|
165
167
|
if (!customElements.get(tagName)) {
|
|
166
|
-
defineCustomElement$
|
|
168
|
+
defineCustomElement$i();
|
|
167
169
|
}
|
|
168
170
|
break;
|
|
169
171
|
case "pos-internal-router":
|
|
170
172
|
if (!customElements.get(tagName)) {
|
|
171
|
-
defineCustomElement$
|
|
173
|
+
defineCustomElement$h();
|
|
172
174
|
}
|
|
173
175
|
break;
|
|
174
176
|
case "pos-label":
|
|
175
177
|
if (!customElements.get(tagName)) {
|
|
176
|
-
defineCustomElement$
|
|
178
|
+
defineCustomElement$g();
|
|
177
179
|
}
|
|
178
180
|
break;
|
|
179
181
|
case "pos-login":
|
|
180
182
|
if (!customElements.get(tagName)) {
|
|
181
|
-
defineCustomElement$
|
|
183
|
+
defineCustomElement$f();
|
|
182
184
|
}
|
|
183
185
|
break;
|
|
184
186
|
case "pos-login-form":
|
|
185
187
|
if (!customElements.get(tagName)) {
|
|
186
|
-
defineCustomElement$
|
|
188
|
+
defineCustomElement$e();
|
|
187
189
|
}
|
|
188
190
|
break;
|
|
189
191
|
case "pos-make-findable":
|
|
190
192
|
if (!customElements.get(tagName)) {
|
|
191
|
-
defineCustomElement$
|
|
193
|
+
defineCustomElement$d();
|
|
192
194
|
}
|
|
193
195
|
break;
|
|
194
196
|
case "pos-navigation":
|
|
195
197
|
if (!customElements.get(tagName)) {
|
|
196
|
-
defineCustomElement$
|
|
198
|
+
defineCustomElement$c();
|
|
197
199
|
}
|
|
198
200
|
break;
|
|
199
201
|
case "pos-navigation-bar":
|
|
200
202
|
if (!customElements.get(tagName)) {
|
|
201
|
-
defineCustomElement$
|
|
203
|
+
defineCustomElement$b();
|
|
202
204
|
}
|
|
203
205
|
break;
|
|
204
206
|
case "pos-new-thing-form":
|
|
205
207
|
if (!customElements.get(tagName)) {
|
|
206
|
-
defineCustomElement$
|
|
208
|
+
defineCustomElement$a();
|
|
207
209
|
}
|
|
208
210
|
break;
|
|
209
211
|
case "pos-picture":
|
|
210
212
|
if (!customElements.get(tagName)) {
|
|
211
|
-
defineCustomElement$
|
|
213
|
+
defineCustomElement$9();
|
|
212
214
|
}
|
|
213
215
|
break;
|
|
214
216
|
case "pos-resource":
|
|
215
217
|
if (!customElements.get(tagName)) {
|
|
216
|
-
defineCustomElement$
|
|
218
|
+
defineCustomElement$8();
|
|
217
219
|
}
|
|
218
220
|
break;
|
|
219
221
|
case "pos-rich-link":
|
|
220
222
|
if (!customElements.get(tagName)) {
|
|
221
|
-
defineCustomElement$
|
|
223
|
+
defineCustomElement$7();
|
|
222
224
|
}
|
|
223
225
|
break;
|
|
224
226
|
case "pos-router":
|
|
225
227
|
if (!customElements.get(tagName)) {
|
|
226
|
-
defineCustomElement$
|
|
228
|
+
defineCustomElement$6();
|
|
227
229
|
}
|
|
228
230
|
break;
|
|
229
231
|
case "pos-select-term":
|
|
230
232
|
if (!customElements.get(tagName)) {
|
|
231
|
-
defineCustomElement$
|
|
233
|
+
defineCustomElement$5();
|
|
232
234
|
}
|
|
233
235
|
break;
|
|
234
236
|
case "pos-setting-offline-cache":
|
|
235
237
|
if (!customElements.get(tagName)) {
|
|
236
|
-
defineCustomElement$
|
|
238
|
+
defineCustomElement$4();
|
|
237
239
|
}
|
|
238
240
|
break;
|
|
239
241
|
case "pos-type-router":
|
|
242
|
+
if (!customElements.get(tagName)) {
|
|
243
|
+
defineCustomElement$3();
|
|
244
|
+
}
|
|
245
|
+
break;
|
|
246
|
+
case "pos-user-menu":
|
|
240
247
|
if (!customElements.get(tagName)) {
|
|
241
248
|
defineCustomElement$2();
|
|
242
249
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-app-browser.js","mappings":"
|
|
1
|
+
{"file":"pos-app-browser.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,gBAAgB,GAAG,4yCAA4yC,CAAC;AACt0C,4BAAe,gBAAgB;;MCMlBA,eAAa;IAJ1B;;;QAKU,2BAAsB,GAAY,KAAK,CAAC;;;;;;;QAQxC,SAAI,GAAyB,YAAY,CAAC;QAEzC,QAAG,GAAG,EAAE,CAAC;KAyCnB;IAvCC,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,gEAAS,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,IAC1D,0EACE,mEAAY,IAAI,EAAE,IAAI,CAAC,IAAI,4BAA0B,CAAC,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,IAC7E,iEACE,0EAAmB,YAAY,EAAE,IAAI,CAAC,GAAG,GAAsB,EAC/D,uEAAgB,GAAG,EAAE,IAAI,CAAC,GAAG,KAAK,kBAAkB,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,GAAmB,EAEvF,oEACE,sEAAe,KAAK,EAAEC,KAAO,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,cAAc,GAAiB,CACrE,CACL,EACT,+DAAO,IAAI,CAAC,WAAW,EAAE,CAAQ,EACjC,iEACE,EAAC,IAAI,sDAAG,EACR,+EAA0B,CACnB,CACE,CACG,CACV,CACL,EACP;KACH;IAEO,WAAW;QACjB,IAAI,IAAI,CAAC,GAAG,KAAK,EAAE,EAAE;YACnB,OAAO,IAAI,CAAC;SACb;QACD,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAClC,OAAO,2BAAqB,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,CAAC;SAC/C;QACD,QACE,oBAAc,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,IACxC,0BAAmB,CACN,EACf;KACH;;;;;;;AAGH,MAAM,IAAI,GAAG;IACX,QACE,WAAK,OAAO,EAAC,aAAa,EAAC,KAAK,EAAC,4BAA4B,IAC3D,YACE,CAAC,EAAC,6CAA6C,EAC/C,KAAK,EAAE;YACL,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,SAAS;YACnB,cAAc,EAAE,IAAI;SACrB,qBACe,OAAO,GACvB,EAEF,YACE,CAAC,EAAC,0EAA0E,EAC5E,KAAK,EAAE;YACL,MAAM,EAAE,OAAO;YACf,QAAQ,EAAE,OAAO;YACjB,cAAc,EAAE,IAAI;SACrB,qBACe,OAAO,GACvB,EAEF,YACE,CAAC,EAAC,gDAAgD,EAClD,KAAK,EAAE;YACL,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,SAAS;YACnB,cAAc,EAAE,IAAI;SACrB,qBACe,OAAO,GACvB,CACE,EACN;AACJ,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PosAppBrowser","session"],"sources":["src/apps/pos-app-browser/pos-app-browser.css?tag=pos-app-browser","src/apps/pos-app-browser/pos-app-browser.tsx"],"sourcesContent":["pos-router {\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\npos-navigation {\n max-width: var(--width-lg);\n margin: 0;\n min-width: var(--size-32);\n flex-shrink: 1; /* Ensure navigation can shrink */\n}\n\npos-add-new-thing,\npos-login {\n flex: 0 1 auto;\n flex-shrink: 0; /* Ensure those items don't shrink */\n}\n\nheader,\nfooter {\n display: flex;\n gap: var(--size-1);\n height: auto;\n justify-content: center;\n align-items: center;\n padding: var(--size-1);\n}\n\nfooter svg {\n width: var(--size-5);\n height: var(--size-5);\n}\n\nfooter {\n font-size: var(--scale-fluid-000);\n\n .settings {\n padding: 0 var(--size-1);\n text-decoration: none;\n background-color: var(--pos-background-color);\n border: 1px solid var(--pos-secondary-border-color);\n color: var(--pos-secondary-border-color);\n border-radius: var(--radius-xs);\n\n &:hover {\n background-color: var(--pos-secondary-border-color);\n color: var(--pos-background-color);\n }\n }\n}\n\nheader {\n flex-wrap: nowrap;\n padding: var(--size-1) var(--size-8);\n}\n\nmain {\n flex: 1;\n max-height: 100vh;\n overflow: auto;\n}\n\n@media (max-width: 640px) {\n header {\n padding: var(--size-1);\n justify-content: space-between;\n }\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\nimport session from '../../store/session';\n\n@Component({\n tag: 'pos-app-browser',\n styleUrl: 'pos-app-browser.css',\n})\nexport class PosAppBrowser {\n @Prop() restorePreviousSession: boolean = false;\n\n /**\n * The mode the app is running in:\n *\n * - standalone: use this when you deploy it as a standalone web application\n * - pod: use this when you host this app as a default interface for you pod\n */\n @Prop() mode: 'standalone' | 'pod' = 'standalone';\n\n @State() uri = '';\n\n render() {\n return (\n <Host>\n <pos-app restorePreviousSession={this.restorePreviousSession}>\n <pos-error-toast>\n <pos-router mode={this.mode} onPod-os:route-changed={e => (this.uri = e.detail)}>\n <header>\n <pos-add-new-thing referenceUri={this.uri}></pos-add-new-thing>\n <pos-navigation uri={this.uri === 'pod-os:dashboard' ? '' : this.uri}></pos-navigation>\n\n <pos-login>\n <pos-user-menu webId={session.state.webId} slot=\"if-logged-in\"></pos-user-menu>\n </pos-login>\n </header>\n <main>{this.mainContent()}</main>\n <footer>\n <Logo />\n <span>PodOS Browser</span>\n </footer>\n </pos-router>\n </pos-error-toast>\n </pos-app>\n </Host>\n );\n }\n\n private mainContent() {\n if (this.uri === '') {\n return null;\n }\n if (this.uri.startsWith('pod-os:')) {\n return <pos-internal-router uri={this.uri} />;\n }\n return (\n <pos-resource key={this.uri} uri={this.uri}>\n <pos-type-router />\n </pos-resource>\n );\n }\n}\n\nconst Logo = () => {\n return (\n <svg viewBox=\"0 0 400 400\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M50 350 L50 100 L200 50 L350 100 L350 350 Z\"\n style={{\n 'fill': '#008BF8',\n 'stroke': '#008BF8',\n 'stroke-width': '70',\n }}\n stroke-linejoin=\"round\"\n />\n\n <path\n d=\"M100 300 L100 150 L200 120 L300 150 L300 300 L130 300 L130 370 L100 370Z\"\n style={{\n 'fill': 'white',\n 'stroke': 'white',\n 'stroke-width': '45',\n }}\n stroke-linejoin=\"round\"\n />\n\n <path\n d=\"M150 250 L150 200 L200 180 L250 200 L250 250 Z\"\n style={{\n 'fill': '#DC0073',\n 'stroke': '#DC0073',\n 'stroke-width': '20',\n }}\n stroke-linejoin=\"round\"\n />\n </svg>\n );\n};\n"],"version":3}
|
|
@@ -17,7 +17,7 @@ const PosAppDashboard = /*@__PURE__*/ proxyCustomElement(class PosAppDashboard e
|
|
|
17
17
|
this.__attachShadow();
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '18dc165b7be1c796136804a2ba7643b2a6fffc73' }, h("pos-getting-started", { key: 'e3f7a22641e4c24168a36f96463515cd1a89ca5e' }), h("pos-example-resources", { key: '1044dd873049118e165ff6d38449c85695f63a50' })));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return PosAppDashboardStyle0; }
|
|
23
23
|
}, [1, "pos-app-dashboard"]);
|
|
@@ -27,7 +27,7 @@ const PosAppGeneric$1 = /*@__PURE__*/ proxyCustomElement(class PosAppGeneric ext
|
|
|
27
27
|
this.__attachShadow();
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '170a57d59474ac6fa887251c96dfe64f93308e3f' }, h("section", { key: '208917e280149067f5a0c946636853f23fc83d7b' }, h("article", { key: '62c8f8a2b37455d7ec4ffc11cbb7e46b7262a6e8', "aria-labelledby": "thing-title" }, h("header", { key: '2f85c4bffecfa3e0f55ed07d98397647cfcd4acc' }, h("pos-picture", { key: '1094acb0b8cac8c9a8acaca29abeeaa5cc00aca0', blurredBackground: true }), h("h1", { key: 'eba5144dd2cf94fdfdc7514c26d68aecc8361139', id: "thing-title" }, h("pos-label", { key: 'ac03525509d037740d1b329fbaf64c68f9ea5376' })), h("pos-type-badges", { key: '0dbdb698a8a77a5a500a440142e078860b3c0681' })), h("main", { key: 'd87bfa4cf8bfb9b0ba633dff40f7d42478265cc1' }, h("pos-description", { key: 'c5c3b64864f8bc9d8e72b1a87f92bdd2435b4e41' })))), h("section", { key: 'f013653e7eafd26e6daa53c76a95d12939d356bd' }, h("pos-literals", { key: 'd34963cc5eed8c6e6baa3963009c352043f30db5' })), h("section", { key: 'ab70a3d890665c4ecfe987f35437de1a5dc3e655' }, h("pos-relations", { key: 'f8751d31a54b240cad0f089a9aea5123dc0c0bae' }), h("pos-reverse-relations", { key: '5aff024840f92393d69f0816263751efc6cb57f3' }))));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return PosAppGenericStyle0; }
|
|
33
33
|
}, [1, "pos-app-generic"]);
|
|
@@ -28,7 +28,7 @@ const PosAppLdpContainer$1 = /*@__PURE__*/ proxyCustomElement(class PosAppLdpCon
|
|
|
28
28
|
this.__attachShadow();
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '76b7a2ab73232cbea2a7352527fd4fc35a75c66b' }, h("section", { key: '28d455d6e4b640de624a2c684133a6d4c7de2100' }, h("pos-container-contents", { key: '8e518a1122461108b3d33d66664f67feb55527c4' }), h("details", { key: '6be9b8cf613a54213e8281c0a4bf4e8235c1b4b1' }, h("summary", { key: '541ff3bbe8ec736361ea59fef319141a743c93ee' }, "All subjects"), h("pos-subjects", { key: '4e1927ea2365c354c7d1abf2eca50d892e1ac2bc' }))), h("section", { key: 'c9156ae4584e7f5803a7427b97844c3bbeae86bf' }, h("article", { key: 'c3fdc4cf0d4dd6624c63c2c6f4cf1c852a2468fc' }, h("header", { key: '4103d4a971e51942afeff1a26aca17454a962f31' }, h("h1", { key: 'eb000f4bac564b0255e28c44c112180a4558e323' }, h("pos-label", { key: '700a53e05c33d9c5a923dd5f73ecfb4ee969bc9d' })), h("pos-type-badges", { key: '15c37fc60de0e9ff1d36280da42bf0cc42c0c27c' })), h("pos-literals", { key: '4bf833339c2bedd888248e3893633496d2f61bd0' })))));
|
|
32
32
|
}
|
|
33
33
|
static get style() { return PosAppLdpContainerStyle0 + PosAppLdpContainerStyle1; }
|
|
34
34
|
}, [1, "pos-app-ldp-container"]);
|
|
@@ -26,7 +26,7 @@ const PosAppRdfDocument$1 = /*@__PURE__*/ proxyCustomElement(class PosAppRdfDocu
|
|
|
26
26
|
this.__attachShadow();
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '9dd4b79cd54b3d2d61eea562b41a397cc1841279' }, h("section", { key: 'ec97b4983b9c45a5420b8e15b1b5d13a2b78f505' }, h("pos-subjects", { key: '7ca852dee46a4f1bb64cebccb397e2df7045be82' })), h("section", { key: '9aaf18c750b9847234ebb6d92c3c4ab605ff306e' }, h("article", { key: 'd794f6f83cfa49a37a759f0b8fa16b28038ec10b', "aria-labelledby": "doc-title" }, h("header", { key: 'bebbe27160a15351a1eabaa8c1ebb449beaa1005' }, h("h1", { key: 'cf5ba1875f2e22f162d2878789106738aac3d97c', id: "doc-title" }, h("pos-label", { key: 'fcb1a84e354ab5e2842077a6417c5b77ac9d87ed' })), h("pos-type-badges", { key: '370688f50c2906e069686d35a177c88b68de0a98' })), h("pos-literals", { key: '56bc40269a0269301603f3e9f101ad52738fca6a' })))));
|
|
30
30
|
}
|
|
31
31
|
static get style() { return PosAppRdfDocumentStyle0 + PosAppRdfDocumentStyle1; }
|
|
32
32
|
}, [1, "pos-app-rdf-document"]);
|
|
@@ -11,7 +11,7 @@ const PosAppSettings = /*@__PURE__*/ proxyCustomElement(class PosAppSettings ext
|
|
|
11
11
|
this.__attachShadow();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return h("pos-setting-offline-cache", { key: '
|
|
14
|
+
return h("pos-setting-offline-cache", { key: 'f065206f6291089773a19045243f04b6ce35eeb9' });
|
|
15
15
|
}
|
|
16
16
|
static get style() { return PosAppSettingsStyle0; }
|
|
17
17
|
}, [1, "pos-app-settings"]);
|
|
@@ -610,7 +610,7 @@ const PosApp = /*@__PURE__*/ proxyCustomElement(class PosApp extends HTMLElement
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
render() {
|
|
613
|
-
return h("slot", { key: '
|
|
613
|
+
return h("slot", { key: '988c393af75e8bd0f4ff2b4c04fe33b1ed686fa7' });
|
|
614
614
|
}
|
|
615
615
|
}, [4, "pos-app", {
|
|
616
616
|
"restorePreviousSession": [4, "restore-previous-session"],
|
|
@@ -9,14 +9,14 @@ const PosDialog = /*@__PURE__*/ proxyCustomElement(class PosDialog extends HTMLE
|
|
|
9
9
|
super();
|
|
10
10
|
this.__registerHost();
|
|
11
11
|
}
|
|
12
|
-
showModal() {
|
|
12
|
+
async showModal() {
|
|
13
13
|
this.dialog.showModal();
|
|
14
14
|
}
|
|
15
|
-
close() {
|
|
15
|
+
async close() {
|
|
16
16
|
this.dialog.close();
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '168dc7d1cf3feabd5f9b2b3f9add6b04467b36ef' }, h("dialog", { key: '8bbfb245d9ff066d111c116c1715be25b0907403', ref: el => (this.dialog = el) }, h("header", { key: '94e28eb2b8147cb6b2aedda0d8e6a5158117788e' }, h("slot", { key: 'a40c2d397b9f54056d4fd8089fdfcc1e446b6d61', name: "title" }), h("button", { key: 'f0f64f5aaafc331f9e3d0fb6201c453600157db1', tabindex: -1, id: "close", title: "Close", onClick: () => this.close() }, h("ion-icon", { key: 'd94a0cf3d19d7caa3717690004101e3ff4748760', name: "close-outline" }))), h("slot", { key: '3181fafe55869add4a587bf4726226055e98588d', name: "content" }))));
|
|
20
20
|
}
|
|
21
21
|
static get style() { return PosDialogStyle0; }
|
|
22
22
|
}, [4, "pos-dialog", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-dialog2.js","mappings":";;;AAAA,MAAM,YAAY,GAAG,ipCAAipC,CAAC;AACvqC,wBAAe,YAAY;;MCSd,SAAS;;;;;IAIpB,SAAS;
|
|
1
|
+
{"file":"pos-dialog2.js","mappings":";;;AAAA,MAAM,YAAY,GAAG,ipCAAipC,CAAC;AACvqC,wBAAe,YAAY;;MCSd,SAAS;;;;;IAIpB,MAAM,SAAS;QACb,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;KACzB;IAGD,MAAM,KAAK;QACT,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;KACrB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,+DAAQ,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,MAAM,GAAG,EAAuB,CAAC,IACxD,iEACE,6DAAM,IAAI,EAAC,OAAO,GAAG,EACrB,+DAAQ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,IACxE,iEAAU,IAAI,EAAC,eAAe,GAAY,CACnC,CACF,EACT,6DAAM,IAAI,EAAC,SAAS,GAAG,CAChB,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pos-dialog/pos-dialog.css?tag=pos-dialog","src/components/pos-dialog/pos-dialog.tsx"],"sourcesContent":["dialog {\n background-color: var(--pos-background-color);\n color: var(--pos-normal-text-color);\n border: none;\n border-radius: var(--radius-md);\n box-shadow: var(--shadow-md);\n max-width: var(--width-xs);\n animation: slideIn 0.2s ease-out;\n}\n\ndialog::backdrop {\n background: rgba(0, 0, 0, 0.5);\n backdrop-filter: var(--blur-sm);\n animation: fadeIn 0.2s ease-out;\n}\n\n@media (prefers-color-scheme: dark) {\n dialog::backdrop {\n background: rgb(100, 100, 100, 0.5);\n }\n}\n\ndialog header > :first-child {\n /* This is the title slot*/\n flex-grow: 1;\n font-weight: var(--weight-light);\n font-size: var(--scale-2);\n font-family: var(--font-sans);\n margin: 0;\n}\n\ndialog header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: var(--scale-0);\n border-bottom-style: inset;\n padding: 0 0 var(--scale-0) 0;\n}\n\ndialog > :last-child {\n /* This is the content slot*/\n display: block;\n margin-top: var(--scale-3);\n}\n\nbutton#close {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n background: none;\n font-size: var(--scale-3);\n color: var(--color-grey-500);\n}\n\nbutton#close:hover {\n color: var(--pos-secondary-border-color);\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes slideIn {\n from {\n opacity: 0;\n transform: translateY(-20px) scale(0.95);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n","import { Component, Host, h, Method } from '@stencil/core';\n\n/**\n * Styled wrapper around native dialog element, with slots `title` and `content`\n */\n@Component({\n tag: 'pos-dialog',\n styleUrl: 'pos-dialog.css',\n shadow: false, // shadow dom prevents the html dialog from working normally (autofocus, close on submit)\n})\nexport class PosDialog {\n private dialog: HTMLDialogElement;\n\n @Method()\n async showModal() {\n this.dialog.showModal();\n }\n\n @Method()\n async close() {\n this.dialog.close();\n }\n\n render() {\n return (\n <Host>\n <dialog ref={el => (this.dialog = el as HTMLDialogElement)}>\n <header>\n <slot name=\"title\" />\n <button tabindex={-1} id=\"close\" title=\"Close\" onClick={() => this.close()}>\n <ion-icon name=\"close-outline\"></ion-icon>\n </button>\n </header>\n <slot name=\"content\" />\n </dialog>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -37,7 +37,7 @@ const PosErrorToast = /*@__PURE__*/ proxyCustomElement(class PosErrorToast exten
|
|
|
37
37
|
await toast.present();
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'c1ee5f8a19177c79a3fe377fa27e4a32ffa9db9f' }, h("ion-toast", { key: '8759a3436a5caa16a11a2900a5f67d0dd205d097', trigger: "never", message: "Workarround to preload ion-toast and ion-ripple-effect to be able to show errors while offline", duration: 0 }, h("ion-ripple-effect", { key: '990aa24f2a18750ec5307498acda539b784c86c4' })), h("slot", { key: 'bea0650cc211dc2a161e7c634825adc045647d84' })));
|
|
41
41
|
}
|
|
42
42
|
}, [1, "pos-error-toast", undefined, [[8, "unhandledrejection", "unhandledRejection"], [0, "pod-os:error", "catchError"]]]);
|
|
43
43
|
function defineCustomElement() {
|
|
@@ -15,7 +15,7 @@ const PosExampleResources = /*@__PURE__*/ proxyCustomElement(class PosExampleRes
|
|
|
15
15
|
this.__attachShadow();
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '42e8ecc30fa26eb7750efff9a65048bb42b4c71d' }, h("div", { key: '1df80385f1f6c44f7fe4255ecb93f6183df61727' }, h("h2", { key: '9b249d38f00d1b00863226799bdcd13e4f78a4a9' }, "Try these... \uD83D\uDCA1"), h("p", { key: 'c33157b085b1ad3397e38bf5f4b1c601b0e40b6a' }, "No idea where to start? Try these example resources, and follow your nose \uD83D\uDC43"), h("div", { key: 'f0f35cc2ec1f7fbf8a306e718e1f2aaffcbe84e0', class: "links" }, h("pos-rich-link", { key: '999b7dc0aa587b1964838820f17a02257b051c0e', uri: "https://pod-os.solidcommunity.net/profile/card#me" }), h("pos-rich-link", { key: '67ca02160d0bdaa73bcfb188fcf40b058a584bf8', uri: "https://angelo.veltens.org/profile/card#me" }), h("pos-rich-link", { key: '800829fb68c96b0caa0ad2372b02e08b7842b704', uri: "https://angelo.veltens.org/public/bookmarks" }), h("pos-rich-link", { key: '680e29b8bf0437d6adba15052339b91ffd41b9a4', uri: "https://solidos.solidcommunity.net/profile/card#me" })))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return PosExampleResourcesStyle0; }
|
|
21
21
|
}, [1, "pos-example-resources"]);
|
|
@@ -11,7 +11,7 @@ const PosGettingStarted = /*@__PURE__*/ proxyCustomElement(class PosGettingStart
|
|
|
11
11
|
this.login = createEvent(this, "pod-os:login", 7);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '23a14b5ee10d585cc8cf3166ce041072b68cabb2' }, h("div", { key: '964e46223d77516aaed40c7c55371716cfccf40a' }, h("h2", { key: '5eaf56d6b0751d8511632d05570a05d5deba88c0' }, "Getting started \uD83D\uDE80"), h("p", { key: 'f41d858112a0337bcf2be9a39986cacac6921210' }, "\uD83D\uDD0E Enter a URL into the above navigation bar to browse through the web of data. "), h("p", { key: '8d40de32d86b871343687b402122b0dcc843daf9' }, "\uD83D\uDD10", ' ', h("button", { key: '225091e03c1cf175362dc9530cf1eb5238e50d65', class: "login", onClick: () => this.login.emit() }, "Sign in"), ' ', "to access private resources on your Solid Pod or those of your friends or coworkers.")), h("div", { key: '92924f3a67ac70cd333932f0658f9f73dd7474c9' }, h("p", { key: '365d7c78aee4bb9396ac7d55c42c9e26b47fe87a', class: "question" }, "New to Solid?"), h("p", { key: '42190c0f401faff3cf43fe8f3c69f4afc380f819' }, h("a", { key: 'd7de0d55a657c8a54a389efc50aa89bc4d48c5e6', href: "https://solidproject.org/for-developers#hosted-pod-services" }, "Get a Pod \u2192"))), h("div", { key: '8ad728231a1f2af613a462982af6bf129956ab1c' }, h("p", { key: 'c960fa49ff9789fe881cadc4f37d315c7727115a', class: "question" }, "Want to dig deeper into PodOS?"), h("p", { key: '7991e91dbfdfc0447a2e08850e3634086f3f12ee' }, h("a", { key: 'a35d336eb2ca5947e66abb9e37526ee035c0a700', href: "http://pod-os.org" }, "Learn more \u2192")))));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return PosGettingStartedStyle0; }
|
|
17
17
|
}, [1, "pos-getting-started"]);
|
|
@@ -40,7 +40,7 @@ const PosLiterals = /*@__PURE__*/ proxyCustomElement(class PosLiterals extends H
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '26dd446e53e4157e6b635b5d711abf9ddf50b821' }, this.data.length > 0 ? (h("dl", null, this.data.map(it => (h("div", { class: "predicate-values" }, h("dt", null, h("pos-predicate", { uri: it.predicate, label: it.label })), h("div", { class: "values" }, it.values.map(value => (h("dd", null, value))))))))) : null, h("pos-add-literal-value", { key: '756003351bba9399d1a53242c0153b18fc0b4b19', "onPod-os:added-literal-value": event => this.literalValueAdded(event.detail) })));
|
|
44
44
|
}
|
|
45
45
|
static get style() { return PosLiteralsStyle0; }
|
|
46
46
|
}, [1, "pos-literals", {
|
|
@@ -16,7 +16,7 @@ const PosLoginForm = /*@__PURE__*/ proxyCustomElement(class PosLoginForm extends
|
|
|
16
16
|
this.canSubmit = Boolean(this.idpUrl);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("form", { key: '
|
|
19
|
+
return (h("form", { key: '30eab981894b50a2681e10a68606c87e0d07a235', method: "dialog", onSubmit: () => this.handleSubmit() }, h("label", { key: '97ceb026754eba3f7b2d14b2dc47f842d601f8c0', htmlFor: "idpUrl" }, "Please enter your Identity Provider"), h("input", { key: '2c5c709ab36bbf017291e37991e3da93c150ad8a', id: "idpUrl", type: "url", value: this.idpUrl, required: true, onInput: e => this.handleChange(e), list: "suggestedIssuers", placeholder: "Type to search..." }), h("datalist", { key: '0baa3fada6f2dbb7c11cadaa52430628710fcc20', id: "suggestedIssuers" }, h("option", { key: 'b69926e6ad5e0c2d71a18ae95ef68e8ec1c1ffaa', value: "https://solidcommunity.net" }, "solidcommunity.net"), h("option", { key: '551d5bb9df7fe416e10a64f072020e1c4fdcb407', value: "https://solidweb.org" }, "solidweb.org"), h("option", { key: '5461e8bbe8c8e1a33d4cae2bb8c82e51bd78fde2', value: "https://solidweb.me" }, "solidweb.me"), h("option", { key: '8a46f5b818ca408db889abd68f6087a56db3788d', value: "https://inrupt.net" }, "inrupt.net"), h("option", { key: '533935f58b3230a223bd0f8e38a4800d6e357017', value: "https://login.inrupt.com" }, "Inrupt PodSpaces"), h("option", { key: '2e47e0832aaa3786283d4ca667efe4af246e8b0c', value: "https://trinpod.us" }, "trinpod.us"), h("option", { key: '259af90ed0e39da4ea3148643dde06125ee8e349', value: "https://use.id" }, "use.id"), h("option", { key: '2259f1ca0e0fa91ffbaa8aeddc7336bb94eed05b', value: "https://solid.redpencil.io" }, "redpencil.io"), h("option", { key: '29244565c8f61e38d7bc15039a6ec990ca8765c0', value: "https://datapod.grant.io" }, "Data Pod (grant.io)"), h("option", { key: '6be3b3c1171669fe3a9405d68623208dafc41439', value: "https://teamid.live" }, "teamid.live")), h("input", { key: '4b967c6bb05a87a007eebf4ef3495d6b342da784', id: "login", type: "submit", value: "Login", disabled: !this.canSubmit })));
|
|
20
20
|
}
|
|
21
21
|
handleChange(event) {
|
|
22
22
|
this.validate();
|
|
@@ -19,11 +19,13 @@ const PosLogin = /*@__PURE__*/ proxyCustomElement(class PosLogin extends HTMLEle
|
|
|
19
19
|
this.__registerHost();
|
|
20
20
|
this.__attachShadow();
|
|
21
21
|
this.initializeOsEmitter = createEvent(this, "pod-os:init", 7);
|
|
22
|
+
this.customLoggedInComponent = false;
|
|
22
23
|
this.setOs = async (os) => {
|
|
23
24
|
this.os = os;
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
componentWillLoad() {
|
|
28
|
+
this.customLoggedInComponent = !!this.host.querySelector('[slot="if-logged-in"]');
|
|
27
29
|
this.initializeOsEmitter.emit(this.setOs);
|
|
28
30
|
}
|
|
29
31
|
login(event) {
|
|
@@ -40,12 +42,23 @@ const PosLogin = /*@__PURE__*/ proxyCustomElement(class PosLogin extends HTMLEle
|
|
|
40
42
|
this.dialog.showModal();
|
|
41
43
|
}
|
|
42
44
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'dded3af9b4a95f30b9eda0414ff90ef77503f730' }, h("div", { key: 'd97326a13eb116bf47e7bd2c0887cfca59b792ad', class: "container" }, !store.state.isLoggedIn ? (h("button", { id: "login", onClick: () => this.openDialog() }, "Login")) : (this.loggedInComponents())), h("pos-dialog", { key: 'fd361fd4961fb96d74e402c4f41288a191c56bd5', ref: el => (this.dialog = el) }, h("span", { key: '2254d45b88f06dab5b3c5ce593c01fb3b35bd935', slot: "title" }, "Sign in to your Pod"), h("pos-login-form", { key: '70a0080686c1f8064887b918273451c65c9a7813', "onPod-os:idp-url-selected": ev => this.login(ev), slot: "content" }))));
|
|
44
46
|
}
|
|
47
|
+
loggedInComponents() {
|
|
48
|
+
return this.customLoggedInComponent ? h("slot", { name: "if-logged-in" }) : this.defaultLoggedInComponents();
|
|
49
|
+
}
|
|
50
|
+
defaultLoggedInComponents() {
|
|
51
|
+
return [
|
|
52
|
+
h("pos-resource", { uri: store.state.webId }, h("span", { class: "user-data" }, h("pos-picture", null), h("pos-label", null))),
|
|
53
|
+
h("button", { id: "logout", onClick: () => this.logout() }, "Logout"),
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
get host() { return this; }
|
|
45
57
|
static get style() { return PosLoginStyle0; }
|
|
46
58
|
}, [1, "pos-login", {
|
|
47
|
-
"os": [32]
|
|
48
|
-
|
|
59
|
+
"os": [32],
|
|
60
|
+
"customLoggedInComponent": [32]
|
|
61
|
+
}, [[4, "pod-os:logout", "logout"], [4, "pod-os:login", "onLogin"]]]);
|
|
49
62
|
function defineCustomElement() {
|
|
50
63
|
if (typeof customElements === "undefined") {
|
|
51
64
|
return;
|