@pod-os/elements 0.26.1-rc.a682a29.0 → 0.26.1-rc.b9287e0.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 +9157 -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.css +12 -0
- package/dist/collection/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.js +19 -1
- package/dist/collection/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.js.map +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 +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 +33 -2
- package/dist/collection/components/pos-login/pos-login.js.map +1 -1
- package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.css +10 -0
- package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js +4 -1
- package/dist/collection/components/pos-navigation/bar/pos-navigation-bar.js.map +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 +24 -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/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 +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 +4 -3
- package/dist/components/pos-getting-started2.js.map +1 -1
- package/dist/components/pos-literals2.js +1 -1
- package/dist/components/pos-login2.js +19 -3
- package/dist/components/pos-login2.js.map +1 -1
- package/dist/components/pos-navigation-bar2.js +5 -2
- package/dist/components/pos-navigation-bar2.js.map +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 +5064 -0
- package/dist/components/pos-user-menu2.js.map +1 -0
- package/dist/elements/elements.css +7 -1
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/elements.esm.js.map +1 -1
- package/dist/elements/p-3f129942.entry.js +2 -0
- package/dist/elements/p-4789f893.entry.js +2 -0
- package/dist/elements/p-61cd1259.js +2 -0
- package/dist/elements/p-61cd1259.js.map +1 -0
- package/dist/elements/p-951ab33f.entry.js +2 -0
- package/dist/elements/p-bf4281d5.entry.js +652 -0
- package/dist/elements/p-bf4281d5.entry.js.map +1 -0
- package/dist/elements/{p-c466d5bf.entry.js → p-db7b0e71.entry.js} +2 -2
- 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 +9122 -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/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.d.ts +2 -0
- package/dist/types/components/pos-login/pos-login.d.ts +5 -0
- package/dist/types/components/pos-navigation/bar/pos-navigation-bar.d.ts +1 -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 +49 -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 -4137
- package/dist/cjs/ion-icon_31.cjs.entry.js.map +0 -1
- package/dist/elements/p-b1de75a4.entry.js +0 -2
- package/dist/elements/p-dbb94429.entry.js +0 -2
- package/dist/elements/p-df06d018.entry.js +0 -20
- package/dist/elements/p-df06d018.entry.js.map +0 -1
- package/dist/elements/p-ec7a6c44.js +0 -2
- package/dist/elements/p-ec7a6c44.js.map +0 -1
- package/dist/elements/p-ff684bff.entry.js +0 -2
- 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 -4103
- package/dist/esm/ion-icon_31.entry.js.map +0 -1
- /package/dist/elements/{p-b1de75a4.entry.js.map → p-3f129942.entry.js.map} +0 -0
- /package/dist/elements/{p-ff684bff.entry.js.map → p-4789f893.entry.js.map} +0 -0
- /package/dist/elements/{p-dbb94429.entry.js.map → p-951ab33f.entry.js.map} +0 -0
- /package/dist/elements/{p-c466d5bf.entry.js.map → p-db7b0e71.entry.js.map} +0 -0
|
@@ -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"), h("span", { key: '24cfa0a74fa3759d919a4ef847705353d403f93b' }, "|"), h("a", { key: 'a4264428f853102c940b4babc71a8b32d7a400e7', class: "settings", href: "?uri=pod-os%3Asettings" }, "\u2699 Settings")))))));
|
|
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;KA6CnB;IA3CC,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,EAC1B,mEAAc,EACd,0DAAG,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC,wBAAwB,sBAE7C,CACG,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 <span>|</span>\n <a class=\"settings\" href=\"?uri=pod-os%3Asettings\">\n ⚙ Settings\n </a>\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: '935793247a6da2ea61fd709bcd54910c2ef9005a' }, h("pos-getting-started", { key: '134f1bd649205b40bcff0f06abce95ebfc55d0e3' }), h("pos-example-resources", { key: 'dfb16c9f8601dc7e8d9859063b40280aeccee734' })));
|
|
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: '3e4ed56cbf9b9556da4f41ddacbaea767fdeab49' }, h("section", { key: '717e918cc7367cfae40b0376f0105528dd206468' }, h("article", { key: '6bd526699702a2ead17bf261f0472553f62188c0', "aria-labelledby": "thing-title" }, h("header", { key: 'c4ea6f471392e2180fdd1a737ed8e26b58880724' }, h("pos-picture", { key: '667dfbca0c6a51fadc2ca07bceb7197269ec90ce', blurredBackground: true }), h("h1", { key: 'cdb61f470da3152c556ad1b5678482940f43b1e4', id: "thing-title" }, h("pos-label", { key: 'cd2904817a5269d5caaa0fde382075da168e7b56' })), h("pos-type-badges", { key: 'f8112abb47673910b83e9995509863f5746ceabd' })), h("main", { key: '062be7d659a2e0aad5a5796c53f1f569d3f24aae' }, h("pos-description", { key: '1a150f1be5eb97f3def2a3e9230f0f73abe5289f' })))), h("section", { key: 'e0b37957c1a2944dde065d592cac4745b8085fe1' }, h("pos-literals", { key: 'd12780917669ee39798cd175c1deec395492b7d9' })), h("section", { key: 'ee5f887ac844374d5b650b011c005646c817aec8' }, h("pos-relations", { key: 'b52906f1c59d3dd2ef6240bf8e69c96ec6e97625' }), h("pos-reverse-relations", { key: '4d3814178f8d212224f632f52dafc8440b6a6caa' }))));
|
|
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: 'dde76eebd4d46427becbae1dac835226d31089e7' }, h("section", { key: 'df8f64dc59c93eba8948dea5f0c71731046f6806' }, h("pos-container-contents", { key: 'aa86afdb1fbb18b45728b9779f46a88a889917eb' }), h("details", { key: '8b3a1f7c56ec8c9ba4abe697f71b873dbed181a1' }, h("summary", { key: '8c6598ba551f8ce867f0c50451808b66d336057b' }, "All subjects"), h("pos-subjects", { key: '5f01422ce12a922b140df8fa96bb76c6787c3ebf' }))), h("section", { key: 'ee8b5f2b3f7451e7ca634e9dde7623a63a7f0a53' }, h("article", { key: '51b73928572d3e49b79de8d30b3ce51c74084267' }, h("header", { key: 'eb82a2a0244d69ade07c74b7dbbf3b2613ccd882' }, h("h1", { key: 'db921e73647ae1468912e33a3d9f0b2b3b08fe4b' }, h("pos-label", { key: 'bdf7060d7e5f5d7bff8b52b374ec1e8005875006' })), h("pos-type-badges", { key: 'e170ed118ebeddbccd69ac02c41ef9a6740ad8f5' })), h("pos-literals", { key: '54fb735042d0273dbea98d053f5ed40caf8905a1' })))));
|
|
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: '59d64aa9762fc57babb308c9e60895fa16b8ffaa' }, h("section", { key: '759b608a81bc3205706435663391f9d0a0636509' }, h("pos-subjects", { key: '4aa45ab7822a54bccb78731648ad5a810fd3c133' })), h("section", { key: '09bfc4007f4d78d44682c97d38096aed78f03445' }, h("article", { key: '123cd2a3baf15180b3d83312c2552969e3774439', "aria-labelledby": "doc-title" }, h("header", { key: 'ae0d8a067dfc0d07eddc91ff2e9da1c95839e301' }, h("h1", { key: '0713fe392517b41951dff5f2b5c11c977eaea5f0', id: "doc-title" }, h("pos-label", { key: 'f6dd9bf661cb475a5c6c39c32be393f0d8a0ed8b' })), h("pos-type-badges", { key: '8cb291a12db6bfe739597cd4dfdfc033cdb82da7' })), h("pos-literals", { key: '5ffe3cae089d3d2393aee87097be28d4bff18be1' })))));
|
|
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: '83d824c60d1eb9e2d60b0d7255dda841ad9c6164' });
|
|
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: 'eb7dfaa67c538b3e3e33f42556c1b604fc964729' });
|
|
614
614
|
}
|
|
615
615
|
}, [4, "pos-app", {
|
|
616
616
|
"restorePreviousSession": [4, "restore-previous-session"],
|
|
@@ -16,7 +16,7 @@ const PosDialog = /*@__PURE__*/ proxyCustomElement(class PosDialog extends HTMLE
|
|
|
16
16
|
this.dialog.close();
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '097959e50499628b0b3e9be024cd415d25182303' }, h("dialog", { key: '0ac068acd6392cfc57f9e3bff866a6c865dcafe3', ref: el => (this.dialog = el) }, h("header", { key: '0cf470448e42f04c8a839eb67eec5a0708e306cb' }, h("slot", { key: '3f3f457ff9130c66ac31e21da74f9ffa9cc42a06', name: "title" }), h("button", { key: 'd420ee61dc91d4f193048f6c89351121c0337446', tabindex: -1, id: "close", title: "Close", onClick: () => this.close() }, h("ion-icon", { key: '9a775752b1678654b3446b964fe83ca15d8722ca', name: "close-outline" }))), h("slot", { key: '464e9fefd0dc8c32b52399358ff250e1982bdf36', name: "content" }))));
|
|
20
20
|
}
|
|
21
21
|
static get style() { return PosDialogStyle0; }
|
|
22
22
|
}, [4, "pos-dialog", {
|
|
@@ -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: 'ca253ac051cc38f56c8db1224fea075293f796b4' }, h("ion-toast", { key: '060b78fd54963782be40abca4592c5871fc84d82', 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: '45f799c8d1f36ad3f11a62485677fc38eb01857b' })), h("slot", { key: '02c6e3ad7cce764de694579056fc1fe1d97dfa32' })));
|
|
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: '14484f71f3c276dbce320f6e7e2e6ef9826d08c3' }, h("div", { key: '30cb09c9395c3a8377d67e59eeee30422a0adf89' }, h("h2", { key: '7073083222ea5bb4ef68179b29df61e448a4507d' }, "Try these... \uD83D\uDCA1"), h("p", { key: '737f00c4fadc5d46f1043123aa33112a1c20bc95' }, "No idea where to start? Try these example resources, and follow your nose \uD83D\uDC43"), h("div", { key: 'c906b79ac82daf0aad831c9e70b578e45ca8df2d', class: "links" }, h("pos-rich-link", { key: '8e59dbd9894f846aad3a64922b9753e0ed51bf9c', uri: "https://pod-os.solidcommunity.net/profile/card#me" }), h("pos-rich-link", { key: 'ed467a98c53f0b08f4b465723c81ca112942018c', uri: "https://angelo.veltens.org/profile/card#me" }), h("pos-rich-link", { key: '29ad1e4d9388f791bdb697afe3bc5d28c85baca6', uri: "https://angelo.veltens.org/public/bookmarks" }), h("pos-rich-link", { key: '18324a6848603f624f8a8ae12e71c5c3d0dfc083', uri: "https://solidos.solidcommunity.net/profile/card#me" })))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return PosExampleResourcesStyle0; }
|
|
21
21
|
}, [1, "pos-example-resources"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const posGettingStartedCss = ":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.question{font-weight:var(--weight-semibold)}a{font-weight:var(--weight-bold);color:var(--pos-primary-color)}";
|
|
3
|
+
const posGettingStartedCss = ":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.question{font-weight:var(--weight-semibold)}a{font-weight:var(--weight-bold);color:var(--pos-primary-color)}button.login{background:none;color:var(--pos-primary-color);display:inline;text-decoration:underline;border:none;padding:0;margin:0;cursor:pointer;font-size:unset}";
|
|
4
4
|
const PosGettingStartedStyle0 = posGettingStartedCss;
|
|
5
5
|
|
|
6
6
|
const PosGettingStarted = /*@__PURE__*/ proxyCustomElement(class PosGettingStarted extends HTMLElement {
|
|
@@ -8,9 +8,10 @@ const PosGettingStarted = /*@__PURE__*/ proxyCustomElement(class PosGettingStart
|
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
10
10
|
this.__attachShadow();
|
|
11
|
+
this.login = createEvent(this, "pod-os:login", 7);
|
|
11
12
|
}
|
|
12
13
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '77c0c7565e44f58e865c4fa81cacec9533d5bc03' }, h("div", { key: '4d862bed654a16a5e5039237d623d50580017d34' }, h("h2", { key: 'dfef49eac9b554fe80e57ca1bece61e7b709a822' }, "Getting started \uD83D\uDE80"), h("p", { key: '8b4b0718cba1b856fe7d43c1addb698be79b4ed1' }, "\uD83D\uDD0E Enter a URL into the above navigation bar to browse through the web of data. "), h("p", { key: '09db6644d168ced856218a68c7e14b82f34fcb4e' }, "\uD83D\uDD10", ' ', h("button", { key: 'f4fc2099340837292712ba0d5d1228aefb2e7f15', 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: '215f44616ebc87d343a6a4383dd8f6e777dd655e' }, h("p", { key: '616828fc3ef6308f35c9725db6127841853c8d00', class: "question" }, "New to Solid?"), h("p", { key: '74c150dd7437d1bb6d0e3131d26e06184b1fe8a6' }, h("a", { key: '84644d33e55b02bd1b76106289a2a0de0a630546', href: "https://solidproject.org/for-developers#hosted-pod-services" }, "Get a Pod \u2192"))), h("div", { key: '65984c3d14e2995a448b789b680941d3669513e0' }, h("p", { key: '98723fe96a22827ba74bc25407e2a24bb62d3ee8', class: "question" }, "Want to dig deeper into PodOS?"), h("p", { key: '3be3af10d7a5cc7330bd525724276610de3c94bb' }, h("a", { key: '5a6f5a9264ebf113e724ec712db97ff33acd875b', href: "http://pod-os.org" }, "Learn more \u2192")))));
|
|
14
15
|
}
|
|
15
16
|
static get style() { return PosGettingStartedStyle0; }
|
|
16
17
|
}, [1, "pos-getting-started"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-getting-started2.js","mappings":";;AAAA,MAAM,oBAAoB,GAAG,
|
|
1
|
+
{"file":"pos-getting-started2.js","mappings":";;AAAA,MAAM,oBAAoB,GAAG,4dAA4d,CAAC;AAC1f,gCAAe,oBAAoB;;MCMtB,iBAAiB;;;;;;;IAI5B,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,8DACE,4FAA2B,EAC3B,yJAAuF,EACvF,4EACK,GAAG,EACN,+DAAQ,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,cAE7C,EAAC,GAAG,yFAEX,CACA,EACN,8DACE,0DAAG,KAAK,EAAC,UAAU,oBAAkB,EACrC,4DACE,0DAAG,IAAI,EAAC,6DAA6D,uBAAqB,CACxF,CACA,EACN,8DACE,0DAAG,KAAK,EAAC,UAAU,qCAAmC,EACtD,4DACE,0DAAG,IAAI,EAAC,mBAAmB,wBAAsB,CAC/C,CACA,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.css?tag=pos-getting-started&encapsulation=shadow","src/apps/pos-app-dashboard/pos-getting-started/pos-getting-started.tsx"],"sourcesContent":[":host {\n border: var(--size-px) solid var(--pos-border-color);\n border-radius: var(--radius-lg);\n box-shadow: var(--shadow-md);\n padding: var(--size-8);\n max-width: var(--size-96);\n background: var(--pos-card-background);\n}\n\n.question {\n font-weight: var(--weight-semibold);\n}\n\na {\n font-weight: var(--weight-bold);\n color: var(--pos-primary-color);\n}\n\nbutton.login {\n background: none;\n color: var(--pos-primary-color);\n display: inline;\n text-decoration: underline;\n border: none;\n padding: 0;\n margin: 0;\n cursor: pointer;\n font-size: unset;\n}\n","import { Component, Event, EventEmitter, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'pos-getting-started',\n styleUrl: 'pos-getting-started.css',\n shadow: true,\n})\nexport class PosGettingStarted {\n @Event({ eventName: 'pod-os:login' })\n login: EventEmitter<void>;\n\n render() {\n return (\n <Host>\n <div>\n <h2>Getting started 🚀</h2>\n <p>🔎 Enter a URL into the above navigation bar to browse through the web of data. </p>\n <p>\n 🔐{' '}\n <button class=\"login\" onClick={() => this.login.emit()}>\n Sign in\n </button>{' '}\n to access private resources on your Solid Pod or those of your friends or coworkers.\n </p>\n </div>\n <div>\n <p class=\"question\">New to Solid?</p>\n <p>\n <a href=\"https://solidproject.org/for-developers#hosted-pod-services\">Get a Pod →</a>\n </p>\n </div>\n <div>\n <p class=\"question\">Want to dig deeper into PodOS?</p>\n <p>\n <a href=\"http://pod-os.org\">Learn more →</a>\n </p>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -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: 'fbfc96a94c8a225a94cbf8d230b9ec36b935523b' }, 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: 'f0b7dda5edb7d590301a8c04a6309a774c074ccb', "onPod-os:added-literal-value": event => this.literalValueAdded(event.detail) })));
|
|
44
44
|
}
|
|
45
45
|
static get style() { return PosLiteralsStyle0; }
|
|
46
46
|
}, [1, "pos-literals", {
|
|
@@ -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) {
|
|
@@ -33,16 +35,30 @@ const PosLogin = /*@__PURE__*/ proxyCustomElement(class PosLogin extends HTMLEle
|
|
|
33
35
|
logout() {
|
|
34
36
|
this.os.logout();
|
|
35
37
|
}
|
|
38
|
+
onLogin() {
|
|
39
|
+
this.openDialog();
|
|
40
|
+
}
|
|
36
41
|
openDialog() {
|
|
37
42
|
this.dialog.showModal();
|
|
38
43
|
}
|
|
39
44
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'e061448eb4f6dadc9c9e3a46f81fb005e616005e' }, h("div", { key: 'f3b3d50ffaa2ee4ef158c079d4c1c0d40193658c', class: "container" }, !store.state.isLoggedIn ? (h("button", { id: "login", onClick: () => this.openDialog() }, "Login")) : (this.loggedInComponents())), h("pos-dialog", { key: '2cd28478553dd3efe744caa350bdb7f2853d5221', ref: el => (this.dialog = el) }, h("span", { key: '70c819fe9152d6c3ae186b848f5a156a90a7fe08', slot: "title" }, "Sign in to your Pod"), h("pos-login-form", { key: 'f4b1e70f049f40ad420d9907d24c8b14170e033a', "onPod-os:idp-url-selected": ev => this.login(ev), slot: "content" }))));
|
|
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
|
+
];
|
|
41
55
|
}
|
|
56
|
+
get host() { return this; }
|
|
42
57
|
static get style() { return PosLoginStyle0; }
|
|
43
58
|
}, [1, "pos-login", {
|
|
44
|
-
"os": [32]
|
|
45
|
-
|
|
59
|
+
"os": [32],
|
|
60
|
+
"customLoggedInComponent": [32]
|
|
61
|
+
}, [[4, "pod-os:logout", "logout"], [4, "pod-os:login", "onLogin"]]]);
|
|
46
62
|
function defineCustomElement() {
|
|
47
63
|
if (typeof customElements === "undefined") {
|
|
48
64
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pos-login2.js","mappings":";;;;;;;;;;;;AAAA,MAAM,WAAW,GAAG,2wBAA2wB,CAAC;AAChyB,uBAAe,WAAW;;MCSb,QAAQ;IALrB;;;;;
|
|
1
|
+
{"file":"pos-login2.js","mappings":";;;;;;;;;;;;AAAA,MAAM,WAAW,GAAG,2wBAA2wB,CAAC;AAChyB,uBAAe,WAAW;;MCSb,QAAQ;IALrB;;;;;QAaU,4BAAuB,GAAY,KAAK,CAAC;QAOjD,UAAK,GAAG,OAAO,EAAS;YACtB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;SACd,CAAC;KA4DH;IAnEC,iBAAiB;QACf,IAAI,CAAC,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;QAClF,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC3C;IAMD,KAAK,CAAC,KAA0B;QAC9B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KACvB;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC;KAClB;IAKD,OAAO;QACL,IAAI,CAAC,UAAU,EAAE,CAAC;KACnB;IAED,UAAU;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;KACzB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,4DAAK,KAAK,EAAC,WAAW,IACnB,CAACA,KAAO,CAAC,KAAK,CAAC,UAAU,IACxB,cAAQ,EAAE,EAAC,OAAO,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,EAAE,YAE1C,KAET,IAAI,CAAC,kBAAkB,EAAE,CAC1B,CACG,EACN,mEAAY,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,IACvC,6DAAM,IAAI,EAAC,OAAO,0BAA2B,EAC7C,oGAA2C,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,IAAI,EAAC,SAAS,GAAG,CACvE,CACR,EACP;KACH;IAEO,kBAAkB;QACxB,OAAO,IAAI,CAAC,uBAAuB,GAAG,YAAM,IAAI,EAAC,cAAc,GAAQ,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;KAC5G;IAEO,yBAAyB;QAC/B,OAAO;YACL,oBAAc,GAAG,EAAEA,KAAO,CAAC,KAAK,CAAC,KAAK,IACpC,YAAM,KAAK,EAAC,WAAW,IACrB,sBAAe,EACf,oBAAa,CACR,CACM;YACf,cAAQ,EAAE,EAAC,QAAQ,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,aAEvC;SACV,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["session"],"sources":["src/components/pos-login/pos-login.css?tag=pos-login&encapsulation=shadow","src/components/pos-login/pos-login.tsx"],"sourcesContent":[".container {\n display: flex;\n align-items: center;\n gap: var(--size-2);\n}\n.user-data {\n align-items: center;\n display: inline-flex;\n gap: 10px;\n}\n.user-data pos-picture {\n --width: 40px;\n --height: 40px;\n --border-radius: 50%;\n}\n\npos-login-form {\n margin: var(--size-2);\n}\n\ndialog {\n margin-top: var(--size-10);\n}\n\nbutton#login,\nbutton#logout {\n outline: none;\n font-weight: var(--weight-bold);\n letter-spacing: var(--letter-xl);\n border: none;\n box-sizing: border-box;\n border-radius: var(--radius-xs);\n padding: var(--size-2);\n box-shadow: var(--shadow-sm);\n color: var(--pos-primary-text-color);\n background-color: var(--pos-primary-color);\n}\n\nbutton#login:focus-within,\nbutton#logout:focus-within {\n outline: var(--pos-input-focus-outline);\n}\n\nbutton#login:focus,\nbutton#login:hover,\nbutton#logout:focus,\nbutton#logout:hover {\n filter: brightness(110%);\n box-shadow: var(--shadow-md);\n}\n","import { PodOS } from '@pod-os/core';\nimport { Component, Element, Event, EventEmitter, h, Host, Listen, State } from '@stencil/core';\n\nimport session from '../../store/session';\n\n@Component({\n tag: 'pos-login',\n shadow: true,\n styleUrl: 'pos-login.css',\n})\nexport class PosLogin {\n @Event({ eventName: 'pod-os:init' }) initializeOsEmitter: EventEmitter;\n\n @State() os: PodOS;\n\n @Element() host: HTMLElement;\n\n @State()\n private customLoggedInComponent: boolean = false;\n\n componentWillLoad() {\n this.customLoggedInComponent = !!this.host.querySelector('[slot=\"if-logged-in\"]');\n this.initializeOsEmitter.emit(this.setOs);\n }\n\n setOs = async (os: PodOS) => {\n this.os = os;\n };\n\n login(event: CustomEvent<string>) {\n const idpUrl = event.detail;\n this.os.login(idpUrl);\n }\n\n @Listen('pod-os:logout', { target: 'document' })\n logout() {\n this.os.logout();\n }\n\n private dialog: HTMLPosDialogElement;\n\n @Listen('pod-os:login', { target: 'document' })\n onLogin() {\n this.openDialog();\n }\n\n openDialog() {\n this.dialog.showModal();\n }\n\n render() {\n return (\n <Host>\n <div class=\"container\">\n {!session.state.isLoggedIn ? (\n <button id=\"login\" onClick={() => this.openDialog()}>\n Login\n </button>\n ) : (\n this.loggedInComponents()\n )}\n </div>\n <pos-dialog ref={el => (this.dialog = el)}>\n <span slot=\"title\">Sign in to your Pod</span>\n <pos-login-form onPod-os:idp-url-selected={ev => this.login(ev)} slot=\"content\" />\n </pos-dialog>\n </Host>\n );\n }\n\n private loggedInComponents() {\n return this.customLoggedInComponent ? <slot name=\"if-logged-in\"></slot> : this.defaultLoggedInComponents();\n }\n\n private defaultLoggedInComponents() {\n return [\n <pos-resource uri={session.state.webId}>\n <span class=\"user-data\">\n <pos-picture />\n <pos-label />\n </span>\n </pos-resource>,\n <button id=\"logout\" onClick={() => this.logout()}>\n Logout\n </button>,\n ];\n }\n}\n"],"version":3}
|
|
@@ -4,7 +4,7 @@ import { d as defineCustomElement$3 } from './pos-label2.js';
|
|
|
4
4
|
import { d as defineCustomElement$2 } from './pos-make-findable2.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './pos-resource2.js';
|
|
6
6
|
|
|
7
|
-
const posNavigationBarCss = "section.current {\n display: flex;\n height: var(--pos-navigation-bar-height);\n flex-grow: 1;\n gap: 0;\n background-color: var(--pos-input-background-color);\n border-radius: var(--radius-md);\n width: 100%;\n &:focus-within {\n outline: var(--pos-input-focus-outline);\n }\n}\n\nsection.current button {\n cursor: pointer;\n font-size: var(--scale-1);\n flex-grow: 1;\n background: none;\n color: var(--pos-normal-text-color);\n outline: none;\n border: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n &:focus {\n text-decoration: underline;\n }\n}\n";
|
|
7
|
+
const posNavigationBarCss = "section.current {\n display: flex;\n height: var(--pos-navigation-bar-height);\n flex-grow: 1;\n gap: 0;\n background-color: var(--pos-input-background-color);\n border-radius: var(--radius-md);\n width: 100%;\n &:focus-within {\n outline: var(--pos-input-focus-outline);\n }\n}\n\nsection.current button {\n cursor: pointer;\n font-size: var(--scale-1);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n background: none;\n color: var(--pos-normal-text-color);\n outline: none;\n border: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n &:focus {\n text-decoration: underline;\n }\n :first-child {\n flex-grow: 1;\n }\n svg {\n width: var(--size-6);\n color: var(--pos-subtle-text-color);\n }\n}\n";
|
|
8
8
|
const PosNavigationBarStyle0 = posNavigationBarCss;
|
|
9
9
|
|
|
10
10
|
const PosNavigationBar = /*@__PURE__*/ proxyCustomElement(class PosNavigationBar extends HTMLElement {
|
|
@@ -25,7 +25,10 @@ const PosNavigationBar = /*@__PURE__*/ proxyCustomElement(class PosNavigationBar
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const ariaLabel = this.current ? `${this.current.label()} (Click to search or enter URI)` : 'Search or enter URI';
|
|
28
|
-
return (h("section", { key: '79ac5c5dc2d6c2d44e852f9671d0895a29fb62a6', class: "current" }, this.current && this.searchIndexReady && h("pos-make-findable", { key: 'be92d99ead125c1a29520639da6dfd6e28007d85', uri: this.current.uri }), h("button", { key: '4ecdd49e46614f604c36ef760422d54f99ab00f1', "aria-label": ariaLabel, onClick: () => this.onClick() }, this.current ? this.current.label() : 'Search or enter URI')));
|
|
28
|
+
return (h("section", { key: '79ac5c5dc2d6c2d44e852f9671d0895a29fb62a6', class: "current" }, this.current && this.searchIndexReady && h("pos-make-findable", { key: 'be92d99ead125c1a29520639da6dfd6e28007d85', uri: this.current.uri }), h("button", { key: '4ecdd49e46614f604c36ef760422d54f99ab00f1', "aria-label": ariaLabel, onClick: () => this.onClick() }, h("div", { key: '002c4138be9b798cecec90de50f7500cffd89df7' }, this.current ? this.current.label() : 'Search or enter URI'), this.icon())));
|
|
29
|
+
}
|
|
30
|
+
icon() {
|
|
31
|
+
return (h("svg", { "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" })));
|
|
29
32
|
}
|
|
30
33
|
static get style() { return PosNavigationBarStyle0; }
|
|
31
34
|
}, [1, "pos-navigation-bar", {
|