@txstate-mws/svelte-components 1.5.11 → 1.5.13
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.
|
@@ -250,6 +250,7 @@ function reactToButtonElement(buttonelement) {
|
|
|
250
250
|
buttonelement.addEventListener('click', onbuttonclick);
|
|
251
251
|
buttonelement.addEventListener('keydown', onkeydown);
|
|
252
252
|
buttonelement.addEventListener('blur', onblur);
|
|
253
|
+
buttonelement.addEventListener('input', oninput);
|
|
253
254
|
const parents = getScrollParents(buttonelement);
|
|
254
255
|
for (const parent of [...parents, undefined]) {
|
|
255
256
|
const observer = new IntersectionObserver((entries) => {
|
|
@@ -301,7 +302,7 @@ $: hasSelected = showSelected && !hideSelectedIndicator && items.some(itm => 'va
|
|
|
301
302
|
><slot {item} label={item.label || item.value} hilited={i === hilited} selected={value === item.value}>{item.label || item.value}</slot></li>
|
|
302
303
|
{:else if 'divider' in item && item.divider}
|
|
303
304
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
304
|
-
<li class={`divider ${menuDividerClass}`} on:mousedown|stopPropagation|preventDefault class:group={isNotBlank(item.label)}>{item.label}</li>
|
|
305
|
+
<li class={`divider ${menuDividerClass}`} on:mousedown|stopPropagation|preventDefault={() => {}} class:group={isNotBlank(item.label)}>{item.label}</li>
|
|
305
306
|
{/if}
|
|
306
307
|
{/each}
|
|
307
308
|
{#if !hasMeaningfulItems}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import { Store } from '@txstate-mws/svelte-store';
|
|
3
3
|
import type { GlueAlignOpts, GlueAlignStore } from '../actions';
|
|
4
|
-
import type { PopupMenuTypes } from '../types';
|
|
4
|
+
import type { PopupMenuItem, PopupMenuTypes } from '../types';
|
|
5
5
|
declare const __propDef: {
|
|
6
6
|
props: {
|
|
7
7
|
/** The DOM element that will act as the "button" for this menu. The menu will be placed next to the
|
|
@@ -46,12 +46,6 @@ declare const __propDef: {
|
|
|
46
46
|
hideEmptyText?: boolean | undefined;
|
|
47
47
|
usemenurole?: boolean | undefined;
|
|
48
48
|
};
|
|
49
|
-
events: {
|
|
50
|
-
mousedown: MouseEvent;
|
|
51
|
-
change: CustomEvent<any>;
|
|
52
|
-
} & {
|
|
53
|
-
[evt: string]: CustomEvent<any>;
|
|
54
|
-
};
|
|
55
49
|
slots: {
|
|
56
50
|
default: {
|
|
57
51
|
item: PopupMenuTypes;
|
|
@@ -61,6 +55,9 @@ declare const __propDef: {
|
|
|
61
55
|
};
|
|
62
56
|
noresults: {};
|
|
63
57
|
};
|
|
58
|
+
events: {
|
|
59
|
+
change: CustomEvent<PopupMenuItem>;
|
|
60
|
+
};
|
|
64
61
|
};
|
|
65
62
|
export type PopupMenuProps = typeof __propDef.props;
|
|
66
63
|
export type PopupMenuEvents = typeof __propDef.events;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txstate-mws/svelte-components",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"description": "Svelte components that are generically useful.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "svelte-package",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@playwright/test": "^1.18.1",
|
|
24
|
-
"@sveltejs/adapter-auto": "^
|
|
25
|
-
"@sveltejs/kit": "^
|
|
24
|
+
"@sveltejs/adapter-auto": "^3.0.0",
|
|
25
|
+
"@sveltejs/kit": "^2.0.0",
|
|
26
26
|
"@sveltejs/package": "^2.0.2",
|
|
27
27
|
"@types/tabbable": "^3.1.2",
|
|
28
|
-
"eslint-config-standard-with-typescript": "^
|
|
28
|
+
"eslint-config-standard-with-typescript": "^43.0.0",
|
|
29
29
|
"eslint-plugin-svelte": "^2.0.0",
|
|
30
30
|
"svelte-check": "^3.0.1",
|
|
31
31
|
"svelte-preprocess": "^5.0.0",
|
|
32
|
-
"svelte2tsx": "^0.
|
|
32
|
+
"svelte2tsx": "^0.7.0",
|
|
33
33
|
"tslib": "^2.3.1",
|
|
34
34
|
"typescript": "^5.0.4"
|
|
35
35
|
},
|