@isoftdata/svelte-user-configuration 1.0.24 → 1.0.26

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:offsetHeight={cardHeight}
74
76
  {...$$restProps}
75
77
  >
76
78
  <fieldset disabled={!canEditAccountInfo}>
@@ -24,6 +24,7 @@ declare const __propDef: {
24
24
  doSendPasswordRecoveryToken: boolean;
25
25
  icon?: IconName;
26
26
  usernameInput?: HTMLInputElement | undefined;
27
+ cardHeight?: number;
27
28
  };
28
29
  events: {
29
30
  [evt: string]: CustomEvent<any>;
@@ -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: {cardDeckHeight};"
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: {cardDeckHeight};"
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-user-configuration",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",