@descope/web-components-ui 3.3.0 → 3.3.2
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 +18 -9
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +37 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-date-field-index-js.js +1 -1
- package/dist/umd/descope-date-field-index-js.js.map +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +2 -2
- package/dist/umd/descope-hybrid-field-index-js.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js.map +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js.map +1 -1
- package/package.json +32 -32
- package/src/components/descope-date-field/DateFieldClass.js +12 -7
- package/src/components/descope-hybrid-field/HybridFieldClass.js +4 -2
- package/src/components/phone-fields/descope-phone-field/PhoneFieldClass.js +1 -0
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +12 -2
- package/src/components/phone-fields/descope-phone-input-box-field/PhoneFieldInputBoxClass.js +1 -0
- package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +7 -0
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -15624,6 +15624,7 @@ const customMixin$6 = (superclass) =>
|
|
|
15624
15624
|
'allow-alphanumeric-input',
|
|
15625
15625
|
'format-value',
|
|
15626
15626
|
'strict-validation',
|
|
15627
|
+
'phone-input-type',
|
|
15627
15628
|
],
|
|
15628
15629
|
});
|
|
15629
15630
|
}
|
|
@@ -15970,6 +15971,7 @@ const customMixin$5 = (superclass) =>
|
|
|
15970
15971
|
'format-value',
|
|
15971
15972
|
'strict-validation',
|
|
15972
15973
|
'data-errormessage-type-mismatch',
|
|
15974
|
+
'phone-input-type',
|
|
15973
15975
|
],
|
|
15974
15976
|
});
|
|
15975
15977
|
}
|
|
@@ -22697,8 +22699,10 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
|
22697
22699
|
#adjustPopoverPosition() {
|
|
22698
22700
|
const popover = this.shadowRoot.querySelector('vaadin-popover').shadowRoot;
|
|
22699
22701
|
|
|
22700
|
-
//
|
|
22701
|
-
this.#popoverPosStylesheet?.
|
|
22702
|
+
// Reset any previous transform so getBoundingClientRect measures the natural position
|
|
22703
|
+
this.#popoverPosStylesheet?.replaceSync(
|
|
22704
|
+
`vaadin-popover-overlay::part(overlay) { transform: none; }`
|
|
22705
|
+
);
|
|
22702
22706
|
|
|
22703
22707
|
const windowRect = document.body.getBoundingClientRect();
|
|
22704
22708
|
const inputRect = this.getBoundingClientRect();
|
|
@@ -22716,14 +22720,17 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
|
22716
22720
|
newOffset = Math.min(Math.abs(offset), availableLeft) * -1;
|
|
22717
22721
|
}
|
|
22718
22722
|
|
|
22719
|
-
|
|
22720
|
-
`
|
|
22723
|
+
const css = `
|
|
22721
22724
|
vaadin-popover-overlay::part(overlay) {
|
|
22722
22725
|
transform: translateX(${newOffset}px);
|
|
22723
22726
|
}
|
|
22724
|
-
|
|
22725
|
-
|
|
22726
|
-
)
|
|
22727
|
+
`;
|
|
22728
|
+
|
|
22729
|
+
if (this.#popoverPosStylesheet) {
|
|
22730
|
+
this.#popoverPosStylesheet.replaceSync(css);
|
|
22731
|
+
} else {
|
|
22732
|
+
this.#popoverPosStylesheet = injectStyle(css, popover);
|
|
22733
|
+
}
|
|
22727
22734
|
}
|
|
22728
22735
|
|
|
22729
22736
|
#getPopoverContent() {
|
|
@@ -24233,6 +24240,7 @@ const attrs = {
|
|
|
24233
24240
|
'phone-minlength',
|
|
24234
24241
|
'phone-format-value',
|
|
24235
24242
|
'phone-strict-validation',
|
|
24243
|
+
'phone-input-type',
|
|
24236
24244
|
'data-errormessage-value-missing-phone',
|
|
24237
24245
|
],
|
|
24238
24246
|
inputBox: [
|
|
@@ -24241,6 +24249,7 @@ const attrs = {
|
|
|
24241
24249
|
'phone-minlength',
|
|
24242
24250
|
'phone-format-value',
|
|
24243
24251
|
'phone-strict-validation',
|
|
24252
|
+
'phone-input-type',
|
|
24244
24253
|
'data-errormessage-value-missing-phone',
|
|
24245
24254
|
],
|
|
24246
24255
|
},
|
|
@@ -24280,8 +24289,8 @@ class RawHybridField extends BaseClass$2 {
|
|
|
24280
24289
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
24281
24290
|
<div class="wrapper">
|
|
24282
24291
|
<descope-email-field external-input="${this.isExternalInput}"></descope-email-field>
|
|
24283
|
-
<descope-phone-field allow-alphanumeric-input="true"></descope-phone-field>
|
|
24284
|
-
<descope-phone-input-box-field allow-alphanumeric-input="true"></descope-phone-input-box-field>
|
|
24292
|
+
<descope-phone-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-field>
|
|
24293
|
+
<descope-phone-input-box-field allow-alphanumeric-input="true" phone-input-type="text"></descope-phone-input-box-field>
|
|
24285
24294
|
</div>
|
|
24286
24295
|
`;
|
|
24287
24296
|
|