@descope/web-components-ui 3.22.1 → 3.22.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.
- package/dist/cjs/index.cjs.js +29 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +29 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/9582.js +1 -1
- package/dist/umd/9582.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js.map +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-alert-index-js.js.map +1 -1
- package/dist/umd/descope-collapsible-container.js +1 -1
- package/dist/umd/descope-collapsible-container.js.map +1 -1
- package/dist/umd/descope-enriched-text.js +1 -1
- package/dist/umd/descope-enriched-text.js.map +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js.map +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js.map +1 -1
- package/dist/umd/descope-password-index-js.js +1 -1
- package/dist/umd/descope-password-index-js.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -1
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +42 -42
- package/src/components/descope-password/PasswordClass.js +14 -3
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3957,6 +3957,13 @@ class EnrichedText extends createBaseClass$1({
|
|
|
3957
3957
|
e.stopPropagation();
|
|
3958
3958
|
}
|
|
3959
3959
|
});
|
|
3960
|
+
|
|
3961
|
+
// The SDK submits the form (and prevents link activation) on any Enter that reaches the flow root
|
|
3962
|
+
this.contentNode?.addEventListener('keydown', (e) => {
|
|
3963
|
+
if (e.key === 'Enter' && e.target instanceof HTMLAnchorElement) {
|
|
3964
|
+
e.stopPropagation();
|
|
3965
|
+
}
|
|
3966
|
+
});
|
|
3960
3967
|
}
|
|
3961
3968
|
|
|
3962
3969
|
static get observedAttributes() {
|
|
@@ -9180,7 +9187,7 @@ var passwordStrength$1 = /*#__PURE__*/Object.freeze({
|
|
|
9180
9187
|
vars: vars$V
|
|
9181
9188
|
});
|
|
9182
9189
|
|
|
9183
|
-
var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+
|
|
9190
|
+
var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K";
|
|
9184
9191
|
|
|
9185
9192
|
const componentName$17 = getComponentName('collapsible-container');
|
|
9186
9193
|
|
|
@@ -9256,9 +9263,6 @@ class RawCollapsibleContainer extends createBaseClass$1({
|
|
|
9256
9263
|
descope-icon {
|
|
9257
9264
|
transition-property: transform;
|
|
9258
9265
|
}
|
|
9259
|
-
.rotate {
|
|
9260
|
-
transform: rotate(-180deg);
|
|
9261
|
-
}
|
|
9262
9266
|
descope-text {
|
|
9263
9267
|
width: 100%;
|
|
9264
9268
|
display: flex;
|
|
@@ -9365,6 +9369,7 @@ class RawCollapsibleContainer extends createBaseClass$1({
|
|
|
9365
9369
|
const selectors$2 = {
|
|
9366
9370
|
host: () => ':host',
|
|
9367
9371
|
icon: () => 'descope-icon',
|
|
9372
|
+
collapsedIcon: () => 'descope-icon.rotate',
|
|
9368
9373
|
iconWrapper: () => '.icon',
|
|
9369
9374
|
header: () => '.header',
|
|
9370
9375
|
iconAndText: () => '.header, .title',
|
|
@@ -9419,6 +9424,11 @@ const CollapsibleContainerClass = compose(
|
|
|
9419
9424
|
selector: selectors$2.content,
|
|
9420
9425
|
property: 'transition-duration',
|
|
9421
9426
|
},
|
|
9427
|
+
chevronRotation: {
|
|
9428
|
+
selector: selectors$2.collapsedIcon,
|
|
9429
|
+
property: 'transform',
|
|
9430
|
+
fallback: 'rotate(180deg)',
|
|
9431
|
+
},
|
|
9422
9432
|
},
|
|
9423
9433
|
}),
|
|
9424
9434
|
draggableMixin$1,
|
|
@@ -9461,6 +9471,7 @@ const collapsibleContainer = {
|
|
|
9461
9471
|
|
|
9462
9472
|
[compVars$5.headerGap]: globalRefs$u.spacing.md,
|
|
9463
9473
|
|
|
9474
|
+
[compVars$5.chevronRotation]: 'rotate(180deg)',
|
|
9464
9475
|
[compVars$5.iconAnimationDuration]: '0.1s',
|
|
9465
9476
|
[compVars$5.contentAnimationDuration]: '0.1s',
|
|
9466
9477
|
|
|
@@ -19270,6 +19281,19 @@ const customMixin$9 = (superclass) =>
|
|
|
19270
19281
|
this.baseElement._setFocused = this.setFocus.bind(this);
|
|
19271
19282
|
|
|
19272
19283
|
this.initExternalInput();
|
|
19284
|
+
this.stopRevealButtonEnterPropagation();
|
|
19285
|
+
}
|
|
19286
|
+
|
|
19287
|
+
// Vaadin toggles visibility on Enter keydown but lets the event bubble,
|
|
19288
|
+
// and the SDK submits the form on any Enter that reaches the flow root.
|
|
19289
|
+
stopRevealButtonEnterPropagation() {
|
|
19290
|
+
this.revealButton.addEventListener('keydown', (e) => {
|
|
19291
|
+
if (e.key === 'Enter') e.stopPropagation();
|
|
19292
|
+
});
|
|
19293
|
+
}
|
|
19294
|
+
|
|
19295
|
+
get revealButton() {
|
|
19296
|
+
return this.baseElement.querySelector('vaadin-password-field-button');
|
|
19273
19297
|
}
|
|
19274
19298
|
|
|
19275
19299
|
initExternalInput() {
|
|
@@ -19325,9 +19349,7 @@ const customMixin$9 = (superclass) =>
|
|
|
19325
19349
|
handlePasswordVisibility(externalInput) {
|
|
19326
19350
|
// disable vaadin's `__boundRevealButtonMouseDown` mouse-down event lisetener
|
|
19327
19351
|
const origBoundRevealButtonMouseDown = this.baseElement.__boundRevealButtonMouseDown;
|
|
19328
|
-
this.
|
|
19329
|
-
.querySelector('vaadin-password-field-button')
|
|
19330
|
-
.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
|
|
19352
|
+
this.revealButton.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
|
|
19331
19353
|
|
|
19332
19354
|
// disable vaadin's `_passwordVisibleChanged` observer
|
|
19333
19355
|
this.baseElement._passwordVisibleChanged = () => {};
|