@descope/web-components-ui 3.3.1 → 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 +12 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -7
- 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/index.js +1 -1
- package/package.json +32 -32
- package/src/components/descope-date-field/DateFieldClass.js +12 -7
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -22699,8 +22699,10 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
|
22699
22699
|
#adjustPopoverPosition() {
|
|
22700
22700
|
const popover = this.shadowRoot.querySelector('vaadin-popover').shadowRoot;
|
|
22701
22701
|
|
|
22702
|
-
//
|
|
22703
|
-
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
|
+
);
|
|
22704
22706
|
|
|
22705
22707
|
const windowRect = document.body.getBoundingClientRect();
|
|
22706
22708
|
const inputRect = this.getBoundingClientRect();
|
|
@@ -22718,14 +22720,17 @@ class RawDateFieldClass extends BaseInputClass$1 {
|
|
|
22718
22720
|
newOffset = Math.min(Math.abs(offset), availableLeft) * -1;
|
|
22719
22721
|
}
|
|
22720
22722
|
|
|
22721
|
-
|
|
22722
|
-
`
|
|
22723
|
+
const css = `
|
|
22723
22724
|
vaadin-popover-overlay::part(overlay) {
|
|
22724
22725
|
transform: translateX(${newOffset}px);
|
|
22725
22726
|
}
|
|
22726
|
-
|
|
22727
|
-
|
|
22728
|
-
)
|
|
22727
|
+
`;
|
|
22728
|
+
|
|
22729
|
+
if (this.#popoverPosStylesheet) {
|
|
22730
|
+
this.#popoverPosStylesheet.replaceSync(css);
|
|
22731
|
+
} else {
|
|
22732
|
+
this.#popoverPosStylesheet = injectStyle(css, popover);
|
|
22733
|
+
}
|
|
22729
22734
|
}
|
|
22730
22735
|
|
|
22731
22736
|
#getPopoverContent() {
|