@aurodesignsystem-dev/auro-formkit 0.0.0-pr1424.5 → 0.0.0-pr1424.6
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/components/checkbox/demo/api.min.js +2 -8
- package/components/checkbox/demo/index.min.js +2 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +1 -1
- package/components/checkbox/dist/index.js +2 -8
- package/components/checkbox/dist/registered.js +2 -8
- package/components/combobox/demo/api.min.js +32 -16
- package/components/combobox/demo/index.min.js +32 -16
- package/components/combobox/dist/index.js +32 -16
- package/components/combobox/dist/registered.js +32 -16
- package/components/counter/demo/api.min.js +45 -21
- package/components/counter/demo/index.min.js +45 -21
- package/components/counter/dist/auro-counter.d.ts +3 -2
- package/components/counter/dist/index.js +45 -21
- package/components/counter/dist/registered.js +45 -21
- package/components/datepicker/demo/api.md +6 -6
- package/components/datepicker/demo/api.min.js +51 -29
- package/components/datepicker/demo/index.min.js +51 -29
- package/components/datepicker/dist/auro-datepicker.d.ts +2 -1
- package/components/datepicker/dist/index.js +51 -29
- package/components/datepicker/dist/registered.js +51 -29
- package/components/dropdown/demo/api.min.js +29 -1
- package/components/dropdown/demo/index.min.js +29 -1
- package/components/dropdown/dist/index.js +29 -1
- package/components/dropdown/dist/registered.js +29 -1
- package/components/form/demo/api.min.js +162 -90
- package/components/form/demo/index.min.js +162 -90
- package/components/input/demo/api.min.js +1 -13
- package/components/input/demo/index.min.js +1 -13
- package/components/input/dist/base-input.d.ts +0 -7
- package/components/input/dist/index.js +1 -13
- package/components/input/dist/registered.js +1 -13
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +30 -2
- package/components/select/demo/index.min.js +30 -2
- package/components/select/demo/keyboard-behavior.html +81 -0
- package/components/select/dist/index.js +30 -2
- package/components/select/dist/registered.js +30 -2
- package/custom-elements.json +3 -47
- package/package.json +2 -2
|
@@ -1802,6 +1802,7 @@ class AuroFloatingUI {
|
|
|
1802
1802
|
this.focusHandler = null;
|
|
1803
1803
|
this.clickHandler = null;
|
|
1804
1804
|
this.keyDownHandler = null;
|
|
1805
|
+
this.touchHandler = null;
|
|
1805
1806
|
|
|
1806
1807
|
/**
|
|
1807
1808
|
* @private
|
|
@@ -2219,6 +2220,28 @@ class AuroFloatingUI {
|
|
|
2219
2220
|
setTimeout(() => {
|
|
2220
2221
|
window.addEventListener("click", this.clickHandler);
|
|
2221
2222
|
}, 0);
|
|
2223
|
+
|
|
2224
|
+
// iOS Safari does not fire `click` on non-interactive elements, so
|
|
2225
|
+
// tapping an inert backdrop never reaches the click handler above.
|
|
2226
|
+
// Mirror the same outside-tap logic with a passive touchstart listener.
|
|
2227
|
+
this.touchHandler = (evt) => {
|
|
2228
|
+
const element = this.element;
|
|
2229
|
+
if (!element?.bib) {
|
|
2230
|
+
return;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
// fullscreen (modal) dialog handles its own dismissal
|
|
2234
|
+
if (element.bib.hasAttribute("isfullscreen")) {
|
|
2235
|
+
return;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
const path = evt.composedPath();
|
|
2239
|
+
if (!path.includes(element.trigger) && !path.includes(element.bib)) {
|
|
2240
|
+
this.hideBib("click");
|
|
2241
|
+
}
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2244
|
+
window.addEventListener("touchstart", this.touchHandler, { passive: true });
|
|
2222
2245
|
}
|
|
2223
2246
|
|
|
2224
2247
|
cleanupHideHandlers() {
|
|
@@ -2234,6 +2257,11 @@ class AuroFloatingUI {
|
|
|
2234
2257
|
this.clickHandler = null;
|
|
2235
2258
|
}
|
|
2236
2259
|
|
|
2260
|
+
if (this.touchHandler) {
|
|
2261
|
+
window.removeEventListener("touchstart", this.touchHandler);
|
|
2262
|
+
this.touchHandler = null;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2237
2265
|
if (this.keyDownHandler) {
|
|
2238
2266
|
document.removeEventListener("keydown", this.keyDownHandler);
|
|
2239
2267
|
this.keyDownHandler = null;
|
|
@@ -3708,7 +3736,7 @@ class AuroHelpText extends LitElement {
|
|
|
3708
3736
|
}
|
|
3709
3737
|
}
|
|
3710
3738
|
|
|
3711
|
-
var formkitVersion = '
|
|
3739
|
+
var formkitVersion = '202604222001';
|
|
3712
3740
|
|
|
3713
3741
|
class AuroElement extends LitElement {
|
|
3714
3742
|
static get properties() {
|