@isoftdata/svelte-user-configuration 1.0.14 → 1.0.15

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.
@@ -20,6 +20,7 @@ export let error = void 0;
20
20
  export let success = void 0;
21
21
  export let sendPasswordRecoveryToken = void 0;
22
22
  export let generateNewActivationPIN = () => Promise.resolve();
23
+ export let usernameInput = void 0;
23
24
  let isLoading = false;
24
25
  let passwordSetModal;
25
26
  let deactivateUserModal;
@@ -184,7 +185,6 @@ $: activationPIN = userAccount.userActivationData?.activationPIN;
184
185
  {/if}
185
186
  <div class="col-12">
186
187
  <Input
187
- id="usernameInput"
188
188
  label={translate('configuration.user.accountInfo.username', 'Username')}
189
189
  bind:value={userAccount.name}
190
190
  maxlength={320}
@@ -194,6 +194,7 @@ $: activationPIN = userAccount.userActivationData?.activationPIN;
194
194
  return value.length > 320 ? 'Username must be less than 320 characters.' : true
195
195
  },
196
196
  }}
197
+ bind:input={usernameInput}
197
198
  />
198
199
  </div>
199
200
  <div class="col-6">
@@ -21,6 +21,7 @@ declare const __propDef: {
21
21
  accountInfoChanged?: (() => void | Promise<void>) | undefined;
22
22
  sendPasswordRecoveryToken?: ((email: string | undefined) => void | Promise<void>) | undefined;
23
23
  icon?: IconName;
24
+ usernameInput?: HTMLInputElement | undefined;
24
25
  };
25
26
  events: {
26
27
  [evt: string]: CustomEvent<any>;
@@ -9,6 +9,7 @@ export let permissionListIcon = "user-lock";
9
9
  export let userSiteAccessIcon = "industry-windows";
10
10
  export let permissionListCardHeaderTitle = "Permissions";
11
11
  export let cardDeckHeight = "500px";
12
+ export let usernameInput = void 0;
12
13
  export let userAccount;
13
14
  export let canToggleActive = true;
14
15
  export let isCreatingNewUser = false;
@@ -37,6 +38,7 @@ export let permissionValueChange = void 0;
37
38
  <div class="col-12 col-lg-4 mb-2">
38
39
  <UserAccountInfo
39
40
  bind:userAccount
41
+ bind:usernameInput
40
42
  {canToggleActive}
41
43
  {canEditAccountInfo}
42
44
  {isCreatingNewUser}
@@ -9,6 +9,7 @@ declare const __propDef: {
9
9
  userSiteAccessIcon?: IconName;
10
10
  permissionListCardHeaderTitle?: PermissionListCardHeaderTitle;
11
11
  /** The height of the cards in the first row. */ cardDeckHeight?: string;
12
+ usernameInput?: HTMLInputElement | undefined;
12
13
  userAccount: UserAccount;
13
14
  canToggleActive?: CanToggleActive;
14
15
  isCreatingNewUser?: IsCreatingNewUser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-user-configuration",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",