@isoftdata/svelte-user-configuration 1.0.23 → 1.0.25
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.
|
@@ -22,6 +22,7 @@ export let sendPasswordRecoveryToken = void 0;
|
|
|
22
22
|
export let doSendPasswordRecoveryToken = false;
|
|
23
23
|
export let generateNewActivationPIN = () => Promise.resolve();
|
|
24
24
|
export let usernameInput = void 0;
|
|
25
|
+
export let cardHeight = 0;
|
|
25
26
|
let isLoading = false;
|
|
26
27
|
let passwordSetModal;
|
|
27
28
|
let deactivateUserModal;
|
|
@@ -71,6 +72,7 @@ $: isCreatingNewUser = userAccount.id === null;
|
|
|
71
72
|
|
|
72
73
|
<div
|
|
73
74
|
class="card"
|
|
75
|
+
bind:clientHeight={cardHeight}
|
|
74
76
|
{...$$restProps}
|
|
75
77
|
>
|
|
76
78
|
<fieldset disabled={!canEditAccountInfo}>
|
|
@@ -8,7 +8,6 @@ export let groupMembershipIcon = "users";
|
|
|
8
8
|
export let permissionListIcon = "user-lock";
|
|
9
9
|
export let userSiteAccessIcon = "industry-windows";
|
|
10
10
|
export let permissionListCardHeaderTitle = "Permissions";
|
|
11
|
-
export let cardDeckHeight = "500px";
|
|
12
11
|
export let usernameInput = void 0;
|
|
13
12
|
export let userAccount;
|
|
14
13
|
export let canToggleActive = true;
|
|
@@ -32,6 +31,7 @@ export let permissions;
|
|
|
32
31
|
export let permissionValueMap = /* @__PURE__ */ new Map();
|
|
33
32
|
export let groupPermissionValueMap = void 0;
|
|
34
33
|
export let permissionValueChange = void 0;
|
|
34
|
+
let cardHeight;
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<div class="form-row">
|
|
@@ -40,6 +40,7 @@ export let permissionValueChange = void 0;
|
|
|
40
40
|
bind:userAccount
|
|
41
41
|
bind:usernameInput
|
|
42
42
|
bind:doSendPasswordRecoveryToken
|
|
43
|
+
bind:cardHeight
|
|
43
44
|
{canToggleActive}
|
|
44
45
|
{canEditAccountInfo}
|
|
45
46
|
{hasPermissionToChangePassword}
|
|
@@ -51,7 +52,6 @@ export let permissionValueChange = void 0;
|
|
|
51
52
|
{sendPasswordRecoveryToken}
|
|
52
53
|
{generateNewActivationPIN}
|
|
53
54
|
icon={userAccountInfoIcon}
|
|
54
|
-
style="height: {cardDeckHeight};"
|
|
55
55
|
>
|
|
56
56
|
<slot name="userAccountInfo"></slot>
|
|
57
57
|
</UserAccountInfo>
|
|
@@ -63,7 +63,7 @@ export let permissionValueChange = void 0;
|
|
|
63
63
|
{canEditSiteAccess}
|
|
64
64
|
{siteAccessChange}
|
|
65
65
|
icon={userSiteAccessIcon}
|
|
66
|
-
style="height: {
|
|
66
|
+
style="height: {cardHeight}px;"
|
|
67
67
|
>
|
|
68
68
|
<slot name="siteAccess"></slot>
|
|
69
69
|
</UserSiteAccess>
|
|
@@ -74,7 +74,7 @@ export let permissionValueChange = void 0;
|
|
|
74
74
|
{canEditGroupMembership}
|
|
75
75
|
{groupMembershipChange}
|
|
76
76
|
icon={groupMembershipIcon}
|
|
77
|
-
style="height: {
|
|
77
|
+
style="height: {cardHeight}px;"
|
|
78
78
|
>
|
|
79
79
|
<slot name="userGroupMembership"></slot>
|
|
80
80
|
</UserGroupMembership>
|
|
@@ -8,7 +8,6 @@ declare const __propDef: {
|
|
|
8
8
|
permissionListIcon?: IconName;
|
|
9
9
|
userSiteAccessIcon?: IconName;
|
|
10
10
|
permissionListCardHeaderTitle?: PermissionListCardHeaderTitle;
|
|
11
|
-
/** The height of the cards in the first row. */ cardDeckHeight?: string;
|
|
12
11
|
usernameInput?: HTMLInputElement | undefined;
|
|
13
12
|
userAccount: UserAccount;
|
|
14
13
|
canToggleActive?: CanToggleActive;
|
|
@@ -3,6 +3,7 @@ import type { IconName, HTMLDivAttributes, SiteLabel } from './';
|
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: HTMLDivAttributes & {
|
|
5
5
|
userSites: Array<{
|
|
6
|
+
id: number;
|
|
6
7
|
code: string;
|
|
7
8
|
name: string;
|
|
8
9
|
isAuthorized: boolean;
|
|
@@ -10,6 +11,7 @@ declare const __propDef: {
|
|
|
10
11
|
siteLabel?: SiteLabel;
|
|
11
12
|
canEditSiteAccess?: boolean;
|
|
12
13
|
siteAccessChange?: ((siteAccess: {
|
|
14
|
+
id: number;
|
|
13
15
|
code: string;
|
|
14
16
|
name: string;
|
|
15
17
|
isAuthorized: boolean;
|