@forgerock/login-widget 1.0.0-beta.15 → 1.0.0-beta.16
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 +7 -0
- package/index.cjs +49 -45
- package/index.cjs.map +1 -1
- package/index.js +49 -45
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.0.0-beta.16](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **confirm-input:** make confirm input required when password is filled ([0c8325c](https://github.com/forgerock/forgerock-web-login-framework/commit/0c8325cd2e0a9959c3a88b2e4aa8abd6e931456b))
|
|
7
|
+
|
|
1
8
|
# [1.0.0-beta.15](https://github.com/forgerock/forgerock-web-login-framework/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-27)
|
|
2
9
|
|
|
3
10
|
|
package/index.cjs
CHANGED
|
@@ -23116,7 +23116,7 @@ function get_each_context$7(ctx, list, i) {
|
|
|
23116
23116
|
return child_ctx;
|
|
23117
23117
|
}
|
|
23118
23118
|
|
|
23119
|
-
// (
|
|
23119
|
+
// (39:0) {#if labelOrder === 'first'}
|
|
23120
23120
|
function create_if_block_1$a(ctx) {
|
|
23121
23121
|
let label_1;
|
|
23122
23122
|
let current;
|
|
@@ -23164,7 +23164,7 @@ function create_if_block_1$a(ctx) {
|
|
|
23164
23164
|
};
|
|
23165
23165
|
}
|
|
23166
23166
|
|
|
23167
|
-
// (
|
|
23167
|
+
// (40:2) <Label {key} classes={`${labelClasses}`}>
|
|
23168
23168
|
function create_default_slot_1$b(ctx) {
|
|
23169
23169
|
let t;
|
|
23170
23170
|
|
|
@@ -23184,7 +23184,7 @@ function create_default_slot_1$b(ctx) {
|
|
|
23184
23184
|
};
|
|
23185
23185
|
}
|
|
23186
23186
|
|
|
23187
|
-
// (
|
|
23187
|
+
// (54:2) {#each options as option}
|
|
23188
23188
|
function create_each_block$7(ctx) {
|
|
23189
23189
|
let option;
|
|
23190
23190
|
let t0_value = /*option*/ ctx[15].text + "";
|
|
@@ -23225,7 +23225,7 @@ function create_each_block$7(ctx) {
|
|
|
23225
23225
|
};
|
|
23226
23226
|
}
|
|
23227
23227
|
|
|
23228
|
-
// (
|
|
23228
|
+
// (61:0) {#if labelOrder === 'last'}
|
|
23229
23229
|
function create_if_block$g(ctx) {
|
|
23230
23230
|
let label_1;
|
|
23231
23231
|
let current;
|
|
@@ -23278,7 +23278,7 @@ function create_if_block$g(ctx) {
|
|
|
23278
23278
|
};
|
|
23279
23279
|
}
|
|
23280
23280
|
|
|
23281
|
-
// (
|
|
23281
|
+
// (62:2) <Label {key} classes={`${shouldDisplayOption ? labelClasses : 'tw_sr-only'}`}>
|
|
23282
23282
|
function create_default_slot$i(ctx) {
|
|
23283
23283
|
let t;
|
|
23284
23284
|
|
|
@@ -23517,8 +23517,6 @@ function instance$E($$self, $$props, $$invalidate) {
|
|
|
23517
23517
|
// Check if text is same as label
|
|
23518
23518
|
$$invalidate(10, shouldDisplayOption = !(label === selectedOption?.text));
|
|
23519
23519
|
|
|
23520
|
-
console.log(shouldDisplayOption);
|
|
23521
|
-
|
|
23522
23520
|
// Continue with calling onChange parameter
|
|
23523
23521
|
onChange(event);
|
|
23524
23522
|
}
|
|
@@ -27405,8 +27403,8 @@ class Eye_icon extends SvelteComponent {
|
|
|
27405
27403
|
|
|
27406
27404
|
function create_default_slot_1$8(ctx) {
|
|
27407
27405
|
let current;
|
|
27408
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
27409
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
27406
|
+
const default_slot_template = /*#slots*/ ctx[15].default;
|
|
27407
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[16], null);
|
|
27410
27408
|
|
|
27411
27409
|
return {
|
|
27412
27410
|
c() {
|
|
@@ -27421,15 +27419,15 @@ function create_default_slot_1$8(ctx) {
|
|
|
27421
27419
|
},
|
|
27422
27420
|
p(ctx, dirty) {
|
|
27423
27421
|
if (default_slot) {
|
|
27424
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
27422
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 65536)) {
|
|
27425
27423
|
update_slot_base(
|
|
27426
27424
|
default_slot,
|
|
27427
27425
|
default_slot_template,
|
|
27428
27426
|
ctx,
|
|
27429
|
-
/*$$scope*/ ctx[
|
|
27427
|
+
/*$$scope*/ ctx[16],
|
|
27430
27428
|
!current
|
|
27431
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
27432
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
27429
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[16])
|
|
27430
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[16], dirty, null),
|
|
27433
27431
|
null
|
|
27434
27432
|
);
|
|
27435
27433
|
}
|
|
@@ -27450,7 +27448,7 @@ function create_default_slot_1$8(ctx) {
|
|
|
27450
27448
|
};
|
|
27451
27449
|
}
|
|
27452
27450
|
|
|
27453
|
-
// (
|
|
27451
|
+
// (69:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
27454
27452
|
function create_default_slot$f(ctx) {
|
|
27455
27453
|
let t;
|
|
27456
27454
|
let current;
|
|
@@ -27480,7 +27478,7 @@ function create_default_slot$f(ctx) {
|
|
|
27480
27478
|
};
|
|
27481
27479
|
}
|
|
27482
27480
|
|
|
27483
|
-
// (
|
|
27481
|
+
// (63:2)
|
|
27484
27482
|
function create_input_button_slot$1(ctx) {
|
|
27485
27483
|
let button;
|
|
27486
27484
|
let eyeicon;
|
|
@@ -27511,7 +27509,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
27511
27509
|
current = true;
|
|
27512
27510
|
|
|
27513
27511
|
if (!mounted) {
|
|
27514
|
-
dispose = listen(button, "click", /*toggleVisibility*/ ctx[
|
|
27512
|
+
dispose = listen(button, "click", /*toggleVisibility*/ ctx[11]);
|
|
27515
27513
|
mounted = true;
|
|
27516
27514
|
}
|
|
27517
27515
|
},
|
|
@@ -27519,7 +27517,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
27519
27517
|
const eyeicon_changes = {};
|
|
27520
27518
|
if (dirty & /*isVisible*/ 64) eyeicon_changes.visible = /*isVisible*/ ctx[6];
|
|
27521
27519
|
|
|
27522
|
-
if (dirty & /*$$scope*/
|
|
27520
|
+
if (dirty & /*$$scope*/ 65536) {
|
|
27523
27521
|
eyeicon_changes.$$scope = { dirty, ctx };
|
|
27524
27522
|
}
|
|
27525
27523
|
|
|
@@ -27547,18 +27545,16 @@ function create_fragment$q(ctx) {
|
|
|
27547
27545
|
let input;
|
|
27548
27546
|
let current;
|
|
27549
27547
|
|
|
27550
|
-
input = new /*Input*/ ctx[
|
|
27548
|
+
input = new /*Input*/ ctx[9]({
|
|
27551
27549
|
props: {
|
|
27552
27550
|
forceValidityFailure: /*forceValidityFailure*/ ctx[0],
|
|
27553
27551
|
isFirstInvalidInput: false,
|
|
27554
27552
|
hasRightIcon: true,
|
|
27555
27553
|
key: `${/*key*/ ctx[3]}-confirm`,
|
|
27556
27554
|
label: interpolate('confirmPassword', null, 'Confirm Password'),
|
|
27557
|
-
message: /*
|
|
27558
|
-
|
|
27559
|
-
:
|
|
27560
|
-
onChange: /*onChangeWrapper*/ ctx[9],
|
|
27561
|
-
isInvalid: /*isInvalid*/ ctx[1],
|
|
27555
|
+
message: /*message*/ ctx[8],
|
|
27556
|
+
onChange: /*onChangeWrapper*/ ctx[10],
|
|
27557
|
+
isInvalid: /*passwordsDoNotMatch*/ ctx[1],
|
|
27562
27558
|
isRequired: /*isRequired*/ ctx[2],
|
|
27563
27559
|
showMessage: /*showMessage*/ ctx[4],
|
|
27564
27560
|
type: /*type*/ ctx[7],
|
|
@@ -27585,12 +27581,8 @@ function create_fragment$q(ctx) {
|
|
|
27585
27581
|
const input_changes = {};
|
|
27586
27582
|
if (dirty & /*forceValidityFailure*/ 1) input_changes.forceValidityFailure = /*forceValidityFailure*/ ctx[0];
|
|
27587
27583
|
if (dirty & /*key*/ 8) input_changes.key = `${/*key*/ ctx[3]}-confirm`;
|
|
27588
|
-
|
|
27589
|
-
if (dirty & /*
|
|
27590
|
-
? interpolate('passwordConfirmationError', null, 'Passwords do not match')
|
|
27591
|
-
: undefined;
|
|
27592
|
-
|
|
27593
|
-
if (dirty & /*isInvalid*/ 2) input_changes.isInvalid = /*isInvalid*/ ctx[1];
|
|
27584
|
+
if (dirty & /*message*/ 256) input_changes.message = /*message*/ ctx[8];
|
|
27585
|
+
if (dirty & /*passwordsDoNotMatch*/ 2) input_changes.isInvalid = /*passwordsDoNotMatch*/ ctx[1];
|
|
27594
27586
|
if (dirty & /*isRequired*/ 4) input_changes.isRequired = /*isRequired*/ ctx[2];
|
|
27595
27587
|
if (dirty & /*showMessage*/ 16) input_changes.showMessage = /*showMessage*/ ctx[4];
|
|
27596
27588
|
if (dirty & /*type*/ 128) input_changes.type = /*type*/ ctx[7];
|
|
@@ -27599,7 +27591,7 @@ function create_fragment$q(ctx) {
|
|
|
27599
27591
|
? /*value*/ ctx[5]
|
|
27600
27592
|
: '';
|
|
27601
27593
|
|
|
27602
|
-
if (dirty & /*$$scope, isVisible*/
|
|
27594
|
+
if (dirty & /*$$scope, isVisible*/ 65600) {
|
|
27603
27595
|
input_changes.$$scope = { dirty, ctx };
|
|
27604
27596
|
}
|
|
27605
27597
|
|
|
@@ -27623,8 +27615,8 @@ function create_fragment$q(ctx) {
|
|
|
27623
27615
|
function instance$q($$self, $$props, $$invalidate) {
|
|
27624
27616
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
27625
27617
|
let { forceValidityFailure = false } = $$props;
|
|
27626
|
-
let {
|
|
27627
|
-
let { isRequired =
|
|
27618
|
+
let { passwordsDoNotMatch = false } = $$props;
|
|
27619
|
+
let { isRequired = false } = $$props;
|
|
27628
27620
|
let { key } = $$props;
|
|
27629
27621
|
let { onChange } = $$props;
|
|
27630
27622
|
let { resetValue } = $$props;
|
|
@@ -27634,6 +27626,7 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27634
27626
|
let isVisible = false;
|
|
27635
27627
|
let type = 'password';
|
|
27636
27628
|
let value;
|
|
27629
|
+
let message = '';
|
|
27637
27630
|
|
|
27638
27631
|
function onChangeWrapper(event) {
|
|
27639
27632
|
$$invalidate(5, value = event.target?.value);
|
|
@@ -27652,36 +27645,45 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27652
27645
|
|
|
27653
27646
|
$$self.$$set = $$props => {
|
|
27654
27647
|
if ('forceValidityFailure' in $$props) $$invalidate(0, forceValidityFailure = $$props.forceValidityFailure);
|
|
27655
|
-
if ('
|
|
27648
|
+
if ('passwordsDoNotMatch' in $$props) $$invalidate(1, passwordsDoNotMatch = $$props.passwordsDoNotMatch);
|
|
27656
27649
|
if ('isRequired' in $$props) $$invalidate(2, isRequired = $$props.isRequired);
|
|
27657
27650
|
if ('key' in $$props) $$invalidate(3, key = $$props.key);
|
|
27658
|
-
if ('onChange' in $$props) $$invalidate(
|
|
27659
|
-
if ('resetValue' in $$props) $$invalidate(
|
|
27660
|
-
if ('style' in $$props) $$invalidate(
|
|
27651
|
+
if ('onChange' in $$props) $$invalidate(12, onChange = $$props.onChange);
|
|
27652
|
+
if ('resetValue' in $$props) $$invalidate(13, resetValue = $$props.resetValue);
|
|
27653
|
+
if ('style' in $$props) $$invalidate(14, style = $$props.style);
|
|
27661
27654
|
if ('showMessage' in $$props) $$invalidate(4, showMessage = $$props.showMessage);
|
|
27662
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
27655
|
+
if ('$$scope' in $$props) $$invalidate(16, $$scope = $$props.$$scope);
|
|
27663
27656
|
};
|
|
27664
27657
|
|
|
27665
27658
|
$$self.$$.update = () => {
|
|
27666
|
-
if ($$self.$$.dirty & /*resetValue, onChange, value*/
|
|
27659
|
+
if ($$self.$$.dirty & /*resetValue, onChange, value, passwordsDoNotMatch, isRequired*/ 12326) {
|
|
27667
27660
|
{
|
|
27668
27661
|
if (resetValue) {
|
|
27669
27662
|
$$invalidate(5, value = undefined);
|
|
27670
27663
|
onChange(value);
|
|
27671
27664
|
}
|
|
27665
|
+
|
|
27666
|
+
if (passwordsDoNotMatch) {
|
|
27667
|
+
$$invalidate(8, message = interpolate('passwordConfirmationError', null, 'Passwords do not match'));
|
|
27668
|
+
} else if (isRequired) {
|
|
27669
|
+
$$invalidate(8, message = interpolate('requiredField', null, 'This field is required'));
|
|
27670
|
+
} else {
|
|
27671
|
+
$$invalidate(8, message = '');
|
|
27672
|
+
}
|
|
27672
27673
|
}
|
|
27673
27674
|
}
|
|
27674
27675
|
};
|
|
27675
27676
|
|
|
27676
27677
|
return [
|
|
27677
27678
|
forceValidityFailure,
|
|
27678
|
-
|
|
27679
|
+
passwordsDoNotMatch,
|
|
27679
27680
|
isRequired,
|
|
27680
27681
|
key,
|
|
27681
27682
|
showMessage,
|
|
27682
27683
|
value,
|
|
27683
27684
|
isVisible,
|
|
27684
27685
|
type,
|
|
27686
|
+
message,
|
|
27685
27687
|
Input,
|
|
27686
27688
|
onChangeWrapper,
|
|
27687
27689
|
toggleVisibility,
|
|
@@ -27699,12 +27701,12 @@ class Confirm_input extends SvelteComponent {
|
|
|
27699
27701
|
|
|
27700
27702
|
init(this, options, instance$q, create_fragment$q, safe_not_equal, {
|
|
27701
27703
|
forceValidityFailure: 0,
|
|
27702
|
-
|
|
27704
|
+
passwordsDoNotMatch: 1,
|
|
27703
27705
|
isRequired: 2,
|
|
27704
27706
|
key: 3,
|
|
27705
|
-
onChange:
|
|
27706
|
-
resetValue:
|
|
27707
|
-
style:
|
|
27707
|
+
onChange: 12,
|
|
27708
|
+
resetValue: 13,
|
|
27709
|
+
style: 14,
|
|
27708
27710
|
showMessage: 4
|
|
27709
27711
|
});
|
|
27710
27712
|
}
|
|
@@ -27860,8 +27862,9 @@ function create_if_block$a(ctx) {
|
|
|
27860
27862
|
confirminput = new Confirm_input({
|
|
27861
27863
|
props: {
|
|
27862
27864
|
forceValidityFailure: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27863
|
-
|
|
27865
|
+
passwordsDoNotMatch: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27864
27866
|
key: /*key*/ ctx[0],
|
|
27867
|
+
isRequired: /*value*/ ctx[7].length > 0,
|
|
27865
27868
|
onChange: /*confirmInput*/ ctx[15],
|
|
27866
27869
|
resetValue: /*resetValue*/ ctx[11],
|
|
27867
27870
|
showMessage: /*doPasswordsMatch*/ ctx[9] === false,
|
|
@@ -27880,8 +27883,9 @@ function create_if_block$a(ctx) {
|
|
|
27880
27883
|
p(ctx, dirty) {
|
|
27881
27884
|
const confirminput_changes = {};
|
|
27882
27885
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.forceValidityFailure = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27883
|
-
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.
|
|
27886
|
+
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.passwordsDoNotMatch = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27884
27887
|
if (dirty & /*key*/ 1) confirminput_changes.key = /*key*/ ctx[0];
|
|
27888
|
+
if (dirty & /*value*/ 128) confirminput_changes.isRequired = /*value*/ ctx[7].length > 0;
|
|
27885
27889
|
if (dirty & /*resetValue*/ 2048) confirminput_changes.resetValue = /*resetValue*/ ctx[11];
|
|
27886
27890
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.showMessage = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27887
27891
|
if (dirty & /*style*/ 16) confirminput_changes.style = /*style*/ ctx[4];
|