@pod-os/elements 0.12.1-24fd45f.0 → 0.12.1-3fa6e4c.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/elements.cjs.js +1 -1
- package/dist/cjs/{index-3113365f.js → index-17fc657f.js} +26 -24
- package/dist/cjs/{ion-app_26.cjs.entry.js → ion-app_29.cjs.entry.js} +104 -2
- package/dist/cjs/{ion-badge_12.cjs.entry.js → ion-badge_11.cjs.entry.js} +0 -33
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pos-container-contents.cjs.entry.js +1 -1
- package/dist/cjs/pos-subjects.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/pos-add-new-thing/pos-add-new-thing.css +9 -0
- package/dist/collection/components/pos-add-new-thing/pos-add-new-thing.js +25 -1
- package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.css +3 -0
- package/dist/collection/components/pos-new-thing-form/pos-new-thing-form.js +120 -0
- package/dist/collection/components/pos-router/pos-router.css +11 -0
- package/dist/collection/components/pos-router/pos-router.js +11 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index8.js +26 -24
- package/dist/components/pos-add-new-thing.js +1 -40
- package/dist/components/pos-add-new-thing2.js +57 -0
- package/dist/components/pos-app-browser.js +66 -48
- package/dist/components/pos-new-thing-form.d.ts +11 -0
- package/dist/components/pos-new-thing-form.js +6 -0
- package/dist/components/pos-new-thing-form2.js +77 -0
- package/dist/components/pos-router2.js +40 -19
- package/dist/elements/elements.esm.js +1 -1
- package/dist/elements/{p-c2917442.entry.js → p-5e9469b8.entry.js} +1 -1
- package/dist/elements/{p-08d8ab26.js → p-6b6d1e63.js} +1 -1
- package/dist/elements/{p-04bb69f5.entry.js → p-b4bf2dcf.entry.js} +1 -1
- package/dist/elements/{p-1b06da67.entry.js → p-c58afed3.entry.js} +1 -1
- package/dist/elements/{p-538723fe.entry.js → p-f73aa20d.entry.js} +3 -3
- package/dist/esm/elements.js +1 -1
- package/dist/esm/{index-65f7eec3.js → index-62628084.js} +26 -24
- package/dist/esm/{ion-app_26.entry.js → ion-app_29.entry.js} +102 -3
- package/dist/esm/{ion-badge_12.entry.js → ion-badge_11.entry.js} +1 -33
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pos-container-contents.entry.js +1 -1
- package/dist/esm/pos-subjects.entry.js +1 -1
- package/dist/types/components/pos-add-new-thing/pos-add-new-thing.d.ts +1 -0
- package/dist/types/components/pos-new-thing-form/pos-new-thing-form.d.ts +20 -0
- package/dist/types/components.d.ts +23 -0
- package/package.json +2 -2
- package/dist/cjs/pos-add-new-thing.cjs.entry.js +0 -25
- package/dist/elements/p-b6aae9ef.entry.js +0 -1
- package/dist/esm/pos-add-new-thing.entry.js +0 -21
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"./components/pos-literals/pos-literals.js",
|
|
20
20
|
"./components/pos-login/pos-login.js",
|
|
21
21
|
"./components/pos-navigation-bar/pos-navigation-bar.js",
|
|
22
|
+
"./components/pos-new-thing-form/pos-new-thing-form.js",
|
|
22
23
|
"./components/pos-picture/pos-picture.js",
|
|
23
24
|
"./components/pos-relations/pos-relations.js",
|
|
24
25
|
"./components/pos-resource/pos-resource.js",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class PosAddNewThing {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.referenceUri = undefined;
|
|
5
|
+
}
|
|
3
6
|
openDialog() {
|
|
4
7
|
this.dialog.showModal();
|
|
5
8
|
}
|
|
@@ -7,7 +10,7 @@ export class PosAddNewThing {
|
|
|
7
10
|
this.dialog.close();
|
|
8
11
|
}
|
|
9
12
|
render() {
|
|
10
|
-
return (h(Host, null, h("button", { title: "Add a new thing", onClick: () => this.openDialog() }, h("ion-icon", { name: "add-circle-outline" })), h("dialog", { ref: el => (this.dialog = el) }, h("button", { title: "Close", onClick: () => this.closeDialog() }, h("ion-icon", { name: "close-outline" })))));
|
|
13
|
+
return (h(Host, null, h("button", { title: "Add a new thing", onClick: () => this.openDialog() }, h("ion-icon", { name: "add-circle-outline" })), h("dialog", { ref: el => (this.dialog = el) }, h("button", { title: "Close", onClick: () => this.closeDialog() }, h("ion-icon", { name: "close-outline" })), h("pos-new-thing-form", { referenceUri: this.referenceUri }))));
|
|
11
14
|
}
|
|
12
15
|
static get is() { return "pos-add-new-thing"; }
|
|
13
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,4 +24,25 @@ export class PosAddNewThing {
|
|
|
21
24
|
"$": ["pos-add-new-thing.css"]
|
|
22
25
|
};
|
|
23
26
|
}
|
|
27
|
+
static get properties() {
|
|
28
|
+
return {
|
|
29
|
+
"referenceUri": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"mutable": false,
|
|
32
|
+
"complexType": {
|
|
33
|
+
"original": "string",
|
|
34
|
+
"resolved": "string",
|
|
35
|
+
"references": {}
|
|
36
|
+
},
|
|
37
|
+
"required": true,
|
|
38
|
+
"optional": false,
|
|
39
|
+
"docs": {
|
|
40
|
+
"tags": [],
|
|
41
|
+
"text": ""
|
|
42
|
+
},
|
|
43
|
+
"attribute": "reference-uri",
|
|
44
|
+
"reflect": false
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
24
48
|
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import { subscribePodOs } from '../events/PodOsAware';
|
|
3
|
+
export class PosNewThingForm {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.receivePodOs = async (os) => {
|
|
6
|
+
this.os = os;
|
|
7
|
+
};
|
|
8
|
+
this.referenceUri = undefined;
|
|
9
|
+
this.os = undefined;
|
|
10
|
+
this.newUri = undefined;
|
|
11
|
+
this.name = undefined;
|
|
12
|
+
this.selectedTypeUri = undefined;
|
|
13
|
+
this.canSubmit = false;
|
|
14
|
+
}
|
|
15
|
+
validate() {
|
|
16
|
+
this.canSubmit = Boolean(this.name && this.selectedTypeUri);
|
|
17
|
+
}
|
|
18
|
+
componentWillLoad() {
|
|
19
|
+
subscribePodOs(this);
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (h("form", { onSubmit: e => this.handleSubmit(e) }, h("label", null, "Type", h("pos-select-term", { "onPod-os:term-selected": e => this.onTermSelected(e) })), h("label", null, "Name", h("input", { type: "text", value: this.name, onInput: e => this.handleChange(e) })), h("div", null, this.newUri), h("input", { type: "submit", value: "Create", disabled: !this.canSubmit })));
|
|
23
|
+
}
|
|
24
|
+
handleChange(event) {
|
|
25
|
+
this.name = event.target.value;
|
|
26
|
+
this.newUri = this.os.proposeUriForNewThing(this.referenceUri, this.name);
|
|
27
|
+
}
|
|
28
|
+
onTermSelected(event) {
|
|
29
|
+
this.selectedTypeUri = event.detail.uri;
|
|
30
|
+
}
|
|
31
|
+
async handleSubmit(event) {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
await this.os.addNewThing(this.newUri, this.name, this.selectedTypeUri);
|
|
34
|
+
this.linkEmitter.emit(this.newUri);
|
|
35
|
+
}
|
|
36
|
+
static get is() { return "pos-new-thing-form"; }
|
|
37
|
+
static get encapsulation() { return "shadow"; }
|
|
38
|
+
static get originalStyleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["pos-new-thing-form.css"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get styleUrls() {
|
|
44
|
+
return {
|
|
45
|
+
"$": ["pos-new-thing-form.css"]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static get properties() {
|
|
49
|
+
return {
|
|
50
|
+
"referenceUri": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "string",
|
|
55
|
+
"resolved": "string",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": true,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "reference-uri",
|
|
65
|
+
"reflect": false
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
static get states() {
|
|
70
|
+
return {
|
|
71
|
+
"os": {},
|
|
72
|
+
"newUri": {},
|
|
73
|
+
"name": {},
|
|
74
|
+
"selectedTypeUri": {},
|
|
75
|
+
"canSubmit": {}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
static get events() {
|
|
79
|
+
return [{
|
|
80
|
+
"method": "linkEmitter",
|
|
81
|
+
"name": "pod-os:link",
|
|
82
|
+
"bubbles": true,
|
|
83
|
+
"cancelable": true,
|
|
84
|
+
"composed": true,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": ""
|
|
88
|
+
},
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "any",
|
|
91
|
+
"resolved": "any",
|
|
92
|
+
"references": {}
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
"method": "subscribePodOs",
|
|
96
|
+
"name": "pod-os:init",
|
|
97
|
+
"bubbles": true,
|
|
98
|
+
"cancelable": true,
|
|
99
|
+
"composed": true,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "any",
|
|
106
|
+
"resolved": "any",
|
|
107
|
+
"references": {}
|
|
108
|
+
}
|
|
109
|
+
}];
|
|
110
|
+
}
|
|
111
|
+
static get watchers() {
|
|
112
|
+
return [{
|
|
113
|
+
"propName": "name",
|
|
114
|
+
"methodName": "validate"
|
|
115
|
+
}, {
|
|
116
|
+
"propName": "selectedTypeUri",
|
|
117
|
+
"methodName": "validate"
|
|
118
|
+
}];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -22,9 +22,19 @@ export class PosRouter {
|
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
console.log('render router', this.uri);
|
|
25
|
-
return (h(Router.Switch, null, h(Route, { path: match('', { exact: false }) }, h("pos-navigation-bar", { uri: this.uri }), h("pos-resource", { key: this.uri, uri: this.uri }, h("pos-type-router", null)))));
|
|
25
|
+
return (h(Router.Switch, null, h(Route, { path: match('', { exact: false }) }, h("div", { class: "toolbar" }, h("pos-add-new-thing", { referenceUri: this.uri }), h("pos-navigation-bar", { uri: this.uri })), h("pos-resource", { key: this.uri, uri: this.uri }, h("pos-type-router", null)))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "pos-router"; }
|
|
28
|
+
static get originalStyleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["pos-router.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get styleUrls() {
|
|
34
|
+
return {
|
|
35
|
+
"$": ["pos-router.css"]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
28
38
|
static get states() {
|
|
29
39
|
return {
|
|
30
40
|
"uri": {}
|
|
@@ -18,6 +18,7 @@ export { PosLabel as PosLabel } from '../types/components/pos-label/pos-label';
|
|
|
18
18
|
export { PosLiterals as PosLiterals } from '../types/components/pos-literals/pos-literals';
|
|
19
19
|
export { PosLogin as PosLogin } from '../types/components/pos-login/pos-login';
|
|
20
20
|
export { PosNavigationBar as PosNavigationBar } from '../types/components/pos-navigation-bar/pos-navigation-bar';
|
|
21
|
+
export { PosNewThingForm as PosNewThingForm } from '../types/components/pos-new-thing-form/pos-new-thing-form';
|
|
21
22
|
export { PosPicture as PosPicture } from '../types/components/pos-picture/pos-picture';
|
|
22
23
|
export { PosRelations as PosRelations } from '../types/components/pos-relations/pos-relations';
|
|
23
24
|
export { PosResource as PosResource } from '../types/components/pos-resource/pos-resource';
|
package/dist/components/index.js
CHANGED
|
@@ -114,6 +114,7 @@ export { PosLabel, defineCustomElement as defineCustomElementPosLabel } from './
|
|
|
114
114
|
export { PosLiterals, defineCustomElement as defineCustomElementPosLiterals } from './pos-literals.js';
|
|
115
115
|
export { PosLogin, defineCustomElement as defineCustomElementPosLogin } from './pos-login.js';
|
|
116
116
|
export { PosNavigationBar, defineCustomElement as defineCustomElementPosNavigationBar } from './pos-navigation-bar.js';
|
|
117
|
+
export { PosNewThingForm, defineCustomElement as defineCustomElementPosNewThingForm } from './pos-new-thing-form.js';
|
|
117
118
|
export { PosPicture, defineCustomElement as defineCustomElementPosPicture } from './pos-picture.js';
|
|
118
119
|
export { PosRelations, defineCustomElement as defineCustomElementPosRelations } from './pos-relations.js';
|
|
119
120
|
export { PosResource, defineCustomElement as defineCustomElementPosResource } from './pos-resource.js';
|
|
@@ -43913,30 +43913,32 @@ var Store = class {
|
|
|
43913
43913
|
);
|
|
43914
43914
|
}
|
|
43915
43915
|
addNewThing(uri5, name6, type4) {
|
|
43916
|
-
return this
|
|
43917
|
-
|
|
43918
|
-
|
|
43919
|
-
|
|
43920
|
-
|
|
43921
|
-
|
|
43922
|
-
|
|
43923
|
-
|
|
43924
|
-
|
|
43925
|
-
|
|
43926
|
-
|
|
43927
|
-
|
|
43928
|
-
|
|
43929
|
-
|
|
43930
|
-
|
|
43931
|
-
|
|
43932
|
-
|
|
43933
|
-
|
|
43934
|
-
|
|
43935
|
-
|
|
43936
|
-
|
|
43937
|
-
|
|
43938
|
-
|
|
43939
|
-
|
|
43916
|
+
return __async(this, null, function* () {
|
|
43917
|
+
yield this.updater.update(
|
|
43918
|
+
[],
|
|
43919
|
+
[
|
|
43920
|
+
st2(
|
|
43921
|
+
namedNode2(uri5),
|
|
43922
|
+
namedNode2("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
|
|
43923
|
+
namedNode2(type4),
|
|
43924
|
+
namedNode2(uri5).doc()
|
|
43925
|
+
),
|
|
43926
|
+
st2(
|
|
43927
|
+
namedNode2(uri5),
|
|
43928
|
+
namedNode2("http://www.w3.org/2000/01/rdf-schema#label"),
|
|
43929
|
+
lit2(name6),
|
|
43930
|
+
namedNode2(uri5).doc()
|
|
43931
|
+
)
|
|
43932
|
+
],
|
|
43933
|
+
void 0,
|
|
43934
|
+
false,
|
|
43935
|
+
{
|
|
43936
|
+
// explicitly omit credentials due to
|
|
43937
|
+
// https://github.com/pod-os/PodOS/issues/17
|
|
43938
|
+
credentials: "omit"
|
|
43939
|
+
}
|
|
43940
|
+
);
|
|
43941
|
+
});
|
|
43940
43942
|
}
|
|
43941
43943
|
};
|
|
43942
43944
|
|
|
@@ -1,43 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
|
3
|
-
|
|
4
|
-
const posAddNewThingCss = ":host{display:block}";
|
|
5
|
-
|
|
6
|
-
const PosAddNewThing$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
}
|
|
12
|
-
openDialog() {
|
|
13
|
-
this.dialog.showModal();
|
|
14
|
-
}
|
|
15
|
-
closeDialog() {
|
|
16
|
-
this.dialog.close();
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
return (h(Host, null, h("button", { title: "Add a new thing", onClick: () => this.openDialog() }, h("ion-icon", { name: "add-circle-outline" })), h("dialog", { ref: el => (this.dialog = el) }, h("button", { title: "Close", onClick: () => this.closeDialog() }, h("ion-icon", { name: "close-outline" })))));
|
|
20
|
-
}
|
|
21
|
-
static get style() { return posAddNewThingCss; }
|
|
22
|
-
}, [1, "pos-add-new-thing"]);
|
|
23
|
-
function defineCustomElement$1() {
|
|
24
|
-
if (typeof customElements === "undefined") {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const components = ["pos-add-new-thing", "ion-icon"];
|
|
28
|
-
components.forEach(tagName => { switch (tagName) {
|
|
29
|
-
case "pos-add-new-thing":
|
|
30
|
-
if (!customElements.get(tagName)) {
|
|
31
|
-
customElements.define(tagName, PosAddNewThing$1);
|
|
32
|
-
}
|
|
33
|
-
break;
|
|
34
|
-
case "ion-icon":
|
|
35
|
-
if (!customElements.get(tagName)) {
|
|
36
|
-
defineCustomElement$2();
|
|
37
|
-
}
|
|
38
|
-
break;
|
|
39
|
-
} });
|
|
40
|
-
}
|
|
1
|
+
import { P as PosAddNewThing$1, d as defineCustomElement$1 } from './pos-add-new-thing2.js';
|
|
41
2
|
|
|
42
3
|
const PosAddNewThing = PosAddNewThing$1;
|
|
43
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$3 } from './icon.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './pos-new-thing-form2.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './pos-select-term2.js';
|
|
5
|
+
|
|
6
|
+
const posAddNewThingCss = ":host{display:block}button{width:2rem;height:2rem;background-color:#3880ff;color:white;border-radius:5px;border:none}";
|
|
7
|
+
|
|
8
|
+
const PosAddNewThing = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.referenceUri = undefined;
|
|
14
|
+
}
|
|
15
|
+
openDialog() {
|
|
16
|
+
this.dialog.showModal();
|
|
17
|
+
}
|
|
18
|
+
closeDialog() {
|
|
19
|
+
this.dialog.close();
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (h(Host, null, h("button", { title: "Add a new thing", onClick: () => this.openDialog() }, h("ion-icon", { name: "add-circle-outline" })), h("dialog", { ref: el => (this.dialog = el) }, h("button", { title: "Close", onClick: () => this.closeDialog() }, h("ion-icon", { name: "close-outline" })), h("pos-new-thing-form", { referenceUri: this.referenceUri }))));
|
|
23
|
+
}
|
|
24
|
+
static get style() { return posAddNewThingCss; }
|
|
25
|
+
}, [1, "pos-add-new-thing", {
|
|
26
|
+
"referenceUri": [1, "reference-uri"]
|
|
27
|
+
}]);
|
|
28
|
+
function defineCustomElement() {
|
|
29
|
+
if (typeof customElements === "undefined") {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const components = ["pos-add-new-thing", "ion-icon", "pos-new-thing-form", "pos-select-term"];
|
|
33
|
+
components.forEach(tagName => { switch (tagName) {
|
|
34
|
+
case "pos-add-new-thing":
|
|
35
|
+
if (!customElements.get(tagName)) {
|
|
36
|
+
customElements.define(tagName, PosAddNewThing);
|
|
37
|
+
}
|
|
38
|
+
break;
|
|
39
|
+
case "ion-icon":
|
|
40
|
+
if (!customElements.get(tagName)) {
|
|
41
|
+
defineCustomElement$3();
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
case "pos-new-thing-form":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
defineCustomElement$2();
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
case "pos-select-term":
|
|
50
|
+
if (!customElements.get(tagName)) {
|
|
51
|
+
defineCustomElement$1();
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
} });
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { PosAddNewThing as P, defineCustomElement as d };
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$
|
|
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$
|
|
2
|
+
import { d as defineCustomElement$t } from './app.js';
|
|
3
|
+
import { d as defineCustomElement$s } from './button.js';
|
|
4
|
+
import { d as defineCustomElement$r } from './card.js';
|
|
5
|
+
import { d as defineCustomElement$q } from './card-content.js';
|
|
6
|
+
import { d as defineCustomElement$p } from './card-header.js';
|
|
7
|
+
import { d as defineCustomElement$o } from './content.js';
|
|
8
|
+
import { d as defineCustomElement$n } from './footer.js';
|
|
9
|
+
import { d as defineCustomElement$m } from './header.js';
|
|
10
|
+
import { d as defineCustomElement$l } from './icon.js';
|
|
11
|
+
import { d as defineCustomElement$k } from './progress-bar.js';
|
|
12
|
+
import { d as defineCustomElement$j } from './ripple-effect.js';
|
|
13
|
+
import { d as defineCustomElement$i } from './searchbar.js';
|
|
14
|
+
import { d as defineCustomElement$h } from './skeleton-text.js';
|
|
15
|
+
import { d as defineCustomElement$g } from './title.js';
|
|
16
|
+
import { d as defineCustomElement$f } from './toolbar.js';
|
|
17
|
+
import { d as defineCustomElement$e } from './pos-add-new-thing2.js';
|
|
18
|
+
import { d as defineCustomElement$d } from './pos-app2.js';
|
|
19
|
+
import { d as defineCustomElement$c } from './pos-error-toast2.js';
|
|
20
|
+
import { d as defineCustomElement$b } from './pos-image2.js';
|
|
21
|
+
import { d as defineCustomElement$a } from './pos-label2.js';
|
|
22
|
+
import { d as defineCustomElement$9 } from './pos-login2.js';
|
|
23
|
+
import { d as defineCustomElement$8 } from './pos-navigation-bar2.js';
|
|
24
|
+
import { d as defineCustomElement$7 } from './pos-new-thing-form2.js';
|
|
25
|
+
import { d as defineCustomElement$6 } from './pos-picture2.js';
|
|
26
|
+
import { d as defineCustomElement$5 } from './pos-resource2.js';
|
|
27
|
+
import { d as defineCustomElement$4 } from './pos-router2.js';
|
|
28
|
+
import { d as defineCustomElement$3 } from './pos-select-term2.js';
|
|
26
29
|
import { d as defineCustomElement$2 } from './pos-type-router2.js';
|
|
27
30
|
|
|
28
31
|
const PosAppBrowser$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -38,7 +41,7 @@ function defineCustomElement$1() {
|
|
|
38
41
|
if (typeof customElements === "undefined") {
|
|
39
42
|
return;
|
|
40
43
|
}
|
|
41
|
-
const components = ["pos-app-browser", "ion-app", "ion-button", "ion-card", "ion-card-content", "ion-card-header", "ion-content", "ion-footer", "ion-header", "ion-icon", "ion-progress-bar", "ion-ripple-effect", "ion-searchbar", "ion-skeleton-text", "ion-title", "ion-toolbar", "pos-app", "pos-error-toast", "pos-image", "pos-label", "pos-login", "pos-navigation-bar", "pos-picture", "pos-resource", "pos-router", "pos-type-router"];
|
|
44
|
+
const components = ["pos-app-browser", "ion-app", "ion-button", "ion-card", "ion-card-content", "ion-card-header", "ion-content", "ion-footer", "ion-header", "ion-icon", "ion-progress-bar", "ion-ripple-effect", "ion-searchbar", "ion-skeleton-text", "ion-title", "ion-toolbar", "pos-add-new-thing", "pos-app", "pos-error-toast", "pos-image", "pos-label", "pos-login", "pos-navigation-bar", "pos-new-thing-form", "pos-picture", "pos-resource", "pos-router", "pos-select-term", "pos-type-router"];
|
|
42
45
|
components.forEach(tagName => { switch (tagName) {
|
|
43
46
|
case "pos-app-browser":
|
|
44
47
|
if (!customElements.get(tagName)) {
|
|
@@ -47,120 +50,135 @@ function defineCustomElement$1() {
|
|
|
47
50
|
break;
|
|
48
51
|
case "ion-app":
|
|
49
52
|
if (!customElements.get(tagName)) {
|
|
50
|
-
defineCustomElement$
|
|
53
|
+
defineCustomElement$t();
|
|
51
54
|
}
|
|
52
55
|
break;
|
|
53
56
|
case "ion-button":
|
|
54
57
|
if (!customElements.get(tagName)) {
|
|
55
|
-
defineCustomElement$
|
|
58
|
+
defineCustomElement$s();
|
|
56
59
|
}
|
|
57
60
|
break;
|
|
58
61
|
case "ion-card":
|
|
59
62
|
if (!customElements.get(tagName)) {
|
|
60
|
-
defineCustomElement$
|
|
63
|
+
defineCustomElement$r();
|
|
61
64
|
}
|
|
62
65
|
break;
|
|
63
66
|
case "ion-card-content":
|
|
64
67
|
if (!customElements.get(tagName)) {
|
|
65
|
-
defineCustomElement$
|
|
68
|
+
defineCustomElement$q();
|
|
66
69
|
}
|
|
67
70
|
break;
|
|
68
71
|
case "ion-card-header":
|
|
69
72
|
if (!customElements.get(tagName)) {
|
|
70
|
-
defineCustomElement$
|
|
73
|
+
defineCustomElement$p();
|
|
71
74
|
}
|
|
72
75
|
break;
|
|
73
76
|
case "ion-content":
|
|
74
77
|
if (!customElements.get(tagName)) {
|
|
75
|
-
defineCustomElement$
|
|
78
|
+
defineCustomElement$o();
|
|
76
79
|
}
|
|
77
80
|
break;
|
|
78
81
|
case "ion-footer":
|
|
79
82
|
if (!customElements.get(tagName)) {
|
|
80
|
-
defineCustomElement$
|
|
83
|
+
defineCustomElement$n();
|
|
81
84
|
}
|
|
82
85
|
break;
|
|
83
86
|
case "ion-header":
|
|
84
87
|
if (!customElements.get(tagName)) {
|
|
85
|
-
defineCustomElement$
|
|
88
|
+
defineCustomElement$m();
|
|
86
89
|
}
|
|
87
90
|
break;
|
|
88
91
|
case "ion-icon":
|
|
89
92
|
if (!customElements.get(tagName)) {
|
|
90
|
-
defineCustomElement$
|
|
93
|
+
defineCustomElement$l();
|
|
91
94
|
}
|
|
92
95
|
break;
|
|
93
96
|
case "ion-progress-bar":
|
|
94
97
|
if (!customElements.get(tagName)) {
|
|
95
|
-
defineCustomElement$
|
|
98
|
+
defineCustomElement$k();
|
|
96
99
|
}
|
|
97
100
|
break;
|
|
98
101
|
case "ion-ripple-effect":
|
|
99
102
|
if (!customElements.get(tagName)) {
|
|
100
|
-
defineCustomElement$
|
|
103
|
+
defineCustomElement$j();
|
|
101
104
|
}
|
|
102
105
|
break;
|
|
103
106
|
case "ion-searchbar":
|
|
104
107
|
if (!customElements.get(tagName)) {
|
|
105
|
-
defineCustomElement$
|
|
108
|
+
defineCustomElement$i();
|
|
106
109
|
}
|
|
107
110
|
break;
|
|
108
111
|
case "ion-skeleton-text":
|
|
109
112
|
if (!customElements.get(tagName)) {
|
|
110
|
-
defineCustomElement$
|
|
113
|
+
defineCustomElement$h();
|
|
111
114
|
}
|
|
112
115
|
break;
|
|
113
116
|
case "ion-title":
|
|
114
117
|
if (!customElements.get(tagName)) {
|
|
115
|
-
defineCustomElement$
|
|
118
|
+
defineCustomElement$g();
|
|
116
119
|
}
|
|
117
120
|
break;
|
|
118
121
|
case "ion-toolbar":
|
|
119
122
|
if (!customElements.get(tagName)) {
|
|
120
|
-
defineCustomElement$
|
|
123
|
+
defineCustomElement$f();
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
case "pos-add-new-thing":
|
|
127
|
+
if (!customElements.get(tagName)) {
|
|
128
|
+
defineCustomElement$e();
|
|
121
129
|
}
|
|
122
130
|
break;
|
|
123
131
|
case "pos-app":
|
|
124
132
|
if (!customElements.get(tagName)) {
|
|
125
|
-
defineCustomElement$
|
|
133
|
+
defineCustomElement$d();
|
|
126
134
|
}
|
|
127
135
|
break;
|
|
128
136
|
case "pos-error-toast":
|
|
129
137
|
if (!customElements.get(tagName)) {
|
|
130
|
-
defineCustomElement$
|
|
138
|
+
defineCustomElement$c();
|
|
131
139
|
}
|
|
132
140
|
break;
|
|
133
141
|
case "pos-image":
|
|
134
142
|
if (!customElements.get(tagName)) {
|
|
135
|
-
defineCustomElement$
|
|
143
|
+
defineCustomElement$b();
|
|
136
144
|
}
|
|
137
145
|
break;
|
|
138
146
|
case "pos-label":
|
|
139
147
|
if (!customElements.get(tagName)) {
|
|
140
|
-
defineCustomElement$
|
|
148
|
+
defineCustomElement$a();
|
|
141
149
|
}
|
|
142
150
|
break;
|
|
143
151
|
case "pos-login":
|
|
144
152
|
if (!customElements.get(tagName)) {
|
|
145
|
-
defineCustomElement$
|
|
153
|
+
defineCustomElement$9();
|
|
146
154
|
}
|
|
147
155
|
break;
|
|
148
156
|
case "pos-navigation-bar":
|
|
149
157
|
if (!customElements.get(tagName)) {
|
|
150
|
-
defineCustomElement$
|
|
158
|
+
defineCustomElement$8();
|
|
159
|
+
}
|
|
160
|
+
break;
|
|
161
|
+
case "pos-new-thing-form":
|
|
162
|
+
if (!customElements.get(tagName)) {
|
|
163
|
+
defineCustomElement$7();
|
|
151
164
|
}
|
|
152
165
|
break;
|
|
153
166
|
case "pos-picture":
|
|
154
167
|
if (!customElements.get(tagName)) {
|
|
155
|
-
defineCustomElement$
|
|
168
|
+
defineCustomElement$6();
|
|
156
169
|
}
|
|
157
170
|
break;
|
|
158
171
|
case "pos-resource":
|
|
159
172
|
if (!customElements.get(tagName)) {
|
|
160
|
-
defineCustomElement$
|
|
173
|
+
defineCustomElement$5();
|
|
161
174
|
}
|
|
162
175
|
break;
|
|
163
176
|
case "pos-router":
|
|
177
|
+
if (!customElements.get(tagName)) {
|
|
178
|
+
defineCustomElement$4();
|
|
179
|
+
}
|
|
180
|
+
break;
|
|
181
|
+
case "pos-select-term":
|
|
164
182
|
if (!customElements.get(tagName)) {
|
|
165
183
|
defineCustomElement$3();
|
|
166
184
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PosNewThingForm extends Components.PosNewThingForm, HTMLElement {}
|
|
4
|
+
export const PosNewThingForm: {
|
|
5
|
+
prototype: PosNewThingForm;
|
|
6
|
+
new (): PosNewThingForm;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|