@axium/client 0.9.11 → 0.9.12

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.
@@ -6,15 +6,16 @@
6
6
  import FormDialog from './FormDialog.svelte';
7
7
  import UserCard from './UserCard.svelte';
8
8
  import Icon from './Icon.svelte';
9
+ import type { HTMLDialogAttributes } from 'svelte/elements';
9
10
 
10
- interface Props {
11
+ interface Props extends HTMLDialogAttributes {
11
12
  editable: boolean;
12
13
  dialog?: HTMLDialogElement;
13
14
  itemType: string;
14
15
  item?: ({ name?: string; user?: User; id: string } & AccessControllable) | null;
15
16
  acl?: AccessControl[];
16
17
  }
17
- let { item = $bindable(), itemType, editable, dialog = $bindable(), acl = $bindable(item?.acl) }: Props = $props();
18
+ let { item = $bindable(), itemType, editable, dialog = $bindable(), acl = $bindable(item?.acl), ...rest }: Props = $props();
18
19
 
19
20
  if (!acl && item) getACL(itemType, item.id).then(fetched => (acl = item.acl = fetched));
20
21
  </script>
@@ -25,6 +26,7 @@
25
26
  submit={async data => {
26
27
  if (item) await setACL(itemType, item.id, data as any as AccessMap);
27
28
  }}
29
+ {...rest}
28
30
  >
29
31
  {#snippet header()}
30
32
  {#if item?.name}
@@ -32,6 +32,10 @@
32
32
  cursor: pointer;
33
33
  }
34
34
 
35
+ .popover-toggle {
36
+ user-select: none;
37
+ }
38
+
35
39
  @media (width > 700px) {
36
40
  .toggle-hover {
37
41
  visibility: hidden;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",