@onsvisual/svelte-components 1.0.26 → 1.0.28
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/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/inputs/Radios/Radio.svelte +8 -1
- package/dist/inputs/Toolbar/ToolbarButton.svelte +1 -1
- package/dist/inputs/Toolbar/ToolbarIcon.svelte.d.ts +23 -0
- package/package.json +1 -1
- package/dist/inputs/Toolbar/Icon.svelte.d.ts +0 -23
- /package/dist/inputs/Toolbar/{Icon.svelte → ToolbarIcon.svelte} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export { default as Radio } from "./inputs/Radios/Radio.svelte";
|
|
|
47
47
|
export { default as Radios } from "./inputs/Radios/Radios.svelte";
|
|
48
48
|
export { default as Textarea } from "./inputs/Textarea/Textarea.svelte";
|
|
49
49
|
export { default as HelpModal } from "./inputs/Toolbar/HelpModal.svelte";
|
|
50
|
-
export { default as
|
|
50
|
+
export { default as ToolbarIcon } from "./inputs/Toolbar/ToolbarIcon.svelte";
|
|
51
51
|
export { default as Toolbar } from "./inputs/Toolbar/Toolbar.svelte";
|
|
52
52
|
export { default as ToolbarButton } from "./inputs/Toolbar/ToolbarButton.svelte";
|
|
53
53
|
export { default as ToolbarDivider } from "./inputs/Toolbar/ToolbarDivider.svelte";
|
|
@@ -59,6 +59,7 @@ export { default as ButtonGroupItem } from "./inputs/ButtonGroup/ButtonGroupItem
|
|
|
59
59
|
export { default as Blockquote } from "./decorators/Blockquote/Blockquote.svelte";
|
|
60
60
|
export { default as Divider } from "./decorators/Divider/Divider.svelte";
|
|
61
61
|
export { default as Em } from "./decorators/Em/Em.svelte";
|
|
62
|
+
export { default as Icon } from "./decorators/Icon/Icon.svelte";
|
|
62
63
|
export { default as Indent } from "./decorators/Indent/Indent.svelte";
|
|
63
64
|
export { default as DataCard } from "./datavis/DataCard/DataCard.svelte";
|
|
64
65
|
export { default as Table } from "./datavis/Table/Table.svelte";
|
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ export { default as Select } from "./inputs/Select/Select.svelte";
|
|
|
64
64
|
export { default as AccessibleSelect } from "./inputs/Select/Select.svelte"; // Alias for Select
|
|
65
65
|
export { default as Textarea } from "./inputs/Textarea/Textarea.svelte";
|
|
66
66
|
export { default as HelpModal } from "./inputs/Toolbar/HelpModal.svelte";
|
|
67
|
-
export { default as
|
|
67
|
+
export { default as ToolbarIcon } from "./inputs/Toolbar/ToolbarIcon.svelte";
|
|
68
68
|
export { default as Toolbar } from "./inputs/Toolbar/Toolbar.svelte";
|
|
69
69
|
export { default as ToolbarButton } from "./inputs/Toolbar/ToolbarButton.svelte";
|
|
70
70
|
export { default as ToolbarDivider } from "./inputs/Toolbar/ToolbarDivider.svelte";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { createEventDispatcher } from "svelte";
|
|
2
|
+
import { onMount, createEventDispatcher } from "svelte";
|
|
3
3
|
|
|
4
4
|
const dispatch = createEventDispatcher();
|
|
5
5
|
|
|
@@ -38,6 +38,12 @@
|
|
|
38
38
|
* @type {boolean}
|
|
39
39
|
*/
|
|
40
40
|
export let compact = false;
|
|
41
|
+
|
|
42
|
+
let el;
|
|
43
|
+
|
|
44
|
+
onMount(() => {
|
|
45
|
+
if (value?.id === item.id) el.checked = true;
|
|
46
|
+
});
|
|
41
47
|
</script>
|
|
42
48
|
|
|
43
49
|
<span class="ons-radios__item" class:ons-radios__item--no-border={compact}>
|
|
@@ -54,6 +60,7 @@
|
|
|
54
60
|
dispatch("change", { value, e });
|
|
55
61
|
}
|
|
56
62
|
}}
|
|
63
|
+
bind:this={el}
|
|
57
64
|
/>
|
|
58
65
|
<label
|
|
59
66
|
class="ons-radio__label"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} ToolbarIconProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} ToolbarIconEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} ToolbarIconSlots */
|
|
4
|
+
export default class ToolbarIcon extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type ToolbarIconProps = typeof __propDef.props;
|
|
11
|
+
export type ToolbarIconEvents = typeof __propDef.events;
|
|
12
|
+
export type ToolbarIconSlots = 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 {};
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} IconProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} IconEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} IconSlots */
|
|
4
|
-
export default class Icon extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type IconProps = typeof __propDef.props;
|
|
11
|
-
export type IconEvents = typeof __propDef.events;
|
|
12
|
-
export type IconSlots = 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 {};
|
|
File without changes
|