@onsvisual/svelte-components 0.0.1 → 0.0.3
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/@types/components/decorators/Blockquote/Blockquote.svelte.d.ts +27 -0
- package/dist/@types/components/layout/Divider/Divider.svelte.d.ts +33 -0
- package/dist/@types/components/layout/Section/Section.svelte.d.ts +41 -0
- package/dist/@types/components/layout/TitleBlock/Meta.svelte.d.ts +23 -0
- package/dist/@types/components/layout/TitleBlock/TitleBlock.svelte.d.ts +23 -0
- package/dist/@types/components/wrappers/Embed/Embed.svelte.d.ts +27 -0
- package/dist/@types/components/wrappers/Main/Main.svelte.d.ts +27 -0
- package/dist/@types/index.d.ts +2 -3
- package/dist/components/decorators/Blockquote/Blockquote.svelte +27 -0
- package/dist/components/layout/Divider/Divider.svelte +53 -0
- package/dist/components/layout/Footer/Footer.svelte +1 -1
- package/dist/components/layout/Header/Header.svelte +1 -1
- package/dist/components/layout/Section/Section.svelte +65 -0
- package/dist/components/layout/TitleBlock/Meta.svelte +0 -0
- package/dist/components/layout/TitleBlock/TitleBlock.svelte +0 -0
- package/dist/components/{layout → wrappers}/Container/Container.svelte +4 -2
- package/dist/components/wrappers/Embed/Embed.svelte +21 -0
- package/dist/components/wrappers/Main/Main.svelte +3 -0
- package/dist/css/main.css +4 -55
- package/dist/index.js +5 -4
- package/package.json +20 -12
- package/dist/@types/components/{ui → decorators}/Em/Em.svelte.d.ts +0 -0
- package/dist/@types/components/{ui → inputs}/Button/Button.svelte.d.ts +0 -0
- package/dist/@types/components/{ui → inputs}/Button/Icon.svelte.d.ts +0 -0
- package/dist/@types/components/{ui → inputs}/Dropdown/Dropdown.svelte.d.ts +4 -4
- package/dist/@types/components/{ui → inputs}/Input/Input.svelte.d.ts +2 -2
- package/dist/@types/components/{ui → inputs}/Select/Select.svelte.d.ts +4 -4
- package/dist/@types/components/{ui → inputs}/Textarea/Textarea.svelte.d.ts +2 -2
- /package/dist/@types/components/{layout → wrappers}/Container/Container.svelte.d.ts +0 -0
- /package/dist/@types/components/{layout → wrappers}/Theme/Theme.svelte.d.ts +0 -0
- /package/dist/@types/components/{layout → wrappers}/Theme/themes.d.ts +0 -0
- /package/dist/components/{ui → decorators}/Em/Em.svelte +0 -0
- /package/dist/components/{ui → inputs}/Button/Button.svelte +0 -0
- /package/dist/components/{ui → inputs}/Button/Icon.svelte +0 -0
- /package/dist/components/{ui → inputs}/Dropdown/Dropdown.svelte +0 -0
- /package/dist/components/{ui → inputs}/Input/Input.svelte +0 -0
- /package/dist/components/{ui → inputs}/Select/Select.svelte +0 -0
- /package/dist/components/{ui → inputs}/Textarea/Textarea.svelte +0 -0
- /package/dist/components/{layout → wrappers}/Theme/Theme.svelte +0 -0
- /package/dist/components/{layout → wrappers}/Theme/themes.js +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} BlockquoteProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} BlockquoteEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} BlockquoteSlots */
|
|
4
|
+
export default class Blockquote extends SvelteComponentTyped<{
|
|
5
|
+
attribution?: string;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type BlockquoteProps = typeof __propDef.props;
|
|
13
|
+
export type BlockquoteEvents = typeof __propDef.events;
|
|
14
|
+
export type BlockquoteSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
attribution?: string;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} DividerProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} DividerEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} DividerSlots */
|
|
4
|
+
export default class Divider extends SvelteComponentTyped<{
|
|
5
|
+
theme?: "light" | "dark" | "lightblue";
|
|
6
|
+
width?: "narrow" | "medium" | "wide" | "full";
|
|
7
|
+
marginTop?: boolean;
|
|
8
|
+
marginBottom?: boolean;
|
|
9
|
+
themeOverrides?: any;
|
|
10
|
+
hr?: boolean;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}> {
|
|
14
|
+
}
|
|
15
|
+
export type DividerProps = typeof __propDef.props;
|
|
16
|
+
export type DividerEvents = typeof __propDef.events;
|
|
17
|
+
export type DividerSlots = typeof __propDef.slots;
|
|
18
|
+
import { SvelteComponentTyped } from "svelte";
|
|
19
|
+
declare const __propDef: {
|
|
20
|
+
props: {
|
|
21
|
+
theme?: "light" | "dark" | "lightblue";
|
|
22
|
+
width?: "narrow" | "medium" | "wide" | "full";
|
|
23
|
+
marginTop?: boolean;
|
|
24
|
+
marginBottom?: boolean;
|
|
25
|
+
themeOverrides?: object;
|
|
26
|
+
hr?: boolean;
|
|
27
|
+
};
|
|
28
|
+
events: {
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
};
|
|
31
|
+
slots: {};
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} SectionProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} SectionEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} SectionSlots */
|
|
4
|
+
export default class Section extends SvelteComponentTyped<{
|
|
5
|
+
theme?: "light" | "dark" | "lightblue";
|
|
6
|
+
width?: "narrow" | "medium" | "wide" | "full";
|
|
7
|
+
marginTop?: boolean;
|
|
8
|
+
marginBottom?: boolean;
|
|
9
|
+
themeOverrides?: any;
|
|
10
|
+
title?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
hideTitle?: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
}, {
|
|
16
|
+
default: {};
|
|
17
|
+
}> {
|
|
18
|
+
}
|
|
19
|
+
export type SectionProps = typeof __propDef.props;
|
|
20
|
+
export type SectionEvents = typeof __propDef.events;
|
|
21
|
+
export type SectionSlots = typeof __propDef.slots;
|
|
22
|
+
import { SvelteComponentTyped } from "svelte";
|
|
23
|
+
declare const __propDef: {
|
|
24
|
+
props: {
|
|
25
|
+
theme?: "light" | "dark" | "lightblue";
|
|
26
|
+
width?: "narrow" | "medium" | "wide" | "full";
|
|
27
|
+
marginTop?: boolean;
|
|
28
|
+
marginBottom?: boolean;
|
|
29
|
+
themeOverrides?: object;
|
|
30
|
+
title?: string;
|
|
31
|
+
id?: string;
|
|
32
|
+
hideTitle?: boolean;
|
|
33
|
+
};
|
|
34
|
+
events: {
|
|
35
|
+
[evt: string]: CustomEvent<any>;
|
|
36
|
+
};
|
|
37
|
+
slots: {
|
|
38
|
+
default: {};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} MetaProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} MetaEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} MetaSlots */
|
|
4
|
+
export default class Meta extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type MetaProps = typeof __propDef.props;
|
|
11
|
+
export type MetaEvents = typeof __propDef.events;
|
|
12
|
+
export type MetaSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TitleBlockProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TitleBlockEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TitleBlockSlots */
|
|
4
|
+
export default class TitleBlock extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type TitleBlockProps = typeof __propDef.props;
|
|
11
|
+
export type TitleBlockEvents = typeof __propDef.events;
|
|
12
|
+
export type TitleBlockSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} EmbedProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} EmbedEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} EmbedSlots */
|
|
4
|
+
export default class Embed extends SvelteComponentTyped<{
|
|
5
|
+
pymChild?: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type EmbedProps = typeof __propDef.props;
|
|
13
|
+
export type EmbedEvents = typeof __propDef.events;
|
|
14
|
+
export type EmbedSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
pymChild?: object;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} MainProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} MainEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} MainSlots */
|
|
4
|
+
export default class Main extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type MainProps = typeof __propDef.props;
|
|
13
|
+
export type MainEvents = typeof __propDef.events;
|
|
14
|
+
export type MainSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
export { default as Theme } from "./components/wrappers/Theme/Theme.svelte";
|
|
2
|
+
export { default as Container } from "./components/wrappers/Container/Container.svelte";
|
|
1
3
|
export { default as Accordion } from "./components/layout/Accordion/Accordion.svelte";
|
|
2
|
-
export { default as Container } from "./components/layout/Container/Container.svelte";
|
|
3
4
|
export { default as Footer } from "./components/layout/Footer/Footer.svelte";
|
|
4
5
|
export { default as Header } from "./components/layout/Header/Header.svelte";
|
|
5
|
-
export { default as Section } from "./components/layout/Section/Section.svelte";
|
|
6
|
-
export { default as Theme } from "./components/layout/Theme/Theme.svelte";
|
|
7
6
|
export { default as Twisty } from "./components/layout/Twisty/Twisty.svelte";
|
|
8
7
|
export { default as Button } from "./components/ui/Button/Button.svelte";
|
|
9
8
|
export { default as Dropdown } from "./components/ui/Dropdown/Dropdown.svelte";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* (Optional) attribution for the quote. If you leave this blank, you will just get an indented text block.
|
|
4
|
+
* @type {string}
|
|
5
|
+
*/
|
|
6
|
+
export let attribution = "";
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<blockquote class="ons-quote">
|
|
10
|
+
{#if attribution}
|
|
11
|
+
<svg
|
|
12
|
+
class="ons-svg-icon"
|
|
13
|
+
viewBox="0 0 14 10"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
focusable="false"
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
d="M13.44.77h-3l-2 4v6h6v-6h-3l2-4zm-8 0h-3l-2 4v6h6v-6h-3l2-4z"
|
|
20
|
+
transform="translate(-0.44 -0.77)"></path>
|
|
21
|
+
</svg>
|
|
22
|
+
<span class="ons-quote__text ons-u-fs-l"><slot /></span>
|
|
23
|
+
<span class="ons-quote__ref">— {attribution}</span>
|
|
24
|
+
{:else}
|
|
25
|
+
<span class="ons-quote__text ons-u-fs-l"><slot /></span>
|
|
26
|
+
{/if}
|
|
27
|
+
</blockquote>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Container from "$lib/components/wrappers/Container/Container.svelte";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* (Optional) Include a horizontal rule
|
|
6
|
+
* @type {boolean}
|
|
7
|
+
*/
|
|
8
|
+
export let hr = true;
|
|
9
|
+
/**
|
|
10
|
+
* Sets the width of the container
|
|
11
|
+
* @type {"narrow"|"medium"|"wide"|"full"}
|
|
12
|
+
*/
|
|
13
|
+
export let width = "medium";
|
|
14
|
+
/**
|
|
15
|
+
* Sets a predefined theme
|
|
16
|
+
* @type {"light"|"dark"|"lightblue"}
|
|
17
|
+
*/
|
|
18
|
+
export let theme = null;
|
|
19
|
+
/**
|
|
20
|
+
* Define additional props to override the base theme
|
|
21
|
+
* @type {object}
|
|
22
|
+
*/
|
|
23
|
+
export let themeOverrides = null;
|
|
24
|
+
/**
|
|
25
|
+
* Optional margin above section
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
*/
|
|
28
|
+
export let marginTop = false;
|
|
29
|
+
/**
|
|
30
|
+
* Optional margin below section
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
*/
|
|
33
|
+
export let marginBottom = true;
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<Container
|
|
37
|
+
theme="{theme}"
|
|
38
|
+
themeOverrides="{themeOverrides}"
|
|
39
|
+
width="{width}"
|
|
40
|
+
marginTop="{marginTop}"
|
|
41
|
+
marginBottom="{marginBottom}"
|
|
42
|
+
>
|
|
43
|
+
<hr style:border="{hr ? null : "none"}" />
|
|
44
|
+
</Container>
|
|
45
|
+
|
|
46
|
+
<style>
|
|
47
|
+
hr {
|
|
48
|
+
width: 75px;
|
|
49
|
+
border: none;
|
|
50
|
+
border-top: 2px solid;
|
|
51
|
+
margin: -10px auto 0;
|
|
52
|
+
color: var(--muted, #777);
|
|
53
|
+
}</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { slugify } from "$lib/js/utils.js";
|
|
3
|
+
import Container from "$lib/components/wrappers/Container/Container.svelte";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Sets the width of the container
|
|
7
|
+
* @type {"narrow"|"medium"|"wide"|"full"}
|
|
8
|
+
*/
|
|
9
|
+
export let width = "narrow";
|
|
10
|
+
/**
|
|
11
|
+
* Sets the unique ID of the section
|
|
12
|
+
* @type {string}
|
|
13
|
+
*/
|
|
14
|
+
export let id = null;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the title of the section
|
|
17
|
+
* @type {string}
|
|
18
|
+
*/
|
|
19
|
+
export let title = "";
|
|
20
|
+
/**
|
|
21
|
+
* Allows the h2 title tag for the section to be visually hidden
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
*/
|
|
24
|
+
export let hideTitle = false;
|
|
25
|
+
/**
|
|
26
|
+
* Sets a predefined theme
|
|
27
|
+
* @type {"light"|"dark"|"lightblue"}
|
|
28
|
+
*/
|
|
29
|
+
export let theme = null;
|
|
30
|
+
/**
|
|
31
|
+
* Define additional props to override the base theme
|
|
32
|
+
* @type {object}
|
|
33
|
+
*/
|
|
34
|
+
export let themeOverrides = null;
|
|
35
|
+
/**
|
|
36
|
+
* Optional margin above section
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
*/
|
|
39
|
+
export let marginTop = false;
|
|
40
|
+
/**
|
|
41
|
+
* Optional margin below section
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
*/
|
|
44
|
+
export let marginBottom = true;
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<Container
|
|
48
|
+
theme="{theme}"
|
|
49
|
+
themeOverrides="{themeOverrides}"
|
|
50
|
+
width="{width}"
|
|
51
|
+
marginTop="{marginTop}"
|
|
52
|
+
marginBottom="{marginBottom}"
|
|
53
|
+
>
|
|
54
|
+
<section id="{id ? id : slugify(title)}" aria-label="{title}" class="ons-feature__section">
|
|
55
|
+
{#if title && !hideTitle}
|
|
56
|
+
<h2 class="section-title">{title}</h2>
|
|
57
|
+
{/if}
|
|
58
|
+
<slot />
|
|
59
|
+
</section>
|
|
60
|
+
</Container>
|
|
61
|
+
|
|
62
|
+
<style>
|
|
63
|
+
:global(.ons-feature__section > p:last-child) {
|
|
64
|
+
margin-bottom: 0;
|
|
65
|
+
}</style>
|
|
File without changes
|
|
File without changes
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
export let background = null;
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
|
-
{#if marginTop}<div class="ons-spacer"></div>{/if}
|
|
42
41
|
{#if width === "narrow"}
|
|
43
42
|
<Theme theme="{theme}" background="{background}" overrides="{themeOverrides}">
|
|
44
43
|
<div
|
|
@@ -46,9 +45,11 @@
|
|
|
46
45
|
class:ons-page__container--tall-height="{height === 'tall'}"
|
|
47
46
|
class:ons-page__container--full-height="{height === 'full'}"
|
|
48
47
|
>
|
|
48
|
+
{#if marginTop}<div class="ons-spacer"></div>{/if}
|
|
49
49
|
<div class="ons-page__container--narrow">
|
|
50
50
|
<slot />
|
|
51
51
|
</div>
|
|
52
|
+
{#if marginBottom}<div class="ons-spacer"></div>{/if}
|
|
52
53
|
</div>
|
|
53
54
|
</Theme>
|
|
54
55
|
{:else}
|
|
@@ -60,11 +61,12 @@
|
|
|
60
61
|
class:ons-page__container--tall-height="{height === 'tall'}"
|
|
61
62
|
class:ons-page__container--full-height="{height === 'full'}"
|
|
62
63
|
>
|
|
64
|
+
{#if marginTop}<div class="ons-spacer"></div>{/if}
|
|
63
65
|
<slot />
|
|
66
|
+
{#if marginBottom}<div class="ons-spacer"></div>{/if}
|
|
64
67
|
</div>
|
|
65
68
|
</Theme>
|
|
66
69
|
{/if}
|
|
67
|
-
{#if marginBottom}<div class="ons-spacer"></div>{/if}
|
|
68
70
|
|
|
69
71
|
<style>
|
|
70
72
|
.ons-page__container {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { onMount } from "svelte";
|
|
3
|
+
import pym from "pym.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Binding for pymChild element (can be used to send messages to parent of iframe)
|
|
7
|
+
* @type {object}
|
|
8
|
+
*/
|
|
9
|
+
export let pymChild = null;
|
|
10
|
+
|
|
11
|
+
onMount(() => {
|
|
12
|
+
pymChild = new pym.Child({ polling: 1000 });
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<slot />
|
|
17
|
+
|
|
18
|
+
<style>
|
|
19
|
+
:global(.ons-container) {
|
|
20
|
+
padding: 0 !important;
|
|
21
|
+
}</style>
|