@forgerock/login-widget 1.0.0-beta.15 → 1.0.0-beta.17
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.
- package/CHANGELOG.md +18 -7
- package/index.cjs +51 -49
- package/index.cjs.map +1 -1
- package/index.js +51 -49
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/{index.d.ts → types.d.ts} +110 -210
package/index.js
CHANGED
|
@@ -17731,8 +17731,7 @@ function initialize$4(initOptions) {
|
|
|
17731
17731
|
error: {
|
|
17732
17732
|
code: nextStep.getCode(),
|
|
17733
17733
|
message: failureMessageStr,
|
|
17734
|
-
|
|
17735
|
-
step: prevStep?.payload,
|
|
17734
|
+
stage: prevStep?.payload?.stage,
|
|
17736
17735
|
troubleshoot: null,
|
|
17737
17736
|
},
|
|
17738
17737
|
loading: false,
|
|
@@ -17762,8 +17761,7 @@ function initialize$4(initOptions) {
|
|
|
17762
17761
|
error: {
|
|
17763
17762
|
code: nextStep.getCode(),
|
|
17764
17763
|
message: failureMessageStr,
|
|
17765
|
-
|
|
17766
|
-
step: prevStep?.payload,
|
|
17764
|
+
stage: prevStep?.payload?.stage,
|
|
17767
17765
|
troubleshoot: null,
|
|
17768
17766
|
},
|
|
17769
17767
|
loading: false,
|
|
@@ -23112,7 +23110,7 @@ function get_each_context$7(ctx, list, i) {
|
|
|
23112
23110
|
return child_ctx;
|
|
23113
23111
|
}
|
|
23114
23112
|
|
|
23115
|
-
// (
|
|
23113
|
+
// (39:0) {#if labelOrder === 'first'}
|
|
23116
23114
|
function create_if_block_1$a(ctx) {
|
|
23117
23115
|
let label_1;
|
|
23118
23116
|
let current;
|
|
@@ -23160,7 +23158,7 @@ function create_if_block_1$a(ctx) {
|
|
|
23160
23158
|
};
|
|
23161
23159
|
}
|
|
23162
23160
|
|
|
23163
|
-
// (
|
|
23161
|
+
// (40:2) <Label {key} classes={`${labelClasses}`}>
|
|
23164
23162
|
function create_default_slot_1$b(ctx) {
|
|
23165
23163
|
let t;
|
|
23166
23164
|
|
|
@@ -23180,7 +23178,7 @@ function create_default_slot_1$b(ctx) {
|
|
|
23180
23178
|
};
|
|
23181
23179
|
}
|
|
23182
23180
|
|
|
23183
|
-
// (
|
|
23181
|
+
// (54:2) {#each options as option}
|
|
23184
23182
|
function create_each_block$7(ctx) {
|
|
23185
23183
|
let option;
|
|
23186
23184
|
let t0_value = /*option*/ ctx[15].text + "";
|
|
@@ -23221,7 +23219,7 @@ function create_each_block$7(ctx) {
|
|
|
23221
23219
|
};
|
|
23222
23220
|
}
|
|
23223
23221
|
|
|
23224
|
-
// (
|
|
23222
|
+
// (61:0) {#if labelOrder === 'last'}
|
|
23225
23223
|
function create_if_block$g(ctx) {
|
|
23226
23224
|
let label_1;
|
|
23227
23225
|
let current;
|
|
@@ -23274,7 +23272,7 @@ function create_if_block$g(ctx) {
|
|
|
23274
23272
|
};
|
|
23275
23273
|
}
|
|
23276
23274
|
|
|
23277
|
-
// (
|
|
23275
|
+
// (62:2) <Label {key} classes={`${shouldDisplayOption ? labelClasses : 'tw_sr-only'}`}>
|
|
23278
23276
|
function create_default_slot$i(ctx) {
|
|
23279
23277
|
let t;
|
|
23280
23278
|
|
|
@@ -23513,8 +23511,6 @@ function instance$E($$self, $$props, $$invalidate) {
|
|
|
23513
23511
|
// Check if text is same as label
|
|
23514
23512
|
$$invalidate(10, shouldDisplayOption = !(label === selectedOption?.text));
|
|
23515
23513
|
|
|
23516
|
-
console.log(shouldDisplayOption);
|
|
23517
|
-
|
|
23518
23514
|
// Continue with calling onChange parameter
|
|
23519
23515
|
onChange(event);
|
|
23520
23516
|
}
|
|
@@ -27401,8 +27397,8 @@ class Eye_icon extends SvelteComponent {
|
|
|
27401
27397
|
|
|
27402
27398
|
function create_default_slot_1$8(ctx) {
|
|
27403
27399
|
let current;
|
|
27404
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
27405
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
27400
|
+
const default_slot_template = /*#slots*/ ctx[15].default;
|
|
27401
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[16], null);
|
|
27406
27402
|
|
|
27407
27403
|
return {
|
|
27408
27404
|
c() {
|
|
@@ -27417,15 +27413,15 @@ function create_default_slot_1$8(ctx) {
|
|
|
27417
27413
|
},
|
|
27418
27414
|
p(ctx, dirty) {
|
|
27419
27415
|
if (default_slot) {
|
|
27420
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
27416
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 65536)) {
|
|
27421
27417
|
update_slot_base(
|
|
27422
27418
|
default_slot,
|
|
27423
27419
|
default_slot_template,
|
|
27424
27420
|
ctx,
|
|
27425
|
-
/*$$scope*/ ctx[
|
|
27421
|
+
/*$$scope*/ ctx[16],
|
|
27426
27422
|
!current
|
|
27427
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
27428
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
27423
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[16])
|
|
27424
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[16], dirty, null),
|
|
27429
27425
|
null
|
|
27430
27426
|
);
|
|
27431
27427
|
}
|
|
@@ -27446,7 +27442,7 @@ function create_default_slot_1$8(ctx) {
|
|
|
27446
27442
|
};
|
|
27447
27443
|
}
|
|
27448
27444
|
|
|
27449
|
-
// (
|
|
27445
|
+
// (69:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
27450
27446
|
function create_default_slot$f(ctx) {
|
|
27451
27447
|
let t;
|
|
27452
27448
|
let current;
|
|
@@ -27476,7 +27472,7 @@ function create_default_slot$f(ctx) {
|
|
|
27476
27472
|
};
|
|
27477
27473
|
}
|
|
27478
27474
|
|
|
27479
|
-
// (
|
|
27475
|
+
// (63:2)
|
|
27480
27476
|
function create_input_button_slot$1(ctx) {
|
|
27481
27477
|
let button;
|
|
27482
27478
|
let eyeicon;
|
|
@@ -27507,7 +27503,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
27507
27503
|
current = true;
|
|
27508
27504
|
|
|
27509
27505
|
if (!mounted) {
|
|
27510
|
-
dispose = listen(button, "click", /*toggleVisibility*/ ctx[
|
|
27506
|
+
dispose = listen(button, "click", /*toggleVisibility*/ ctx[11]);
|
|
27511
27507
|
mounted = true;
|
|
27512
27508
|
}
|
|
27513
27509
|
},
|
|
@@ -27515,7 +27511,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
27515
27511
|
const eyeicon_changes = {};
|
|
27516
27512
|
if (dirty & /*isVisible*/ 64) eyeicon_changes.visible = /*isVisible*/ ctx[6];
|
|
27517
27513
|
|
|
27518
|
-
if (dirty & /*$$scope*/
|
|
27514
|
+
if (dirty & /*$$scope*/ 65536) {
|
|
27519
27515
|
eyeicon_changes.$$scope = { dirty, ctx };
|
|
27520
27516
|
}
|
|
27521
27517
|
|
|
@@ -27543,18 +27539,16 @@ function create_fragment$q(ctx) {
|
|
|
27543
27539
|
let input;
|
|
27544
27540
|
let current;
|
|
27545
27541
|
|
|
27546
|
-
input = new /*Input*/ ctx[
|
|
27542
|
+
input = new /*Input*/ ctx[9]({
|
|
27547
27543
|
props: {
|
|
27548
27544
|
forceValidityFailure: /*forceValidityFailure*/ ctx[0],
|
|
27549
27545
|
isFirstInvalidInput: false,
|
|
27550
27546
|
hasRightIcon: true,
|
|
27551
27547
|
key: `${/*key*/ ctx[3]}-confirm`,
|
|
27552
27548
|
label: interpolate('confirmPassword', null, 'Confirm Password'),
|
|
27553
|
-
message: /*
|
|
27554
|
-
|
|
27555
|
-
:
|
|
27556
|
-
onChange: /*onChangeWrapper*/ ctx[9],
|
|
27557
|
-
isInvalid: /*isInvalid*/ ctx[1],
|
|
27549
|
+
message: /*message*/ ctx[8],
|
|
27550
|
+
onChange: /*onChangeWrapper*/ ctx[10],
|
|
27551
|
+
isInvalid: /*passwordsDoNotMatch*/ ctx[1],
|
|
27558
27552
|
isRequired: /*isRequired*/ ctx[2],
|
|
27559
27553
|
showMessage: /*showMessage*/ ctx[4],
|
|
27560
27554
|
type: /*type*/ ctx[7],
|
|
@@ -27581,12 +27575,8 @@ function create_fragment$q(ctx) {
|
|
|
27581
27575
|
const input_changes = {};
|
|
27582
27576
|
if (dirty & /*forceValidityFailure*/ 1) input_changes.forceValidityFailure = /*forceValidityFailure*/ ctx[0];
|
|
27583
27577
|
if (dirty & /*key*/ 8) input_changes.key = `${/*key*/ ctx[3]}-confirm`;
|
|
27584
|
-
|
|
27585
|
-
if (dirty & /*
|
|
27586
|
-
? interpolate('passwordConfirmationError', null, 'Passwords do not match')
|
|
27587
|
-
: undefined;
|
|
27588
|
-
|
|
27589
|
-
if (dirty & /*isInvalid*/ 2) input_changes.isInvalid = /*isInvalid*/ ctx[1];
|
|
27578
|
+
if (dirty & /*message*/ 256) input_changes.message = /*message*/ ctx[8];
|
|
27579
|
+
if (dirty & /*passwordsDoNotMatch*/ 2) input_changes.isInvalid = /*passwordsDoNotMatch*/ ctx[1];
|
|
27590
27580
|
if (dirty & /*isRequired*/ 4) input_changes.isRequired = /*isRequired*/ ctx[2];
|
|
27591
27581
|
if (dirty & /*showMessage*/ 16) input_changes.showMessage = /*showMessage*/ ctx[4];
|
|
27592
27582
|
if (dirty & /*type*/ 128) input_changes.type = /*type*/ ctx[7];
|
|
@@ -27595,7 +27585,7 @@ function create_fragment$q(ctx) {
|
|
|
27595
27585
|
? /*value*/ ctx[5]
|
|
27596
27586
|
: '';
|
|
27597
27587
|
|
|
27598
|
-
if (dirty & /*$$scope, isVisible*/
|
|
27588
|
+
if (dirty & /*$$scope, isVisible*/ 65600) {
|
|
27599
27589
|
input_changes.$$scope = { dirty, ctx };
|
|
27600
27590
|
}
|
|
27601
27591
|
|
|
@@ -27619,8 +27609,8 @@ function create_fragment$q(ctx) {
|
|
|
27619
27609
|
function instance$q($$self, $$props, $$invalidate) {
|
|
27620
27610
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
27621
27611
|
let { forceValidityFailure = false } = $$props;
|
|
27622
|
-
let {
|
|
27623
|
-
let { isRequired =
|
|
27612
|
+
let { passwordsDoNotMatch = false } = $$props;
|
|
27613
|
+
let { isRequired = false } = $$props;
|
|
27624
27614
|
let { key } = $$props;
|
|
27625
27615
|
let { onChange } = $$props;
|
|
27626
27616
|
let { resetValue } = $$props;
|
|
@@ -27630,6 +27620,7 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27630
27620
|
let isVisible = false;
|
|
27631
27621
|
let type = 'password';
|
|
27632
27622
|
let value;
|
|
27623
|
+
let message = '';
|
|
27633
27624
|
|
|
27634
27625
|
function onChangeWrapper(event) {
|
|
27635
27626
|
$$invalidate(5, value = event.target?.value);
|
|
@@ -27648,36 +27639,45 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27648
27639
|
|
|
27649
27640
|
$$self.$$set = $$props => {
|
|
27650
27641
|
if ('forceValidityFailure' in $$props) $$invalidate(0, forceValidityFailure = $$props.forceValidityFailure);
|
|
27651
|
-
if ('
|
|
27642
|
+
if ('passwordsDoNotMatch' in $$props) $$invalidate(1, passwordsDoNotMatch = $$props.passwordsDoNotMatch);
|
|
27652
27643
|
if ('isRequired' in $$props) $$invalidate(2, isRequired = $$props.isRequired);
|
|
27653
27644
|
if ('key' in $$props) $$invalidate(3, key = $$props.key);
|
|
27654
|
-
if ('onChange' in $$props) $$invalidate(
|
|
27655
|
-
if ('resetValue' in $$props) $$invalidate(
|
|
27656
|
-
if ('style' in $$props) $$invalidate(
|
|
27645
|
+
if ('onChange' in $$props) $$invalidate(12, onChange = $$props.onChange);
|
|
27646
|
+
if ('resetValue' in $$props) $$invalidate(13, resetValue = $$props.resetValue);
|
|
27647
|
+
if ('style' in $$props) $$invalidate(14, style = $$props.style);
|
|
27657
27648
|
if ('showMessage' in $$props) $$invalidate(4, showMessage = $$props.showMessage);
|
|
27658
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
27649
|
+
if ('$$scope' in $$props) $$invalidate(16, $$scope = $$props.$$scope);
|
|
27659
27650
|
};
|
|
27660
27651
|
|
|
27661
27652
|
$$self.$$.update = () => {
|
|
27662
|
-
if ($$self.$$.dirty & /*resetValue, onChange, value*/
|
|
27653
|
+
if ($$self.$$.dirty & /*resetValue, onChange, value, passwordsDoNotMatch, isRequired*/ 12326) {
|
|
27663
27654
|
{
|
|
27664
27655
|
if (resetValue) {
|
|
27665
27656
|
$$invalidate(5, value = undefined);
|
|
27666
27657
|
onChange(value);
|
|
27667
27658
|
}
|
|
27659
|
+
|
|
27660
|
+
if (passwordsDoNotMatch) {
|
|
27661
|
+
$$invalidate(8, message = interpolate('passwordConfirmationError', null, 'Passwords do not match'));
|
|
27662
|
+
} else if (isRequired) {
|
|
27663
|
+
$$invalidate(8, message = interpolate('requiredField', null, 'This field is required'));
|
|
27664
|
+
} else {
|
|
27665
|
+
$$invalidate(8, message = '');
|
|
27666
|
+
}
|
|
27668
27667
|
}
|
|
27669
27668
|
}
|
|
27670
27669
|
};
|
|
27671
27670
|
|
|
27672
27671
|
return [
|
|
27673
27672
|
forceValidityFailure,
|
|
27674
|
-
|
|
27673
|
+
passwordsDoNotMatch,
|
|
27675
27674
|
isRequired,
|
|
27676
27675
|
key,
|
|
27677
27676
|
showMessage,
|
|
27678
27677
|
value,
|
|
27679
27678
|
isVisible,
|
|
27680
27679
|
type,
|
|
27680
|
+
message,
|
|
27681
27681
|
Input,
|
|
27682
27682
|
onChangeWrapper,
|
|
27683
27683
|
toggleVisibility,
|
|
@@ -27695,12 +27695,12 @@ class Confirm_input extends SvelteComponent {
|
|
|
27695
27695
|
|
|
27696
27696
|
init(this, options, instance$q, create_fragment$q, safe_not_equal, {
|
|
27697
27697
|
forceValidityFailure: 0,
|
|
27698
|
-
|
|
27698
|
+
passwordsDoNotMatch: 1,
|
|
27699
27699
|
isRequired: 2,
|
|
27700
27700
|
key: 3,
|
|
27701
|
-
onChange:
|
|
27702
|
-
resetValue:
|
|
27703
|
-
style:
|
|
27701
|
+
onChange: 12,
|
|
27702
|
+
resetValue: 13,
|
|
27703
|
+
style: 14,
|
|
27704
27704
|
showMessage: 4
|
|
27705
27705
|
});
|
|
27706
27706
|
}
|
|
@@ -27856,8 +27856,9 @@ function create_if_block$a(ctx) {
|
|
|
27856
27856
|
confirminput = new Confirm_input({
|
|
27857
27857
|
props: {
|
|
27858
27858
|
forceValidityFailure: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27859
|
-
|
|
27859
|
+
passwordsDoNotMatch: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27860
27860
|
key: /*key*/ ctx[0],
|
|
27861
|
+
isRequired: /*value*/ ctx[7].length > 0,
|
|
27861
27862
|
onChange: /*confirmInput*/ ctx[15],
|
|
27862
27863
|
resetValue: /*resetValue*/ ctx[11],
|
|
27863
27864
|
showMessage: /*doPasswordsMatch*/ ctx[9] === false,
|
|
@@ -27876,8 +27877,9 @@ function create_if_block$a(ctx) {
|
|
|
27876
27877
|
p(ctx, dirty) {
|
|
27877
27878
|
const confirminput_changes = {};
|
|
27878
27879
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.forceValidityFailure = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27879
|
-
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.
|
|
27880
|
+
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.passwordsDoNotMatch = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27880
27881
|
if (dirty & /*key*/ 1) confirminput_changes.key = /*key*/ ctx[0];
|
|
27882
|
+
if (dirty & /*value*/ 128) confirminput_changes.isRequired = /*value*/ ctx[7].length > 0;
|
|
27881
27883
|
if (dirty & /*resetValue*/ 2048) confirminput_changes.resetValue = /*resetValue*/ ctx[11];
|
|
27882
27884
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.showMessage = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27883
27885
|
if (dirty & /*style*/ 16) confirminput_changes.style = /*style*/ ctx[4];
|