@tamagui/floating 2.7.7 → 3.0.0-beta.1097.1
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/Floating.cjs +9 -11
- package/dist/cjs/Floating.native.cjs +36 -0
- package/dist/cjs/Floating.native.js +19 -20
- package/dist/cjs/Floating.native.js.map +1 -1
- package/dist/cjs/index.cjs +44 -46
- package/dist/cjs/index.native.cjs +73 -0
- package/dist/cjs/index.native.js +44 -45
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/interactions/PopupTriggerMap.cjs +35 -39
- package/dist/cjs/interactions/PopupTriggerMap.native.cjs +95 -0
- package/dist/cjs/interactions/PopupTriggerMap.native.js +75 -75
- package/dist/cjs/interactions/PopupTriggerMap.native.js.map +1 -1
- package/dist/cjs/interactions/createFloatingEvents.cjs +35 -39
- package/dist/cjs/interactions/createFloatingEvents.native.cjs +51 -0
- package/dist/cjs/interactions/createFloatingEvents.native.js +38 -41
- package/dist/cjs/interactions/createFloatingEvents.native.js.map +1 -1
- package/dist/cjs/interactions/safePolygon.cjs +262 -252
- package/dist/cjs/interactions/safePolygon.native.cjs +293 -0
- package/dist/cjs/interactions/safePolygon.native.js +270 -259
- package/dist/cjs/interactions/safePolygon.native.js.map +1 -1
- package/dist/cjs/interactions/types.cjs +9 -11
- package/dist/cjs/interactions/types.native.cjs +18 -0
- package/dist/cjs/interactions/types.native.js +9 -10
- package/dist/cjs/interactions/types.native.js.map +1 -1
- package/dist/cjs/interactions/useClick.cjs +95 -105
- package/dist/cjs/interactions/useClick.native.cjs +121 -0
- package/dist/cjs/interactions/useClick.native.js +100 -109
- package/dist/cjs/interactions/useClick.native.js.map +1 -1
- package/dist/cjs/interactions/useDelayGroup.cjs +85 -91
- package/dist/cjs/interactions/useDelayGroup.native.cjs +118 -0
- package/dist/cjs/interactions/useDelayGroup.native.js +91 -96
- package/dist/cjs/interactions/useDelayGroup.native.js.map +1 -1
- package/dist/cjs/interactions/useFocus.cjs +107 -115
- package/dist/cjs/interactions/useFocus.native.cjs +130 -0
- package/dist/cjs/interactions/useFocus.native.js +113 -120
- package/dist/cjs/interactions/useFocus.native.js.map +1 -1
- package/dist/cjs/interactions/useHover.cjs +320 -335
- package/dist/cjs/interactions/useHover.native.cjs +356 -0
- package/dist/cjs/interactions/useHover.native.js +332 -347
- package/dist/cjs/interactions/useHover.native.js.map +1 -1
- package/dist/cjs/interactions/useInnerOffset.cjs +102 -111
- package/dist/cjs/interactions/useInnerOffset.native.cjs +131 -0
- package/dist/cjs/interactions/useInnerOffset.native.js +112 -120
- package/dist/cjs/interactions/useInnerOffset.native.js.map +1 -1
- package/dist/cjs/interactions/useInteractions.cjs +76 -92
- package/dist/cjs/interactions/useInteractions.native.cjs +199 -0
- package/dist/cjs/interactions/useInteractions.native.js +185 -200
- package/dist/cjs/interactions/useInteractions.native.js.map +1 -1
- package/dist/cjs/interactions/useListNavigation.cjs +404 -390
- package/dist/cjs/interactions/useListNavigation.native.cjs +446 -0
- package/dist/cjs/interactions/useListNavigation.native.js +416 -401
- package/dist/cjs/interactions/useListNavigation.native.js.map +1 -1
- package/dist/cjs/interactions/useRole.cjs +91 -106
- package/dist/cjs/interactions/useRole.native.cjs +120 -0
- package/dist/cjs/interactions/useRole.native.js +102 -116
- package/dist/cjs/interactions/useRole.native.js.map +1 -1
- package/dist/cjs/interactions/useTypeahead.cjs +114 -129
- package/dist/cjs/interactions/useTypeahead.native.cjs +143 -0
- package/dist/cjs/interactions/useTypeahead.native.js +127 -141
- package/dist/cjs/interactions/useTypeahead.native.js.map +1 -1
- package/dist/cjs/interactions/utils.cjs +125 -143
- package/dist/cjs/interactions/utils.native.cjs +201 -0
- package/dist/cjs/interactions/utils.native.js +132 -156
- package/dist/cjs/interactions/utils.native.js.map +1 -1
- package/dist/cjs/middleware/inner.cjs +73 -101
- package/dist/cjs/middleware/inner.native.cjs +101 -0
- package/dist/cjs/middleware/inner.native.js +82 -109
- package/dist/cjs/middleware/inner.native.js.map +1 -1
- package/dist/cjs/useFloating.cjs +33 -46
- package/dist/cjs/useFloating.native.cjs +55 -0
- package/dist/cjs/useFloating.native.js +36 -48
- package/dist/cjs/useFloating.native.js.map +1 -1
- package/dist/esm/Floating.mjs +1 -2
- package/dist/esm/Floating.native.js +6 -4
- package/dist/esm/Floating.native.js.map +1 -1
- package/dist/esm/index.js +4 -5
- package/dist/esm/index.mjs +4 -5
- package/dist/esm/index.native.js +4 -5
- package/dist/esm/interactions/PopupTriggerMap.mjs +23 -22
- package/dist/esm/interactions/PopupTriggerMap.mjs.map +1 -1
- package/dist/esm/interactions/PopupTriggerMap.native.js +62 -58
- package/dist/esm/interactions/PopupTriggerMap.native.js.map +1 -1
- package/dist/esm/interactions/createFloatingEvents.mjs +22 -21
- package/dist/esm/interactions/createFloatingEvents.mjs.map +1 -1
- package/dist/esm/interactions/createFloatingEvents.native.js +25 -24
- package/dist/esm/interactions/createFloatingEvents.native.js.map +1 -1
- package/dist/esm/interactions/safePolygon.mjs +250 -234
- package/dist/esm/interactions/safePolygon.mjs.map +1 -1
- package/dist/esm/interactions/safePolygon.native.js +258 -242
- package/dist/esm/interactions/safePolygon.native.js.map +1 -1
- package/dist/esm/interactions/types.mjs +0 -2
- package/dist/esm/interactions/types.native.js +0 -2
- package/dist/esm/interactions/useClick.mjs +83 -87
- package/dist/esm/interactions/useClick.mjs.map +1 -1
- package/dist/esm/interactions/useClick.native.js +88 -92
- package/dist/esm/interactions/useClick.native.js.map +1 -1
- package/dist/esm/interactions/useDelayGroup.mjs +68 -65
- package/dist/esm/interactions/useDelayGroup.mjs.map +1 -1
- package/dist/esm/interactions/useDelayGroup.native.js +74 -71
- package/dist/esm/interactions/useDelayGroup.native.js.map +1 -1
- package/dist/esm/interactions/useFocus.mjs +95 -97
- package/dist/esm/interactions/useFocus.mjs.map +1 -1
- package/dist/esm/interactions/useFocus.native.js +101 -103
- package/dist/esm/interactions/useFocus.native.js.map +1 -1
- package/dist/esm/interactions/useHover.mjs +304 -310
- package/dist/esm/interactions/useHover.mjs.map +1 -1
- package/dist/esm/interactions/useHover.native.js +316 -323
- package/dist/esm/interactions/useHover.native.js.map +1 -1
- package/dist/esm/interactions/useInnerOffset.mjs +87 -85
- package/dist/esm/interactions/useInnerOffset.mjs.map +1 -1
- package/dist/esm/interactions/useInnerOffset.native.js +97 -95
- package/dist/esm/interactions/useInnerOffset.native.js.map +1 -1
- package/dist/esm/interactions/useInteractions.mjs +65 -75
- package/dist/esm/interactions/useInteractions.mjs.map +1 -1
- package/dist/esm/interactions/useInteractions.native.js +172 -182
- package/dist/esm/interactions/useInteractions.native.js.map +1 -1
- package/dist/esm/interactions/useListNavigation.mjs +393 -373
- package/dist/esm/interactions/useListNavigation.mjs.map +1 -1
- package/dist/esm/interactions/useListNavigation.native.js +405 -385
- package/dist/esm/interactions/useListNavigation.native.js.map +1 -1
- package/dist/esm/interactions/useRole.mjs +76 -80
- package/dist/esm/interactions/useRole.mjs.map +1 -1
- package/dist/esm/interactions/useRole.native.js +87 -91
- package/dist/esm/interactions/useRole.native.js.map +1 -1
- package/dist/esm/interactions/useTypeahead.mjs +102 -111
- package/dist/esm/interactions/useTypeahead.mjs.map +1 -1
- package/dist/esm/interactions/useTypeahead.native.js +115 -124
- package/dist/esm/interactions/useTypeahead.native.js.map +1 -1
- package/dist/esm/interactions/utils.mjs +91 -106
- package/dist/esm/interactions/utils.mjs.map +1 -1
- package/dist/esm/interactions/utils.native.js +98 -120
- package/dist/esm/interactions/utils.native.js.map +1 -1
- package/dist/esm/middleware/inner.mjs +58 -75
- package/dist/esm/middleware/inner.mjs.map +1 -1
- package/dist/esm/middleware/inner.native.js +67 -84
- package/dist/esm/middleware/inner.native.js.map +1 -1
- package/dist/esm/useFloating.mjs +17 -21
- package/dist/esm/useFloating.mjs.map +1 -1
- package/dist/esm/useFloating.native.js +19 -23
- package/dist/esm/useFloating.native.js.map +1 -1
- package/package.json +8 -6
- package/src/interactions/useInteractions.ts +61 -59
- package/src/interactions/useListNavigation.ts +7 -2
- package/types/interactions/PopupTriggerMap.d.ts.map +1 -1
- package/types/interactions/useInteractions.d.ts +3 -3
- package/types/interactions/useInteractions.d.ts.map +1 -1
- package/types/interactions/useListNavigation.d.ts.map +1 -1
- package/types/middleware/inner.d.ts.map +1 -1
- package/types/useFloating.d.ts.map +1 -1
- package/dist/esm/Floating.mjs.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/interactions/types.mjs.map +0 -1
- package/dist/esm/interactions/types.native.js.map +0 -1
package/dist/cjs/Floating.cjs
CHANGED
|
@@ -3,18 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
+
get: () => from[key],
|
|
9
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
13
|
};
|
|
14
14
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
}), mod);
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
16
|
var Floating_exports = {};
|
|
19
17
|
module.exports = __toCommonJS(Floating_exports);
|
|
20
|
-
__reExport(Floating_exports, require("@floating-ui/react-dom"), module.exports);
|
|
18
|
+
__reExport(Floating_exports, require("@floating-ui/react-dom"), module.exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var Floating_native_exports = {};
|
|
25
|
+
__export(Floating_native_exports, {
|
|
26
|
+
autoUpdate: () => autoUpdate,
|
|
27
|
+
getOverflowAncestors: () => getOverflowAncestors,
|
|
28
|
+
platform: () => platform
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(Floating_native_exports);
|
|
31
|
+
__reExport(Floating_native_exports, require("@floating-ui/react-native"), module.exports);
|
|
32
|
+
var autoUpdate = function() {};
|
|
33
|
+
var getOverflowAncestors = function() {
|
|
34
|
+
return [];
|
|
35
|
+
};
|
|
36
|
+
var platform = null;
|
|
@@ -5,35 +5,34 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
22
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
24
|
-
value: true
|
|
25
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
24
|
var Floating_native_exports = {};
|
|
27
25
|
__export(Floating_native_exports, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
autoUpdate: () => autoUpdate,
|
|
27
|
+
getOverflowAncestors: () => getOverflowAncestors,
|
|
28
|
+
platform: () => platform
|
|
31
29
|
});
|
|
32
30
|
module.exports = __toCommonJS(Floating_native_exports);
|
|
33
31
|
__reExport(Floating_native_exports, require("@floating-ui/react-native"), module.exports);
|
|
34
|
-
var autoUpdate = function
|
|
35
|
-
var getOverflowAncestors = function
|
|
36
|
-
|
|
32
|
+
var autoUpdate = function() {};
|
|
33
|
+
var getOverflowAncestors = function() {
|
|
34
|
+
return [];
|
|
37
35
|
};
|
|
38
36
|
var platform = null;
|
|
37
|
+
|
|
39
38
|
//# sourceMappingURL=Floating.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Floating.native.js","names":[],"sources":["cjs/Floating.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Floating_native_exports = {};\n__export(Floating_native_exports, {\n autoUpdate: () => autoUpdate,\n getOverflowAncestors: () => getOverflowAncestors,\n platform: () => platform\n});\nmodule.exports = __toCommonJS(Floating_native_exports);\n__reExport(Floating_native_exports, require(\"@floating-ui/react-native\"), module.exports);\nvar autoUpdate = function() {\n};\nvar getOverflowAncestors = function() {\n return [];\n};\nvar platform = null;\n//# sourceMappingURL=Floating.native.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB;CAChC,kBAAkB;CAClB,4BAA4B;CAC5B,gBAAgB;AAClB,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,WAAW,yBAAyB,QAAQ,2BAA2B,GAAG,OAAO,OAAO;AACxF,IAAI,aAAa,WAAW,CAC5B;AACA,IAAI,uBAAuB,WAAW;CACpC,OAAO,CAAC;AACV;AACA,IAAI,WAAW"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,56 +3,54 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var index_exports = {};
|
|
24
22
|
__export(index_exports, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
23
|
+
FloatingDelayGroup: () => import_useDelayGroup.FloatingDelayGroup,
|
|
24
|
+
FloatingOverrideContext: () => import_useFloating.FloatingOverrideContext,
|
|
25
|
+
PopupTriggerMap: () => import_PopupTriggerMap.PopupTriggerMap,
|
|
26
|
+
arrow: () => import_Floating.arrow,
|
|
27
|
+
autoPlacement: () => import_Floating.autoPlacement,
|
|
28
|
+
autoUpdate: () => import_Floating.autoUpdate,
|
|
29
|
+
createFloatingEvents: () => import_createFloatingEvents.createFloatingEvents,
|
|
30
|
+
detectOverflow: () => import_Floating.detectOverflow,
|
|
31
|
+
flip: () => import_Floating.flip,
|
|
32
|
+
getOverflowAncestors: () => import_Floating.getOverflowAncestors,
|
|
33
|
+
hide: () => import_Floating.hide,
|
|
34
|
+
inline: () => import_Floating.inline,
|
|
35
|
+
inner: () => import_inner.inner,
|
|
36
|
+
limitShift: () => import_Floating.limitShift,
|
|
37
|
+
offset: () => import_Floating.offset,
|
|
38
|
+
platform: () => import_Floating.platform,
|
|
39
|
+
safePolygon: () => import_safePolygon.safePolygon,
|
|
40
|
+
shift: () => import_Floating.shift,
|
|
41
|
+
size: () => import_Floating.size,
|
|
42
|
+
useClick: () => import_useClick.useClick,
|
|
43
|
+
useDelayGroup: () => import_useDelayGroup.useDelayGroup,
|
|
44
|
+
useDelayGroupContext: () => import_useDelayGroup.useDelayGroupContext,
|
|
45
|
+
useFloating: () => import_useFloating.useFloating,
|
|
46
|
+
useFloatingRaw: () => import_Floating2.useFloating,
|
|
47
|
+
useFocus: () => import_useFocus.useFocus,
|
|
48
|
+
useHover: () => import_useHover.useHover,
|
|
49
|
+
useInnerOffset: () => import_useInnerOffset.useInnerOffset,
|
|
50
|
+
useInteractions: () => import_useInteractions.useInteractions,
|
|
51
|
+
useListNavigation: () => import_useListNavigation.useListNavigation,
|
|
52
|
+
useRole: () => import_useRole.useRole,
|
|
53
|
+
useTypeahead: () => import_useTypeahead.useTypeahead
|
|
56
54
|
});
|
|
57
55
|
module.exports = __toCommonJS(index_exports);
|
|
58
56
|
var import_Floating = require("./Floating.cjs");
|
|
@@ -70,4 +68,4 @@ var import_useListNavigation = require("./interactions/useListNavigation.cjs");
|
|
|
70
68
|
var import_useTypeahead = require("./interactions/useTypeahead.cjs");
|
|
71
69
|
var import_useInnerOffset = require("./interactions/useInnerOffset.cjs");
|
|
72
70
|
var import_useDelayGroup = require("./interactions/useDelayGroup.cjs");
|
|
73
|
-
var import_inner = require("./middleware/inner.cjs");
|
|
71
|
+
var import_inner = require("./middleware/inner.cjs");
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var index_exports = {};
|
|
24
|
+
__export(index_exports, {
|
|
25
|
+
FloatingDelayGroup: () => import_useDelayGroup.FloatingDelayGroup,
|
|
26
|
+
FloatingOverrideContext: () => import_useFloating.FloatingOverrideContext,
|
|
27
|
+
PopupTriggerMap: () => import_PopupTriggerMap.PopupTriggerMap,
|
|
28
|
+
arrow: () => import_Floating.arrow,
|
|
29
|
+
autoPlacement: () => import_Floating.autoPlacement,
|
|
30
|
+
autoUpdate: () => import_Floating.autoUpdate,
|
|
31
|
+
createFloatingEvents: () => import_createFloatingEvents.createFloatingEvents,
|
|
32
|
+
detectOverflow: () => import_Floating.detectOverflow,
|
|
33
|
+
flip: () => import_Floating.flip,
|
|
34
|
+
getOverflowAncestors: () => import_Floating.getOverflowAncestors,
|
|
35
|
+
hide: () => import_Floating.hide,
|
|
36
|
+
inline: () => import_Floating.inline,
|
|
37
|
+
inner: () => import_inner.inner,
|
|
38
|
+
limitShift: () => import_Floating.limitShift,
|
|
39
|
+
offset: () => import_Floating.offset,
|
|
40
|
+
platform: () => import_Floating.platform,
|
|
41
|
+
safePolygon: () => import_safePolygon.safePolygon,
|
|
42
|
+
shift: () => import_Floating.shift,
|
|
43
|
+
size: () => import_Floating.size,
|
|
44
|
+
useClick: () => import_useClick.useClick,
|
|
45
|
+
useDelayGroup: () => import_useDelayGroup.useDelayGroup,
|
|
46
|
+
useDelayGroupContext: () => import_useDelayGroup.useDelayGroupContext,
|
|
47
|
+
useFloating: () => import_useFloating.useFloating,
|
|
48
|
+
useFloatingRaw: () => import_Floating2.useFloating,
|
|
49
|
+
useFocus: () => import_useFocus.useFocus,
|
|
50
|
+
useHover: () => import_useHover.useHover,
|
|
51
|
+
useInnerOffset: () => import_useInnerOffset.useInnerOffset,
|
|
52
|
+
useInteractions: () => import_useInteractions.useInteractions,
|
|
53
|
+
useListNavigation: () => import_useListNavigation.useListNavigation,
|
|
54
|
+
useRole: () => import_useRole.useRole,
|
|
55
|
+
useTypeahead: () => import_useTypeahead.useTypeahead
|
|
56
|
+
});
|
|
57
|
+
module.exports = __toCommonJS(index_exports);
|
|
58
|
+
var import_Floating = require("./Floating.native.js");
|
|
59
|
+
var import_useFloating = require("./useFloating.native.js");
|
|
60
|
+
var import_Floating2 = require("./Floating.native.js");
|
|
61
|
+
var import_createFloatingEvents = require("./interactions/createFloatingEvents.native.js");
|
|
62
|
+
var import_PopupTriggerMap = require("./interactions/PopupTriggerMap.native.js");
|
|
63
|
+
var import_useInteractions = require("./interactions/useInteractions.native.js");
|
|
64
|
+
var import_useHover = require("./interactions/useHover.native.js");
|
|
65
|
+
var import_safePolygon = require("./interactions/safePolygon.native.js");
|
|
66
|
+
var import_useFocus = require("./interactions/useFocus.native.js");
|
|
67
|
+
var import_useRole = require("./interactions/useRole.native.js");
|
|
68
|
+
var import_useClick = require("./interactions/useClick.native.js");
|
|
69
|
+
var import_useListNavigation = require("./interactions/useListNavigation.native.js");
|
|
70
|
+
var import_useTypeahead = require("./interactions/useTypeahead.native.js");
|
|
71
|
+
var import_useInnerOffset = require("./interactions/useInnerOffset.native.js");
|
|
72
|
+
var import_useDelayGroup = require("./interactions/useDelayGroup.native.js");
|
|
73
|
+
var import_inner = require("./middleware/inner.native.js");
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -5,56 +5,54 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var index_exports = {};
|
|
26
24
|
__export(index_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
25
|
+
FloatingDelayGroup: () => import_useDelayGroup.FloatingDelayGroup,
|
|
26
|
+
FloatingOverrideContext: () => import_useFloating.FloatingOverrideContext,
|
|
27
|
+
PopupTriggerMap: () => import_PopupTriggerMap.PopupTriggerMap,
|
|
28
|
+
arrow: () => import_Floating.arrow,
|
|
29
|
+
autoPlacement: () => import_Floating.autoPlacement,
|
|
30
|
+
autoUpdate: () => import_Floating.autoUpdate,
|
|
31
|
+
createFloatingEvents: () => import_createFloatingEvents.createFloatingEvents,
|
|
32
|
+
detectOverflow: () => import_Floating.detectOverflow,
|
|
33
|
+
flip: () => import_Floating.flip,
|
|
34
|
+
getOverflowAncestors: () => import_Floating.getOverflowAncestors,
|
|
35
|
+
hide: () => import_Floating.hide,
|
|
36
|
+
inline: () => import_Floating.inline,
|
|
37
|
+
inner: () => import_inner.inner,
|
|
38
|
+
limitShift: () => import_Floating.limitShift,
|
|
39
|
+
offset: () => import_Floating.offset,
|
|
40
|
+
platform: () => import_Floating.platform,
|
|
41
|
+
safePolygon: () => import_safePolygon.safePolygon,
|
|
42
|
+
shift: () => import_Floating.shift,
|
|
43
|
+
size: () => import_Floating.size,
|
|
44
|
+
useClick: () => import_useClick.useClick,
|
|
45
|
+
useDelayGroup: () => import_useDelayGroup.useDelayGroup,
|
|
46
|
+
useDelayGroupContext: () => import_useDelayGroup.useDelayGroupContext,
|
|
47
|
+
useFloating: () => import_useFloating.useFloating,
|
|
48
|
+
useFloatingRaw: () => import_Floating2.useFloating,
|
|
49
|
+
useFocus: () => import_useFocus.useFocus,
|
|
50
|
+
useHover: () => import_useHover.useHover,
|
|
51
|
+
useInnerOffset: () => import_useInnerOffset.useInnerOffset,
|
|
52
|
+
useInteractions: () => import_useInteractions.useInteractions,
|
|
53
|
+
useListNavigation: () => import_useListNavigation.useListNavigation,
|
|
54
|
+
useRole: () => import_useRole.useRole,
|
|
55
|
+
useTypeahead: () => import_useTypeahead.useTypeahead
|
|
58
56
|
});
|
|
59
57
|
module.exports = __toCommonJS(index_exports);
|
|
60
58
|
var import_Floating = require("./Floating.native.js");
|
|
@@ -73,4 +71,5 @@ var import_useTypeahead = require("./interactions/useTypeahead.native.js");
|
|
|
73
71
|
var import_useInnerOffset = require("./interactions/useInnerOffset.native.js");
|
|
74
72
|
var import_useDelayGroup = require("./interactions/useDelayGroup.native.js");
|
|
75
73
|
var import_inner = require("./middleware/inner.native.js");
|
|
74
|
+
|
|
76
75
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n FloatingDelayGroup: () => import_useDelayGroup.FloatingDelayGroup,\n FloatingOverrideContext: () => import_useFloating.FloatingOverrideContext,\n PopupTriggerMap: () => import_PopupTriggerMap.PopupTriggerMap,\n arrow: () => import_Floating.arrow,\n autoPlacement: () => import_Floating.autoPlacement,\n autoUpdate: () => import_Floating.autoUpdate,\n createFloatingEvents: () => import_createFloatingEvents.createFloatingEvents,\n detectOverflow: () => import_Floating.detectOverflow,\n flip: () => import_Floating.flip,\n getOverflowAncestors: () => import_Floating.getOverflowAncestors,\n hide: () => import_Floating.hide,\n inline: () => import_Floating.inline,\n inner: () => import_inner.inner,\n limitShift: () => import_Floating.limitShift,\n offset: () => import_Floating.offset,\n platform: () => import_Floating.platform,\n safePolygon: () => import_safePolygon.safePolygon,\n shift: () => import_Floating.shift,\n size: () => import_Floating.size,\n useClick: () => import_useClick.useClick,\n useDelayGroup: () => import_useDelayGroup.useDelayGroup,\n useDelayGroupContext: () => import_useDelayGroup.useDelayGroupContext,\n useFloating: () => import_useFloating.useFloating,\n useFloatingRaw: () => import_Floating2.useFloating,\n useFocus: () => import_useFocus.useFocus,\n useHover: () => import_useHover.useHover,\n useInnerOffset: () => import_useInnerOffset.useInnerOffset,\n useInteractions: () => import_useInteractions.useInteractions,\n useListNavigation: () => import_useListNavigation.useListNavigation,\n useRole: () => import_useRole.useRole,\n useTypeahead: () => import_useTypeahead.useTypeahead\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_Floating = require(\"./Floating\");\nvar import_useFloating = require(\"./useFloating\");\nvar import_Floating2 = require(\"./Floating\");\nvar import_createFloatingEvents = require(\"./interactions/createFloatingEvents\");\nvar import_PopupTriggerMap = require(\"./interactions/PopupTriggerMap\");\nvar import_useInteractions = require(\"./interactions/useInteractions\");\nvar import_useHover = require(\"./interactions/useHover\");\nvar import_safePolygon = require(\"./interactions/safePolygon\");\nvar import_useFocus = require(\"./interactions/useFocus\");\nvar import_useRole = require(\"./interactions/useRole\");\nvar import_useClick = require(\"./interactions/useClick\");\nvar import_useListNavigation = require(\"./interactions/useListNavigation\");\nvar import_useTypeahead = require(\"./interactions/useTypeahead\");\nvar import_useInnerOffset = require(\"./interactions/useInnerOffset\");\nvar import_useDelayGroup = require(\"./interactions/useDelayGroup\");\nvar import_inner = require(\"./middleware/inner\");\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,0BAA0B,qBAAqB;CAC/C,+BAA+B,mBAAmB;CAClD,uBAAuB,uBAAuB;CAC9C,aAAa,gBAAgB;CAC7B,qBAAqB,gBAAgB;CACrC,kBAAkB,gBAAgB;CAClC,4BAA4B,4BAA4B;CACxD,sBAAsB,gBAAgB;CACtC,YAAY,gBAAgB;CAC5B,4BAA4B,gBAAgB;CAC5C,YAAY,gBAAgB;CAC5B,cAAc,gBAAgB;CAC9B,aAAa,aAAa;CAC1B,kBAAkB,gBAAgB;CAClC,cAAc,gBAAgB;CAC9B,gBAAgB,gBAAgB;CAChC,mBAAmB,mBAAmB;CACtC,aAAa,gBAAgB;CAC7B,YAAY,gBAAgB;CAC5B,gBAAgB,gBAAgB;CAChC,qBAAqB,qBAAqB;CAC1C,4BAA4B,qBAAqB;CACjD,mBAAmB,mBAAmB;CACtC,sBAAsB,iBAAiB;CACvC,gBAAgB,gBAAgB;CAChC,gBAAgB,gBAAgB;CAChC,sBAAsB,sBAAsB;CAC5C,uBAAuB,uBAAuB;CAC9C,yBAAyB,yBAAyB;CAClD,eAAe,eAAe;CAC9B,oBAAoB,oBAAoB;AAC1C,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,kBAAkB,QAAQ,sBAAY;AAC1C,IAAI,qBAAqB,QAAQ,yBAAe;AAChD,IAAI,mBAAmB,QAAQ,sBAAY;AAC3C,IAAI,8BAA8B,QAAQ,+CAAqC;AAC/E,IAAI,yBAAyB,QAAQ,0CAAgC;AACrE,IAAI,yBAAyB,QAAQ,0CAAgC;AACrE,IAAI,kBAAkB,QAAQ,mCAAyB;AACvD,IAAI,qBAAqB,QAAQ,sCAA4B;AAC7D,IAAI,kBAAkB,QAAQ,mCAAyB;AACvD,IAAI,iBAAiB,QAAQ,kCAAwB;AACrD,IAAI,kBAAkB,QAAQ,mCAAyB;AACvD,IAAI,2BAA2B,QAAQ,4CAAkC;AACzE,IAAI,sBAAsB,QAAQ,uCAA6B;AAC/D,IAAI,wBAAwB,QAAQ,yCAA+B;AACnE,IAAI,uBAAuB,QAAQ,wCAA8B;AACjE,IAAI,eAAe,QAAQ,8BAAoB"}
|
|
@@ -3,47 +3,43 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var PopupTriggerMap_exports = {};
|
|
24
|
-
__export(PopupTriggerMap_exports, {
|
|
25
|
-
PopupTriggerMap: () => PopupTriggerMap
|
|
26
|
-
});
|
|
22
|
+
__export(PopupTriggerMap_exports, { PopupTriggerMap: () => PopupTriggerMap });
|
|
27
23
|
module.exports = __toCommonJS(PopupTriggerMap_exports);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
24
|
+
var PopupTriggerMap = class {
|
|
25
|
+
map = /* @__PURE__ */ new Map();
|
|
26
|
+
elements = /* @__PURE__ */ new Set();
|
|
27
|
+
add(id, element) {
|
|
28
|
+
const prev = this.map.get(id);
|
|
29
|
+
if (prev) {
|
|
30
|
+
this.elements.delete(prev);
|
|
31
|
+
}
|
|
32
|
+
this.map.set(id, element);
|
|
33
|
+
this.elements.add(element);
|
|
34
|
+
}
|
|
35
|
+
delete(id) {
|
|
36
|
+
const el = this.map.get(id);
|
|
37
|
+
if (el) {
|
|
38
|
+
this.elements.delete(el);
|
|
39
|
+
this.map.delete(id);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
hasElement(element) {
|
|
43
|
+
return this.elements.has(element);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var PopupTriggerMap_exports = {};
|
|
24
|
+
__export(PopupTriggerMap_exports, { PopupTriggerMap: () => PopupTriggerMap });
|
|
25
|
+
module.exports = __toCommonJS(PopupTriggerMap_exports);
|
|
26
|
+
function _class_call_check(instance, Constructor) {
|
|
27
|
+
if (!(instance instanceof Constructor)) {
|
|
28
|
+
throw new TypeError("Cannot call a class as a function");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function _defineProperties(target, props) {
|
|
32
|
+
for (var i = 0; i < props.length; i++) {
|
|
33
|
+
var descriptor = props[i];
|
|
34
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
35
|
+
descriptor.configurable = true;
|
|
36
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
37
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
41
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
42
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
43
|
+
return Constructor;
|
|
44
|
+
}
|
|
45
|
+
function _define_property(obj, key, value) {
|
|
46
|
+
if (key in obj) {
|
|
47
|
+
Object.defineProperty(obj, key, {
|
|
48
|
+
value,
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true,
|
|
51
|
+
writable: true
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
obj[key] = value;
|
|
55
|
+
}
|
|
56
|
+
return obj;
|
|
57
|
+
}
|
|
58
|
+
var PopupTriggerMap = /* @__PURE__ */ (function() {
|
|
59
|
+
"use strict";
|
|
60
|
+
function PopupTriggerMap2() {
|
|
61
|
+
_class_call_check(this, PopupTriggerMap2);
|
|
62
|
+
_define_property(this, "map", /* @__PURE__ */ new Map());
|
|
63
|
+
_define_property(this, "elements", /* @__PURE__ */ new Set());
|
|
64
|
+
}
|
|
65
|
+
_create_class(PopupTriggerMap2, [
|
|
66
|
+
{
|
|
67
|
+
key: "add",
|
|
68
|
+
value: function add(id, element) {
|
|
69
|
+
var prev = this.map.get(id);
|
|
70
|
+
if (prev) {
|
|
71
|
+
this.elements.delete(prev);
|
|
72
|
+
}
|
|
73
|
+
this.map.set(id, element);
|
|
74
|
+
this.elements.add(element);
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "delete",
|
|
79
|
+
value: function _delete(id) {
|
|
80
|
+
var el = this.map.get(id);
|
|
81
|
+
if (el) {
|
|
82
|
+
this.elements.delete(el);
|
|
83
|
+
this.map.delete(id);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "hasElement",
|
|
89
|
+
value: function hasElement(element) {
|
|
90
|
+
return this.elements.has(element);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]);
|
|
94
|
+
return PopupTriggerMap2;
|
|
95
|
+
})();
|