@isoftdata/svelte-user-configuration 1.1.1 → 1.1.3

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.
@@ -27,14 +27,15 @@ export let usernameInput = void 0;
27
27
  export let cardHeight = 0;
28
28
  export let myAccountMode = false;
29
29
  export let passwordValidationRules = void 0;
30
+ export let cardTitle = translate("configuration.user.accountInfoHeader", "Account");
30
31
  export let showPasswordChange = false;
32
+ export let passwordMismatch = false;
31
33
  let isLoading = false;
32
34
  let passwordSetModal;
33
35
  let deactivateUserModal;
34
36
  let passwordRecoveryModal;
35
37
  let activationPINInput;
36
38
  let currentPasswordField;
37
- let cardTitle = translate("configuration.user.accountInfoHeader", "Account");
38
39
  let confirmPassword = "";
39
40
  async function getNewActivationPIN(sendEmail = false) {
40
41
  let confirmationMessage = sendEmail ? translate("configuration.user.permissions.sendNewActivationPINMessage", "Are you sure you want to send a new activation PIN? The user will receive an email with the new activation PIN.") : translate("configuration.user.permissions.generateNewActivationPINMessage", "Are you sure you want to generate a new activation PIN?");
@@ -310,6 +311,7 @@ $: isCreatingNewUser = userAccount.id === null;
310
311
  <PasswordFields
311
312
  bind:password={userAccount.newPassword}
312
313
  bind:confirmPassword
314
+ bind:passwordMismatch
313
315
  columnClass="col-12"
314
316
  passwordLabel={translate('configuration.user.accountInfo.passwordManagementModal.newPassword', 'New Password')}
315
317
  confirmPasswordLabel={translate('configuration.user.accountInfo.passwordManagementModal.confirmNewPassword', 'Confirm New Password')}
@@ -28,6 +28,8 @@ declare const __propDef: {
28
28
  myAccountMode?: boolean;
29
29
  passwordValidationRules?: PasswordValidationRules | undefined;
30
30
  cardTitle?: string;
31
+ showPasswordChange?: boolean;
32
+ passwordMismatch?: boolean;
31
33
  };
32
34
  events: {
33
35
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-user-configuration",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",