@roomle/embedding-lib 7.0.0 → 7.1.0-alpha.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/docs/md/web/embedding/CHANGELOG.md +75 -81
- package/{drag-ghost-BFAJCWau.mjs → drag-ghost-DqF-SGUQ.mjs} +1 -1
- package/{drag-ghost-DbEzikW5.mjs → drag-ghost-Rbgko27K.mjs} +1 -1
- package/{drag-in-B42WpY_e.mjs → drag-in-BCnrHxxt.mjs} +2 -2
- package/{drag-in-DXVxlotA.mjs → drag-in-DDGopCLr.mjs} +2 -2
- package/embedding-plugins.js +1 -1
- package/embedding-plugins.min.js +1 -1
- package/{from-custom-view-DgMx7_5-.mjs → from-custom-view-BxJkoaTB.mjs} +68 -48
- package/{from-custom-view-CNctfhuo.mjs → from-custom-view-CbO74qvE.mjs} +70 -50
- package/from-website-D07qrmeq.mjs +123 -0
- package/from-website-W-UZ3lee.mjs +118 -0
- package/hi.js +1 -1
- package/hi.min.js +1 -1
- package/package.json +1 -1
- package/packages/embedding-lib/src/plugins/strategy/drag-phase.d.ts +25 -0
- package/packages/embedding-lib/src/plugins/strategy/from-custom-view.d.ts +5 -4
- package/packages/embedding-lib/src/plugins/strategy/from-website.d.ts +16 -3
- package/packages/embedding-lib/src/utils.d.ts +17 -1
- package/roomle-embedding-lib.js +3 -3
- package/roomle-embedding-lib.min.js +3 -3
- package/{utils-DfC2ZLUc.mjs → utils-Co3lE-Ji.mjs} +7 -2
- package/{utils-BnWKaFPc.mjs → utils-i2eOrtnv.mjs} +7 -2
- package/from-website-BVznMwIE.mjs +0 -114
- package/from-website-il2_I_s5.mjs +0 -119
|
@@ -1,82 +1,76 @@
|
|
|
1
|
-
## 7.0.
|
|
1
|
+
## 7.1.0-alpha.2 (2026-08-18)
|
|
2
2
|
|
|
3
|
-
* Merge branch 'feat/
|
|
4
|
-
* Merge branch '
|
|
5
|
-
* Merge branch '
|
|
6
|
-
* Merge branch 'master' into chore/
|
|
7
|
-
* Merge branch 'master' into
|
|
8
|
-
* Merge branch 'master' into feat/
|
|
9
|
-
* Merge branch 'master' into feat/
|
|
10
|
-
* Merge branch 'master' into feat/
|
|
11
|
-
* Merge branch 'master' into feat/
|
|
12
|
-
* Merge branch 'master' into feat/
|
|
13
|
-
* Merge branch 'master' into feat/
|
|
14
|
-
* Merge branch 'master' into feat/
|
|
15
|
-
* Merge branch 'master' into feat/
|
|
16
|
-
* Merge branch 'master' into feat/
|
|
17
|
-
* Merge branch 'master' into
|
|
18
|
-
* Merge branch 'master' into
|
|
19
|
-
* Merge branch 'master' into
|
|
20
|
-
* Merge branch 'master' into
|
|
21
|
-
* Merge branch 'master' into
|
|
22
|
-
* Merge branch 'master' into
|
|
23
|
-
* Merge branch 'master' into
|
|
24
|
-
* Merge branch 'master' into
|
|
25
|
-
* Merge
|
|
26
|
-
* Merge
|
|
27
|
-
* Merge
|
|
28
|
-
* Merge pull request #
|
|
29
|
-
* Merge pull request #
|
|
30
|
-
* Merge pull request #
|
|
31
|
-
* Merge pull request #
|
|
32
|
-
* Merge pull request #
|
|
33
|
-
* Merge pull request #
|
|
34
|
-
* Merge pull request #
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* fix:
|
|
43
|
-
* fix:
|
|
44
|
-
* fix:
|
|
45
|
-
* fix(
|
|
46
|
-
* fix:
|
|
47
|
-
* fix
|
|
48
|
-
* fix:
|
|
49
|
-
* fix:
|
|
50
|
-
* fix:
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* feat: add
|
|
54
|
-
* feat:
|
|
55
|
-
* feat:
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* chore:
|
|
62
|
-
* chore:
|
|
63
|
-
* chore(
|
|
64
|
-
* chore:
|
|
65
|
-
* chore:
|
|
66
|
-
* chore:
|
|
67
|
-
* chore:
|
|
68
|
-
* chore:
|
|
69
|
-
* chore:
|
|
70
|
-
* chore:
|
|
71
|
-
* chore:
|
|
72
|
-
* chore:
|
|
73
|
-
* chore:
|
|
74
|
-
*
|
|
75
|
-
* style:
|
|
76
|
-
|
|
77
|
-
### BREAKING CHANGE
|
|
78
|
-
|
|
79
|
-
* RoomleConfigurator/RoomlePlanner create2DElevationPlan
|
|
80
|
-
and download2DElevationPlan now return Promises instead of sync values.
|
|
81
|
-
|
|
82
|
-
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
|
3
|
+
* Merge branch 'feat/move-2d-measurements-to-SDK-RML-17191' of https://github.com/roomle-dev/roomle-ui ([091e625](https://github.com/roomle-dev/roomle-ui/commit/091e625))
|
|
4
|
+
* Merge branch 'feat/move-2d-measurements-to-SDK-RML-17191' of https://github.com/roomle-dev/roomle-ui ([15d1e09](https://github.com/roomle-dev/roomle-ui/commit/15d1e09))
|
|
5
|
+
* Merge branch 'feat/move-2d-measurements-to-SDK-RML-17191' of https://github.com/roomle-dev/roomle-ui ([717f913](https://github.com/roomle-dev/roomle-ui/commit/717f913))
|
|
6
|
+
* Merge branch 'master' into chore/e2e-test-id-selectors-RML-17554 ([a4231db](https://github.com/roomle-dev/roomle-ui/commit/a4231db))
|
|
7
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK ([cee621e](https://github.com/roomle-dev/roomle-ui/commit/cee621e))
|
|
8
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK ([d26b87f](https://github.com/roomle-dev/roomle-ui/commit/d26b87f))
|
|
9
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([49a13fa](https://github.com/roomle-dev/roomle-ui/commit/49a13fa))
|
|
10
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([98b6e92](https://github.com/roomle-dev/roomle-ui/commit/98b6e92))
|
|
11
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([a865b01](https://github.com/roomle-dev/roomle-ui/commit/a865b01))
|
|
12
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([cd98c6f](https://github.com/roomle-dev/roomle-ui/commit/cd98c6f))
|
|
13
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([cb66cc6](https://github.com/roomle-dev/roomle-ui/commit/cb66cc6))
|
|
14
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([6876dad](https://github.com/roomle-dev/roomle-ui/commit/6876dad))
|
|
15
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([e0ba2ae](https://github.com/roomle-dev/roomle-ui/commit/e0ba2ae))
|
|
16
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([6a8ebaf](https://github.com/roomle-dev/roomle-ui/commit/6a8ebaf))
|
|
17
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([8cfa1f8](https://github.com/roomle-dev/roomle-ui/commit/8cfa1f8))
|
|
18
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([20c0447](https://github.com/roomle-dev/roomle-ui/commit/20c0447))
|
|
19
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([a9cdc20](https://github.com/roomle-dev/roomle-ui/commit/a9cdc20))
|
|
20
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([c7be5f0](https://github.com/roomle-dev/roomle-ui/commit/c7be5f0))
|
|
21
|
+
* Merge branch 'master' into feat/move-2d-measurements-to-SDK-RML-17191 ([1c684c2](https://github.com/roomle-dev/roomle-ui/commit/1c684c2))
|
|
22
|
+
* Merge branch 'master' into feat/threejs185 ([00a06dd](https://github.com/roomle-dev/roomle-ui/commit/00a06dd))
|
|
23
|
+
* Merge branch 'master' into feat/threejs185 ([5a62c12](https://github.com/roomle-dev/roomle-ui/commit/5a62c12))
|
|
24
|
+
* Merge branch 'master' into feat/threejs185 ([71956ff](https://github.com/roomle-dev/roomle-ui/commit/71956ff))
|
|
25
|
+
* Merge branch 'master' into fix/preserve-article-info-after-group-adjust-PBI-371339 ([f12f648](https://github.com/roomle-dev/roomle-ui/commit/f12f648))
|
|
26
|
+
* Merge branch 'master' into fix/preserve-article-info-after-group-adjust-PBI-371339 ([2f5369c](https://github.com/roomle-dev/roomle-ui/commit/2f5369c))
|
|
27
|
+
* Merge branch 'master' into fix/preserve-article-info-after-group-adjust-PBI-371339 ([20f5dc0](https://github.com/roomle-dev/roomle-ui/commit/20f5dc0))
|
|
28
|
+
* Merge pull request #2840 from roomle-dev/feat/move-2d-measurements-to-SDK-RML-17191 ([7a2422b](https://github.com/roomle-dev/roomle-ui/commit/7a2422b)), closes [#2840](https://github.com/roomle-dev/roomle-ui/issues/2840)
|
|
29
|
+
* Merge pull request #2856 from roomle-dev/feat/threejs185 ([936470c](https://github.com/roomle-dev/roomle-ui/commit/936470c)), closes [#2856](https://github.com/roomle-dev/roomle-ui/issues/2856)
|
|
30
|
+
* Merge pull request #2872 from roomle-dev/chore/e2e-test-id-selectors-RML-17554 ([738a62c](https://github.com/roomle-dev/roomle-ui/commit/738a62c)), closes [#2872](https://github.com/roomle-dev/roomle-ui/issues/2872)
|
|
31
|
+
* Merge pull request #2873 from roomle-dev/fix/preserve-article-info-after-group-adjust-PBI-371339 ([23f20ab](https://github.com/roomle-dev/roomle-ui/commit/23f20ab)), closes [#2873](https://github.com/roomle-dev/roomle-ui/issues/2873)
|
|
32
|
+
* Merge pull request #2874 from roomle-dev/fix/top-bar-buttons-still-shown-in-fullscreen-on-mobile-RML ([7a53f6b](https://github.com/roomle-dev/roomle-ui/commit/7a53f6b)), closes [#2874](https://github.com/roomle-dev/roomle-ui/issues/2874)
|
|
33
|
+
* Merge pull request #2878 from roomle-dev/upgraded-by-ci/core-2.81.1-alpha.1 ([8eb628c](https://github.com/roomle-dev/roomle-ui/commit/8eb628c)), closes [#2878](https://github.com/roomle-dev/roomle-ui/issues/2878)
|
|
34
|
+
* Merge pull request #2879 from roomle-dev/upgraded-by-ci/core-2.82.0-alpha.1 ([d9de845](https://github.com/roomle-dev/roomle-ui/commit/d9de845)), closes [#2879](https://github.com/roomle-dev/roomle-ui/issues/2879)
|
|
35
|
+
* Potential fix for pull request finding ([585d71b](https://github.com/roomle-dev/roomle-ui/commit/585d71b))
|
|
36
|
+
* fix(homag-intelligence): added comment why article info is used ([168b626](https://github.com/roomle-dev/roomle-ui/commit/168b626))
|
|
37
|
+
* fix(planner): address 2d measurements review feedback ([11828a7](https://github.com/roomle-dev/roomle-ui/commit/11828a7))
|
|
38
|
+
* fix(homag-intelligence): clarify comment about articleInfo fallback ([f3d274f](https://github.com/roomle-dev/roomle-ui/commit/f3d274f))
|
|
39
|
+
* fix: direction icons rendering behind neighboring wall labels ([29d1d2c](https://github.com/roomle-dev/roomle-ui/commit/29d1d2c))
|
|
40
|
+
* fix(ar): enable iOS AR Quick Look tests in Chromium environments ([c891f66](https://github.com/roomle-dev/roomle-ui/commit/c891f66))
|
|
41
|
+
* fix: GPUextent copying, missing normal map in gltf exporter ([e4d24a6](https://github.com/roomle-dev/roomle-ui/commit/e4d24a6))
|
|
42
|
+
* fix(configurator): hide parameter group pills in mobile fullscreen ([d5a2b08](https://github.com/roomle-dev/roomle-ui/commit/d5a2b08))
|
|
43
|
+
* fix: make the variants assertions actually assert ([67b1646](https://github.com/roomle-dev/roomle-ui/commit/67b1646))
|
|
44
|
+
* fix: missing variables ([049d5d2](https://github.com/roomle-dev/roomle-ui/commit/049d5d2))
|
|
45
|
+
* fix(homag-intelligence): preserve article info on root modules after group adjust ([66fa6da](https://github.com/roomle-dev/roomle-ui/commit/66fa6da))
|
|
46
|
+
* fix: properly delete old dracoloader stuff ([3e65c07](https://github.com/roomle-dev/roomle-ui/commit/3e65c07))
|
|
47
|
+
* fix: restore 2D wall measurement labels during active drawing ([ddba1bc](https://github.com/roomle-dev/roomle-ui/commit/ddba1bc))
|
|
48
|
+
* fix: revert removing draco loader lib files monkey patch ([f0c4847](https://github.com/roomle-dev/roomle-ui/commit/f0c4847))
|
|
49
|
+
* fix: show all 2D measurement labels during drawing and dragging ([2f7af55](https://github.com/roomle-dev/roomle-ui/commit/2f7af55))
|
|
50
|
+
* fix: skip measurement commit callback when value is unchanged ([846c8cf](https://github.com/roomle-dev/roomle-ui/commit/846c8cf))
|
|
51
|
+
* docs: explain the two selectors that are not self-evident ([ec0069f](https://github.com/roomle-dev/roomle-ui/commit/ec0069f))
|
|
52
|
+
* refactor: drop the migration commentary from the e2e selectors ([3463a55](https://github.com/roomle-dev/roomle-ui/commit/3463a55))
|
|
53
|
+
* feat: add test ids for the elements still selected by text ([3670f5f](https://github.com/roomle-dev/roomle-ui/commit/3670f5f))
|
|
54
|
+
* feat: move all 2d measurements to SDK ([621902b](https://github.com/roomle-dev/roomle-ui/commit/621902b))
|
|
55
|
+
* feat: threejs upgrade r185 ([6966b62](https://github.com/roomle-dev/roomle-ui/commit/6966b62))
|
|
56
|
+
* feat(core): upgrade to version 2.81.1-alpha.1 ([f314e24](https://github.com/roomle-dev/roomle-ui/commit/f314e24))
|
|
57
|
+
* feat(core): upgrade to version 2.82.0-alpha.1 ([5cbd1c0](https://github.com/roomle-dev/roomle-ui/commit/5cbd1c0))
|
|
58
|
+
* test(homag-intelligence): cover articleInfo priority in group adjust ([f76613b](https://github.com/roomle-dev/roomle-ui/commit/f76613b))
|
|
59
|
+
* test(ar): fix OpenARView unit tests by disabling isTestEnv by default ([ffd113a](https://github.com/roomle-dev/roomle-ui/commit/ffd113a))
|
|
60
|
+
* test: replace the remaining e2e text selectors with test ids ([34f46a6](https://github.com/roomle-dev/roomle-ui/commit/34f46a6))
|
|
61
|
+
* chore: add missing bubbles background color ([b662083](https://github.com/roomle-dev/roomle-ui/commit/b662083))
|
|
62
|
+
* chore: apply formatting fixes ([bfab67e](https://github.com/roomle-dev/roomle-ui/commit/bfab67e))
|
|
63
|
+
* chore(snapshots): auto-update headless baselines [skip ci] ([c7a2f61](https://github.com/roomle-dev/roomle-ui/commit/c7a2f61))
|
|
64
|
+
* chore: code cleaning ([786bbb2](https://github.com/roomle-dev/roomle-ui/commit/786bbb2))
|
|
65
|
+
* chore: code improvements and remove dead coding ([8743528](https://github.com/roomle-dev/roomle-ui/commit/8743528))
|
|
66
|
+
* chore(fix): draw from wall node hide the whole 2d measurements ([bf8dd36](https://github.com/roomle-dev/roomle-ui/commit/bf8dd36))
|
|
67
|
+
* chore: fix direction icon styles ([1f73287](https://github.com/roomle-dev/roomle-ui/commit/1f73287))
|
|
68
|
+
* chore: fix formatting problem ([f09dc55](https://github.com/roomle-dev/roomle-ui/commit/f09dc55))
|
|
69
|
+
* chore: fix measurements not shown in 2d snapshot after changes ([daa3e39](https://github.com/roomle-dev/roomle-ui/commit/daa3e39))
|
|
70
|
+
* chore: fixed failed tests ([1c4b94e](https://github.com/roomle-dev/roomle-ui/commit/1c4b94e))
|
|
71
|
+
* chore: merge origin/feat/move-2d-measurements-to-SDK-RML-17191 ([0ede5ba](https://github.com/roomle-dev/roomle-ui/commit/0ede5ba))
|
|
72
|
+
* chore: render 2d measurements on load plan completely ([10af627](https://github.com/roomle-dev/roomle-ui/commit/10af627))
|
|
73
|
+
* chore: solve copilot reviewing open discussions ([21e501c](https://github.com/roomle-dev/roomle-ui/commit/21e501c))
|
|
74
|
+
* style: format files with prettier ([e0d5ac3](https://github.com/roomle-dev/roomle-ui/commit/e0d5ac3))
|
|
75
|
+
* style(planner): format measurement review fixes ([d75ba1b](https://github.com/roomle-dev/roomle-ui/commit/d75ba1b))
|
|
76
|
+
* style: unify style as before refactoring the 2d measurements ([27666d3](https://github.com/roomle-dev/roomle-ui/commit/27666d3))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-BCnrHxxt.mjs";
|
|
2
2
|
import "./embedding-plugins.js";
|
|
3
3
|
//#region packages/common/src/utils/drag.ts
|
|
4
4
|
var o = (e, t, n = 0, r = 0) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, i as n, m as r, o as i, s as a } from "./drag-in-DDGopCLr.mjs";
|
|
2
2
|
import "./embedding-plugins.min.js";
|
|
3
3
|
var o = (e, t, n = 0, r = 0) => {
|
|
4
4
|
let i = t.x + t.width + n, a = t.x - n, o = t.y + t.height + r, s = t.y - r, { x: c, y: l } = e;
|
|
@@ -35,7 +35,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
35
35
|
}
|
|
36
36
|
async init() {
|
|
37
37
|
if (await super.init(), this._mode === "website") try {
|
|
38
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
38
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-D07qrmeq.mjs");
|
|
39
39
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
40
40
|
settings: this.options,
|
|
41
41
|
mode: "website"
|
|
@@ -44,7 +44,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
44
44
|
throw console.error("Could not load Dragin strategy \"FromWebsite\""), e;
|
|
45
45
|
}
|
|
46
46
|
else if (this._mode === "custom-view") try {
|
|
47
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
47
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-BxJkoaTB.mjs");
|
|
48
48
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
49
49
|
} catch (e) {
|
|
50
50
|
throw console.error("Could not load Dragin strategy \"FromCustomView\""), e;
|
|
@@ -28,7 +28,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
28
28
|
}
|
|
29
29
|
async init() {
|
|
30
30
|
if (await super.init(), this._mode === "website") try {
|
|
31
|
-
let { DragInFromWebsiteStrategy: e } = await import("./from-website-
|
|
31
|
+
let { DragInFromWebsiteStrategy: e } = await import("./from-website-W-UZ3lee.mjs");
|
|
32
32
|
this._strategy = new e(this._instance, this._mainDomElement, {
|
|
33
33
|
settings: this.options,
|
|
34
34
|
mode: "website"
|
|
@@ -39,7 +39,7 @@ var t = "rml-drag-in-styles", n = "rml-drag-in-drag-element", r = "rml-drag-in-o
|
|
|
39
39
|
else {
|
|
40
40
|
if (this._mode !== "custom-view") throw Error("Unsupported mode");
|
|
41
41
|
try {
|
|
42
|
-
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-
|
|
42
|
+
let { DragInFromCustomViewStrategy: e } = await import("./from-custom-view-CbO74qvE.mjs");
|
|
43
43
|
this._strategy = new e(this._instance, this._mainDomElement, this.options, this._viewName);
|
|
44
44
|
} catch (e) {
|
|
45
45
|
throw e;
|
package/embedding-plugins.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-BCnrHxxt.mjs";
|
|
2
2
|
export { l as DragIn, a as RML_DRAG_GHOST_FADE_IN, e as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, s as RML_DRAG_GHOST_FADE_OUT, c as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, t as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, n as RML_DRAG_IN_FALLBACK_GHOST_URL, r as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, o as RML_DRAG_IN_STYLES_ID, i as TARGET_OPACITY };
|
package/embedding-plugins.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, m as o, o as s, s as c, t as l, u } from "./drag-in-DDGopCLr.mjs";
|
|
2
2
|
export { l as DragIn, a as RML_DRAG_GHOST_FADE_IN, e as RML_DRAG_GHOST_FADE_IN_ANIMATION_CSS, s as RML_DRAG_GHOST_FADE_OUT, c as RML_DRAG_GHOST_FADE_OUT_ANIMATION_CSS, t as RML_DRAG_IN_DRAG_ELEMENT_ID, u as RML_DRAG_IN_FALLBACK_GHOST_HEIGHT, n as RML_DRAG_IN_FALLBACK_GHOST_URL, r as RML_DRAG_IN_FALLBACK_GHOST_WIDTH, o as RML_DRAG_IN_STYLES_ID, i as TARGET_OPACITY };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as e,
|
|
2
|
-
import { d as r } from "./drag-in-
|
|
3
|
-
import { t as i } from "./drag-ghost-
|
|
4
|
-
var a = (e,
|
|
5
|
-
clientX: e.touches[
|
|
6
|
-
clientY: e.touches[
|
|
1
|
+
import { a as e, c as t, n } from "./utils-i2eOrtnv.mjs";
|
|
2
|
+
import { d as r } from "./drag-in-BCnrHxxt.mjs";
|
|
3
|
+
import { t as i } from "./drag-ghost-DqF-SGUQ.mjs";
|
|
4
|
+
var a = (e, n = 0) => t(e) ? {
|
|
5
|
+
clientX: e.touches[n].clientX,
|
|
6
|
+
clientY: e.touches[n].clientY
|
|
7
7
|
} : {
|
|
8
8
|
clientX: e.clientX,
|
|
9
9
|
clientY: e.clientY
|
|
10
|
-
}, o = (e) => e &&
|
|
10
|
+
}, o = (e) => e && t(e) ? e.touches.length > 0 : !0, s = class {
|
|
11
11
|
_touchDragTimeOut;
|
|
12
12
|
_onTouchDragStart;
|
|
13
13
|
_payload = null;
|
|
@@ -19,7 +19,7 @@ var a = (e, t = 0) => n(e) ? {
|
|
|
19
19
|
this._payload = e, this._onTouchDragStart = t, this._delay = typeof n.delay == "number" ? n.delay : 500, this._epsilon = typeof n.epsilon == "number" ? n.epsilon : 10;
|
|
20
20
|
}
|
|
21
21
|
onStart(e) {
|
|
22
|
-
o(e) && (this._touchDragTimeOut ||= (this._firstTouch = a(e,
|
|
22
|
+
o(e) && (this._touchDragTimeOut ||= (this._firstTouch = a(e, t(e) ? e.touches.length - 1 : 0), setTimeout(() => {
|
|
23
23
|
this._clearTimeout(), this._lastTouch ||= a(e), this._checkXDistance(e)();
|
|
24
24
|
}, this._delay)));
|
|
25
25
|
}
|
|
@@ -70,12 +70,12 @@ var a = (e, t = 0) => n(e) ? {
|
|
|
70
70
|
_reset() {
|
|
71
71
|
this._startX = 0, this._startY = 0, this._lastX = 0, this._lastY = 0, this._isWaiting = !1;
|
|
72
72
|
}
|
|
73
|
-
}, f = "data-rml-old-draggable", p = void 0, m = (e,
|
|
74
|
-
let r =
|
|
73
|
+
}, f = "data-rml-old-draggable", p = void 0, m = (e, n) => {
|
|
74
|
+
let r = t(e), i = {
|
|
75
75
|
delay: r ? 500 : 100,
|
|
76
76
|
epsilon: r ? 10 : 15
|
|
77
77
|
};
|
|
78
|
-
if (!
|
|
78
|
+
if (!n) return i;
|
|
79
79
|
if (!r && !(e instanceof MouseEvent)) return console.warn("Unsupported event! It is not TouchEvent and also not MouseEvent"), i;
|
|
80
80
|
let { delayKey: a, epsilonKey: o } = r ? {
|
|
81
81
|
delayKey: "touchDragDelay",
|
|
@@ -84,7 +84,7 @@ var a = (e, t = 0) => n(e) ? {
|
|
|
84
84
|
delayKey: "customDragDelay",
|
|
85
85
|
epsilonKey: "customDragEpsilon"
|
|
86
86
|
};
|
|
87
|
-
return typeof
|
|
87
|
+
return typeof n[a] == "number" && (i.delay = n.touchDragDelay), typeof n[o] == "number" && (i.epsilon = n.touchDragEpsilon), i;
|
|
88
88
|
}, h = (e) => {
|
|
89
89
|
let t = "", n = 112, i = 112;
|
|
90
90
|
if (!e) return {
|
|
@@ -108,39 +108,57 @@ var a = (e, t = 0) => n(e) ? {
|
|
|
108
108
|
_mainDomElement;
|
|
109
109
|
_viewName;
|
|
110
110
|
_currentCustomDrag = null;
|
|
111
|
-
_currentBb = null;
|
|
112
111
|
_startTarget = null;
|
|
113
112
|
_dragGhost = null;
|
|
114
113
|
_onBeforeUpdateDrag = () => ({});
|
|
115
114
|
isDragging = !1;
|
|
116
115
|
_hasEnteredIframe = !1;
|
|
117
116
|
_pendingDragIn = null;
|
|
118
|
-
|
|
119
|
-
_overlayBb = null;
|
|
117
|
+
_phase = { kind: "idle" };
|
|
120
118
|
_dragGeneration = 0;
|
|
121
|
-
|
|
119
|
+
_parentWithDragLeave = null;
|
|
120
|
+
_parentDragLeave = () => {
|
|
121
|
+
this._phase.kind !== "ready" || !this._hasEnteredIframe || (this._instance.cancelDragIn(), this._hasEnteredIframe = !1);
|
|
122
|
+
};
|
|
122
123
|
constructor(e, t, n, r) {
|
|
123
|
-
this._instance = e, this._options = n || {}, this._viewName = r, this._mainDomElement = t, this._mainDomElement.parentElement?.addEventListener("dragleave",
|
|
124
|
-
this._instance.cancelDragIn();
|
|
125
|
-
});
|
|
124
|
+
this._instance = e, this._options = n || {}, this._viewName = r, this._mainDomElement = t, this._parentWithDragLeave = this._mainDomElement.parentElement, this._parentWithDragLeave?.addEventListener("dragleave", this._parentDragLeave);
|
|
126
125
|
}
|
|
127
126
|
beforeUpdateGhost(e) {
|
|
128
127
|
this._onBeforeUpdateDrag = e;
|
|
129
128
|
}
|
|
130
129
|
async _dragStart(e, t, n = "rml_id") {
|
|
131
130
|
let r = ++this._dragGeneration;
|
|
132
|
-
if (this._startTarget && (this._startTarget.style.pointerEvents = "none", this._startTarget.style.userSelect = "none", this._startTarget.setAttribute(f, this._startTarget.draggable.toString()), this._startTarget.draggable = !1, this._startTarget.removeEventListener("dragstart", l), this._startTarget.addEventListener("dragstart", l)), this._startTarget) {
|
|
131
|
+
if (this._phase = { kind: "starting" }, this._startTarget && (this._startTarget.style.pointerEvents = "none", this._startTarget.style.userSelect = "none", this._startTarget.setAttribute(f, this._startTarget.draggable.toString()), this._startTarget.draggable = !1, this._startTarget.removeEventListener("dragstart", l), this._startTarget.addEventListener("dragstart", l)), this._startTarget) {
|
|
133
132
|
let e = this._startTarget.getBoundingClientRect(), t = this._startTarget.cloneNode(!0);
|
|
134
133
|
t.style.width = `${e.width}px`, t.style.height = `${e.height}px`, this._dragGhost = new i(t);
|
|
135
134
|
} else this._dragGhost = new i();
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
135
|
+
let a = await this._instance.getBoundingClientRect(c(this._viewName)), o = await this._instance.getBoundingClientRect("canvas"), s = (await this._instance.getDrawerBoundingClientRect()).final, u = await this._instance.getBoundingClientRect(".interaction-container");
|
|
136
|
+
if (r === this._dragGeneration) {
|
|
137
|
+
if (!a) {
|
|
138
|
+
let e = `could not read the bounding rect of custom view "${this._viewName}"`;
|
|
139
|
+
this._phase = {
|
|
140
|
+
kind: "failed",
|
|
141
|
+
reason: e
|
|
142
|
+
}, console.warn(`Drag-in not started: ${e}`);
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
this._phase = {
|
|
146
|
+
kind: "ready",
|
|
147
|
+
bounds: {
|
|
148
|
+
view: a,
|
|
149
|
+
canvas: o,
|
|
150
|
+
overlay: s,
|
|
151
|
+
interactionContainer: u
|
|
152
|
+
}
|
|
153
|
+
}, this._pendingDragIn = {
|
|
154
|
+
id: e,
|
|
155
|
+
type: n
|
|
156
|
+
}, this._hasEnteredIframe = !1, this.isDragging = !0;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
_dragUpdate(t) {
|
|
160
|
+
document.body.focus(), this._currentCustomDrag && this._currentCustomDrag.onMove(t);
|
|
161
|
+
let { clientX: r, clientY: i } = n(t);
|
|
144
162
|
if (this._dragGhost) {
|
|
145
163
|
let { width: e, height: t } = this._mainDomElement.getBoundingClientRect();
|
|
146
164
|
this._dragGhost.updateDragGhost(r, i, { ghost: { visibleIn: {
|
|
@@ -150,35 +168,35 @@ var a = (e, t = 0) => n(e) ? {
|
|
|
150
168
|
height: t
|
|
151
169
|
} } });
|
|
152
170
|
}
|
|
153
|
-
if (
|
|
154
|
-
let a = this.
|
|
155
|
-
if (
|
|
156
|
-
let { url:
|
|
171
|
+
if (this._phase.kind !== "ready") return;
|
|
172
|
+
let { view: a, canvas: o, overlay: s, interactionContainer: c } = this._phase.bounds, l = a.x + r, u = a.y + i, d = e(l, u, o, s, c);
|
|
173
|
+
if (d && !this._hasEnteredIframe && this._pendingDragIn && (this._instance.dragInObject(this._pendingDragIn.id, l, u, this._pendingDragIn.type), this._hasEnteredIframe = !0), !d && this._hasEnteredIframe && (this._instance.cancelDragIn(), this._hasEnteredIframe = !1), !this._hasEnteredIframe) return;
|
|
174
|
+
let { url: f, width: p, height: m } = h(this._startTarget), g = this._options || {}, _ = {
|
|
157
175
|
ghost: {
|
|
158
176
|
visibleIn: {
|
|
159
|
-
x:
|
|
160
|
-
y:
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
177
|
+
x: a.x - (g.dragInOverlapX || 0),
|
|
178
|
+
y: a.y + (g.dragInOverlapY || 0),
|
|
179
|
+
width: a.width + (g.dragInOverlapX || 0),
|
|
180
|
+
height: a.height + (g.dragInOverlapY || 0)
|
|
163
181
|
},
|
|
164
|
-
url:
|
|
165
|
-
width:
|
|
166
|
-
height:
|
|
182
|
+
url: f,
|
|
183
|
+
width: p,
|
|
184
|
+
height: m
|
|
167
185
|
},
|
|
168
186
|
mode: "custom-view"
|
|
169
|
-
}, { x:
|
|
170
|
-
this._instance.updateDrag(
|
|
187
|
+
}, { x: v, y, options: b } = this._onBeforeUpdateDrag(l, u, _), x = typeof v == "number" ? v : l, S = typeof y == "number" ? y : u, C = b || _;
|
|
188
|
+
this._instance.updateDrag(x, S, C);
|
|
171
189
|
}
|
|
172
190
|
_dragEnd() {
|
|
173
|
-
this._currentCustomDrag && this._currentCustomDrag.onEnd(), this._currentCustomDrag = null, this.isDragging = !1, this.
|
|
191
|
+
this._dragGeneration++, this._currentCustomDrag && this._currentCustomDrag.onEnd(), this._currentCustomDrag = null, this.isDragging = !1, this._phase = { kind: "idle" }, this._resetStartTarget(), this._instance.enableEvents(), this._dragGhost &&= (this._dragGhost.removeDragGhost(), null), this._hasEnteredIframe && this._instance.dragInObjectEnd(), this._hasEnteredIframe = !1, this._pendingDragIn = null;
|
|
174
192
|
}
|
|
175
|
-
dragStart(e,
|
|
176
|
-
this._instance.disableEvents(), this._startTarget =
|
|
193
|
+
dragStart(e, n, r) {
|
|
194
|
+
this._instance.disableEvents(), this._startTarget = n.target, this._currentCustomDrag = t(n) ? new s(p, { onTouchDragStart: (t, n) => {
|
|
177
195
|
this._dragStart(e, n, r);
|
|
178
196
|
} }, {
|
|
179
|
-
...m(
|
|
197
|
+
...m(n, this._options),
|
|
180
198
|
delay: 0
|
|
181
|
-
}) : new d({ onCustomDragStart: (t) => this._dragStart(e, t, r) }, m(
|
|
199
|
+
}) : new d({ onCustomDragStart: (t) => this._dragStart(e, t, r) }, m(n, this._options)), this._currentCustomDrag.onStart(n);
|
|
182
200
|
}
|
|
183
201
|
dragEnd() {
|
|
184
202
|
this._dragEnd();
|
|
@@ -195,12 +213,14 @@ var a = (e, t = 0) => n(e) ? {
|
|
|
195
213
|
touchEnd() {
|
|
196
214
|
this.dragEnd();
|
|
197
215
|
}
|
|
198
|
-
dispose() {
|
|
216
|
+
dispose() {
|
|
217
|
+
this._parentWithDragLeave?.removeEventListener("dragleave", this._parentDragLeave), this._parentWithDragLeave = null;
|
|
218
|
+
}
|
|
199
219
|
_resetStartTarget() {
|
|
200
220
|
this._startTarget && (this._startTarget.style.pointerEvents = "", this._startTarget.style.userSelect = "", this._startTarget.draggable = this._startTarget.getAttribute(f) === "true", this._startTarget.removeAttribute(f), this._startTarget.removeEventListener("dragstart", l));
|
|
201
221
|
}
|
|
202
222
|
releaseInput(e) {
|
|
203
|
-
this.
|
|
223
|
+
this._dragEnd();
|
|
204
224
|
}
|
|
205
225
|
};
|
|
206
226
|
//#endregion
|