create-jsview 2.1.428 → 2.1.448-test.0
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/package.json +3 -3
- package/template-react-webpack/package-lock-json +6 -6
- package/template-react-webpack/package.json +2 -2
- package/template-vue-vite/package-lock-json +6 -6
- package/template-vue-vite/package.json +2 -2
- package/template-vue-vite/.DS_Store +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/1.54c7645a.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/1.5dc15599.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/1280x7200.f72b317a.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/2.c46fde4a.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/2.df10a8ad.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/3.920d6934.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/3.dd39d2bc.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/4.4cd633a0.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/4.f58de085.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/Couplets.22a8bcb3.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/Square.2085a1e3.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/animated_webp.df116064.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/ball_3.6443240f.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg1.9dacd4a9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg2.05147169.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg3.4725410a.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg4.67998d21.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg5.e6aeb8ef.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg_btn.3bc67ce7.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bgimage.9ebd66c5.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bgmusic.bf797943.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/blue_egg.a2c54f95.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bmpDemo.e06bdb19.bmp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/boom.159be4de.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/border.32f99a05.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/btn_ok.a0827ed4.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coin.50aac2a4.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_left.c9f544cb.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_mid.ef262879.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_right.248ee7dc.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/egg_break.e01a800c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/fail.446dfd56.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/firecracker.bf5b0aa9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/fireworks.1c112f43.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/focus1.ff67f2e6.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/get.3509893a.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/girl_run.1c322b33.gif +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/goldencoin1.d31809e9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/goldencoin2.3f5b59d2.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/holder_logo.5d13253c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/icon.0d3ef206.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jpegDemo.ede7ed35.jpeg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jump.d2e172b2.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jump_down.68b45798.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jump_up.2f896dd9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/leadWire.0c2130df.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/light.fd536e0c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/light2.eac76425.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/line_left.36cc4bd9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/line_mid.21f25bbe.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/line_right.3a4bbae6.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/lose.86f51553.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/mask.c1211360.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/mathjax-tex-svg.d4295dc3.txt +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/assets/php.9533a06f.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/php2.7e5cf392.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/pngNoAlphaDemo.8d9edc0f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/purpleStar.b1920ac5.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/quan.54556d84.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redCircle.091d191f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redStar.9c31bb42.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/red_egg.27ca7d39.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redpacket1.72196c20.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redpacket2.0ae89a46.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/resultSquare.b9e3527b.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/roll.aa0dfe6f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/run.b84383b2.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/scroll.c4efa5a1.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/scroll1.744c0b08.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/snow.22f35787.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/spark.50b3f017.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star1.dd634833.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star2.df352429.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star3.5a62b76f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star4.2283606c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/swipLight.ab6b2bc2.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/tease.3d7fb077.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/tease_lock.3602bb0d.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/test.671066bc.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/webpDemo.eb0b7786.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/yellowStar.d80f0718.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.0e83537d.css +0 -6
- package/template-vue-vite/dist-test-jsview-chunk/css/App.10e9d05f.css +0 -14
- package/template-vue-vite/dist-test-jsview-chunk/css/App.16cc5e4a.css +0 -20
- package/template-vue-vite/dist-test-jsview-chunk/css/App.18bd653b.css +0 -10
- package/template-vue-vite/dist-test-jsview-chunk/css/App.2943d6ec.css +0 -9
- package/template-vue-vite/dist-test-jsview-chunk/css/App.329ae9f6.css +0 -23
- package/template-vue-vite/dist-test-jsview-chunk/css/App.32c55297.css +0 -8
- package/template-vue-vite/dist-test-jsview-chunk/css/App.3e2a4eb1.css +0 -108
- package/template-vue-vite/dist-test-jsview-chunk/css/App.4ea37a27.css +0 -39
- package/template-vue-vite/dist-test-jsview-chunk/css/App.54fdcefd.css +0 -51
- package/template-vue-vite/dist-test-jsview-chunk/css/App.6406907b.css +0 -9
- package/template-vue-vite/dist-test-jsview-chunk/css/App.643b5c1b.css +0 -8
- package/template-vue-vite/dist-test-jsview-chunk/css/App.66f2f353.css +0 -553
- package/template-vue-vite/dist-test-jsview-chunk/css/App.76117f77.css +0 -21
- package/template-vue-vite/dist-test-jsview-chunk/css/App.7a70ea9d.css +0 -20
- package/template-vue-vite/dist-test-jsview-chunk/css/App.7ee969c5.css +0 -40
- package/template-vue-vite/dist-test-jsview-chunk/css/App.8056ee27.css +0 -144
- package/template-vue-vite/dist-test-jsview-chunk/css/App.81e870e8.css +0 -16
- package/template-vue-vite/dist-test-jsview-chunk/css/App.8a41b2c9.css +0 -4
- package/template-vue-vite/dist-test-jsview-chunk/css/App.8b7fc4be.css +0 -21
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9acd4020.css +0 -9
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9b8ef7c4.css +0 -17
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9c2363fe.css +0 -11
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9c9050df.css +0 -10
- package/template-vue-vite/dist-test-jsview-chunk/css/App.a37ce6b4.css +0 -78
- package/template-vue-vite/dist-test-jsview-chunk/css/App.acd46c9f.css +0 -29
- package/template-vue-vite/dist-test-jsview-chunk/css/App.be6992f1.css +0 -5
- package/template-vue-vite/dist-test-jsview-chunk/css/App.ce985162.css +0 -37
- package/template-vue-vite/dist-test-jsview-chunk/css/App.cf0eea52.css +0 -29
- package/template-vue-vite/dist-test-jsview-chunk/css/App.d80395de.css +0 -76
- package/template-vue-vite/dist-test-jsview-chunk/css/App.dc17d9ed.css +0 -355
- package/template-vue-vite/dist-test-jsview-chunk/css/App.e25f7308.css +0 -20
- package/template-vue-vite/dist-test-jsview-chunk/css/App.e3998d69.css +0 -10
- package/template-vue-vite/dist-test-jsview-chunk/css/App.e864d83a.css +0 -99
- package/template-vue-vite/dist-test-jsview-chunk/css/App.eea7c4d0.css +0 -37
- package/template-vue-vite/dist-test-jsview-chunk/css/App.f7bae60e.css +0 -24
- package/template-vue-vite/dist-test-jsview-chunk/css/App.fb916576.css +0 -53
- package/template-vue-vite/dist-test-jsview-chunk/css/App.ff455e8a.css +0 -23
- package/template-vue-vite/dist-test-jsview-chunk/css/DispersedItemSample.24d1e5c2.css +0 -31
- package/template-vue-vite/dist-test-jsview-chunk/css/Homepage.6291bd50.css +0 -60
- package/template-vue-vite/dist-test-jsview-chunk/css/HorizontalButtonList.f4192657.css +0 -12
- package/template-vue-vite/dist-test-jsview-chunk/css/MainPage.7bafbf88.css +0 -9
- package/template-vue-vite/dist-test-jsview-chunk/css/SubPage.e3029827.css +0 -17
- package/template-vue-vite/dist-test-jsview-chunk/css/index.bc47ba9c.css +0 -20
- package/template-vue-vite/dist-test-jsview-chunk/css/main.78821670.css +0 -11
- package/template-vue-vite/dist-test-jsview-chunk/debug/jsview-jsmap-serve.mjs +0 -130
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-browser.min.24b59670.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-entry.280f04b1.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-native.min.0039079f.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-engine-js-browser.min.f40edc22.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-forge-define.bfab260e.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-forge-define.min.26efdcd1.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-loader.f9249ad3.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-vue-entry.415721d8.js.map +0 -1
- package/template-vue-vite/dist-test-jsview-chunk/index.html +0 -14
- package/template-vue-vite/dist-test-jsview-chunk/js/App.0020360a.js +0 -141
- package/template-vue-vite/dist-test-jsview-chunk/js/App.073cedd6.js +0 -399
- package/template-vue-vite/dist-test-jsview-chunk/js/App.0f963d38.js +0 -95
- package/template-vue-vite/dist-test-jsview-chunk/js/App.11cde12f.js +0 -344
- package/template-vue-vite/dist-test-jsview-chunk/js/App.121965ad.js +0 -116
- package/template-vue-vite/dist-test-jsview-chunk/js/App.1575b8f0.js +0 -200
- package/template-vue-vite/dist-test-jsview-chunk/js/App.21ff555f.js +0 -455
- package/template-vue-vite/dist-test-jsview-chunk/js/App.29b9c765.js +0 -383
- package/template-vue-vite/dist-test-jsview-chunk/js/App.34ff6b40.js +0 -107
- package/template-vue-vite/dist-test-jsview-chunk/js/App.361be0b7.js +0 -144
- package/template-vue-vite/dist-test-jsview-chunk/js/App.368006e4.js +0 -431
- package/template-vue-vite/dist-test-jsview-chunk/js/App.36fc32c5.js +0 -192
- package/template-vue-vite/dist-test-jsview-chunk/js/App.386a753e.js +0 -259
- package/template-vue-vite/dist-test-jsview-chunk/js/App.3b0de676.js +0 -321
- package/template-vue-vite/dist-test-jsview-chunk/js/App.3e808b09.js +0 -92
- package/template-vue-vite/dist-test-jsview-chunk/js/App.40f6e609.js +0 -97
- package/template-vue-vite/dist-test-jsview-chunk/js/App.539ee14e.js +0 -331
- package/template-vue-vite/dist-test-jsview-chunk/js/App.55166fae.js +0 -189
- package/template-vue-vite/dist-test-jsview-chunk/js/App.56200035.js +0 -221
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5698ed0a.js +0 -243
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5788a834.js +0 -1675
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5a51ba28.js +0 -788
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5db3be20.js +0 -215
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5f895413.js +0 -53
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5f95520c.js +0 -320
- package/template-vue-vite/dist-test-jsview-chunk/js/App.64e2a47b.js +0 -276
- package/template-vue-vite/dist-test-jsview-chunk/js/App.69ca326b.js +0 -107
- package/template-vue-vite/dist-test-jsview-chunk/js/App.6f92a934.js +0 -277
- package/template-vue-vite/dist-test-jsview-chunk/js/App.6fafe9e2.js +0 -430
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7067dfe2.js +0 -120
- package/template-vue-vite/dist-test-jsview-chunk/js/App.754fa30e.js +0 -776
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7a63fc1e.js +0 -240
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7b9d1275.js +0 -447
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7bf78a71.js +0 -89
- package/template-vue-vite/dist-test-jsview-chunk/js/App.832753e3.js +0 -98
- package/template-vue-vite/dist-test-jsview-chunk/js/App.83b9bc1a.js +0 -194
- package/template-vue-vite/dist-test-jsview-chunk/js/App.8473b928.js +0 -568
- package/template-vue-vite/dist-test-jsview-chunk/js/App.85f0e26b.js +0 -1342
- package/template-vue-vite/dist-test-jsview-chunk/js/App.8e86826b.js +0 -502
- package/template-vue-vite/dist-test-jsview-chunk/js/App.94064c31.js +0 -104
- package/template-vue-vite/dist-test-jsview-chunk/js/App.9625268d.js +0 -173
- package/template-vue-vite/dist-test-jsview-chunk/js/App.96596f9f.js +0 -119
- package/template-vue-vite/dist-test-jsview-chunk/js/App.977c745b.js +0 -237
- package/template-vue-vite/dist-test-jsview-chunk/js/App.9e7fbf3c.js +0 -122
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a059fc60.js +0 -676
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a446bb49.js +0 -369
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a485fc61.js +0 -139
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a574bf96.js +0 -122
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a58787a4.js +0 -225
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a6e90b5c.js +0 -614
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a6ef2ea5.js +0 -241
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a82ae465.js +0 -119
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ab97fadc.js +0 -306
- package/template-vue-vite/dist-test-jsview-chunk/js/App.b8d07d60.js +0 -68
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ba82ae89.js +0 -731
- package/template-vue-vite/dist-test-jsview-chunk/js/App.c0fa704f.js +0 -181
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ca457df6.js +0 -193
- package/template-vue-vite/dist-test-jsview-chunk/js/App.cab5b11a.js +0 -182
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ceb70fcc.js +0 -395
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d1955c7b.js +0 -139
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d35f431e.js +0 -524
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d434d1bc.js +0 -1201
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d9ea2537.js +0 -172
- package/template-vue-vite/dist-test-jsview-chunk/js/App.dce9c295.js +0 -209
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e06251fc.js +0 -157
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e160a2dd.js +0 -587
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e1d44beb.js +0 -198
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e442e6e0.js +0 -611
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e75db44d.js +0 -257
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ebb89cc7.js +0 -97
- package/template-vue-vite/dist-test-jsview-chunk/js/App.f5f253ec.js +0 -143
- package/template-vue-vite/dist-test-jsview-chunk/js/App.f6a2ac1e.js +0 -251
- package/template-vue-vite/dist-test-jsview-chunk/js/App2.f586c86d.js +0 -112
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic.64639b51.js +0 -112
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic.vue.5e093f8c.js +0 -130
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic2.8b0c8a0a.js +0 -106
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic2.vue.7959bd77.js +0 -124
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApicLib.14ef44a9.js +0 -416
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserAudio.28bef0de.js +0 -251
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserAudio.vue.b874d583.js +0 -265
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvLatex.06fbda62.js +0 -100
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvLatex.vue.f0cdb016.js +0 -112
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvPlayer.a6858caf.js +0 -563
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvPlayer.vue.8615ee65.js +0 -575
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserPreload.fe21457d.js +0 -139
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserPreload.vue.23eda6fd.js +0 -146
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserQrcode.727b4b8f.js +0 -175
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserQrcode.vue.8e2b3454.js +0 -181
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserSpray.b126f2ae.js +0 -57
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserSpray.vue.52301a81.js +0 -70
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserTextureAnim.e70349c2.js +0 -315
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserTextureAnim.vue.5426b5db.js +0 -327
- package/template-vue-vite/dist-test-jsview-chunk/js/DispersedItemSample.9696c982.js +0 -534
- package/template-vue-vite/dist-test-jsview-chunk/js/GifData.e5dd9fac.js +0 -429
- package/template-vue-vite/dist-test-jsview-chunk/js/Homepage.d8afeb55.js +0 -466
- package/template-vue-vite/dist-test-jsview-chunk/js/HorizontalButtonList.bbdbc725.js +0 -160
- package/template-vue-vite/dist-test-jsview-chunk/js/MainPage.cff1e89b.js +0 -57
- package/template-vue-vite/dist-test-jsview-chunk/js/SubPage.9633adf8.js +0 -59
- package/template-vue-vite/dist-test-jsview-chunk/js/app.config.92148fde.js +0 -18
- package/template-vue-vite/dist-test-jsview-chunk/js/export-sfc.2749ebea.js +0 -23
- package/template-vue-vite/dist-test-jsview-chunk/js/index.32520aa9.js +0 -938
- package/template-vue-vite/dist-test-jsview-chunk/js/index.56197146.js +0 -2892
- package/template-vue-vite/dist-test-jsview-chunk/js/index.f76869d4.js +0 -7522
- package/template-vue-vite/dist-test-jsview-chunk/js/jpegDemo.ff177df5.js +0 -7
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-browser.min.24b59670.js +0 -1913
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-entry.280f04b1.js +0 -76
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-native.min.0039079f.js +0 -1487
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-engine-js-browser.min.f40edc22.js +0 -10684
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-forge-define.bfab260e.js +0 -9
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-forge-define.min.26efdcd1.js +0 -97
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-loader.f9249ad3.js +0 -238
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-vue-entry.415721d8.js +0 -22233
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview.config.a8cf302c.js +0 -49
- package/template-vue-vite/dist-test-jsview-chunk/js/main.bd759d7c.js +0 -565
- package/template-vue-vite/dist-test-jsview-chunk/js/main.jsv.51a0d4f8.mjs +0 -28
- package/template-vue-vite/dist-test-jsview-chunk/js/main.jsv.mjs +0 -28
- package/template-vue-vite/dist-test-jsview-chunk/js/permission.88de599e.js +0 -7
- package/template-vue-vite/dist-test-jsview-chunk/js/pngNoAlphaDemo.fbc58313.js +0 -7
- package/template-vue-vite/dist-test-jsview-chunk/js/vue.889a9b8b.js +0 -5382
- package/template-vue-vite/dist-test-jsview-chunk/jsv-info.json +0 -9
- package/template-vue-vite/dist-test-jsview-chunk/jsv-list.json +0 -248
|
@@ -1,1913 +0,0 @@
|
|
|
1
|
-
class e {
|
|
2
|
-
static CreateAudioPlayer() {
|
|
3
|
-
return console.warn("BrowserPlatformMediaBridge.CreateAudioPlayer() is not supported"), {};
|
|
4
|
-
}
|
|
5
|
-
static CreateVideoPlayer() {
|
|
6
|
-
return console.warn("BrowserPlatformMediaBridge.CreateVideoPlayer() is not supported"), {};
|
|
7
|
-
}
|
|
8
|
-
static OnCssStyleChanged(e2, t2) {
|
|
9
|
-
const i2 = this;
|
|
10
|
-
i2.parentNode, i2.style.position = "fixed", i2.style.left = (t2.left ? t2.left : 0) + "px", i2.style.top = (t2.top ? t2.top : 0) + "px", i2.style.width = (t2.width ? t2.width : 0) + "px", i2.style.height = (t2.height ? t2.height : 0) + "px", i2.style.objectFit = t2.objectFit, i2.style.visibility = t2.visibility;
|
|
11
|
-
}
|
|
12
|
-
static JsvFinalize() {
|
|
13
|
-
console.log("BrowserPlatformMediaBridge.JsvFinalize()");
|
|
14
|
-
this.pause();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
window.JsvCode.BrowserPlatformMediaBridge || (window.JsvCode.BrowserPlatformMediaBridge = e);
|
|
18
|
-
class t {
|
|
19
|
-
constructor(e2, t2) {
|
|
20
|
-
this.prevented = false, this.target = t2, this.timeStamp = Date.now(), this.type = e2;
|
|
21
|
-
}
|
|
22
|
-
preventDefault() {
|
|
23
|
-
this.prevented = true;
|
|
24
|
-
}
|
|
25
|
-
jsvIsPrevented() {
|
|
26
|
-
return this.prevented;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
class i extends t {
|
|
30
|
-
constructor(e2) {
|
|
31
|
-
super(e2);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
class s extends t {
|
|
35
|
-
constructor(e2, t2) {
|
|
36
|
-
super(e2), this.options = t2;
|
|
37
|
-
}
|
|
38
|
-
initCustomEvent(e2, t2, i2, s2) {
|
|
39
|
-
this.type = e2;
|
|
40
|
-
}
|
|
41
|
-
get detail() {
|
|
42
|
-
return this.options?.detail;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
class n extends t {
|
|
46
|
-
constructor(e2) {
|
|
47
|
-
super(e2);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
n.JsvType = { Focus: "focus", Blur: "blur" }, void 0 === window.Forge ? (window.Forge = {}, console.log("Define forge browser")) : console.log("Define using JsView forge engine-js");
|
|
51
|
-
var o, r, a, l, c, d, h, u, m, p, f, v, g, w, y, k = window.Forge;
|
|
52
|
-
class C {
|
|
53
|
-
constructor(e2, t2) {
|
|
54
|
-
if (this.href = "", this.origin = "", this.protocol = "", this.host = "", this.hostname = "", this.port = "", this.pathname = "", this.search = "", this.hash = "", !e2)
|
|
55
|
-
return;
|
|
56
|
-
if (true === e2.startsWith("url")) {
|
|
57
|
-
let t3 = e2.indexOf("(") + 1, i3 = e2.lastIndexOf(")");
|
|
58
|
-
if ("undefined" === (e2 = e2.substring(t3, i3).trim()) || "null" === e2 || 0 === e2.length)
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (true === e2.startsWith("data:") || true === e2.startsWith("jsvtexturestore:"))
|
|
62
|
-
return void (this.href = e2);
|
|
63
|
-
let i2 = e2.indexOf("://");
|
|
64
|
-
if (!(i2 < 0 || i2 > 10) || e2.startsWith("./") || e2.startsWith("/") || (e2 = "./" + e2), true === e2.startsWith("/"))
|
|
65
|
-
e2 = document.location.origin + e2;
|
|
66
|
-
else if (true === e2.startsWith("./") && void 0 !== window.JsView && void 0 !== window.JsView.Dom.JsSubPath) {
|
|
67
|
-
if (void 0 === window.JsView.Dom.MainPath || "undefined" === window.JsView.Dom.MainPathRef || window.JsView.Dom.MainPathRef !== document.location.href) {
|
|
68
|
-
window.JsView.Dom.JsSubPath.startsWith("/") || (window.JsView.Dom.JsSubPath = "/" + window.JsView.Dom.JsSubPath), window.JsView.Dom.JsSubPath.endsWith("/") || (window.JsView.Dom.JsSubPath = window.JsView.Dom.JsSubPath + "/"), window.JsView.Dom.MainPathRef = document.location.href;
|
|
69
|
-
let e3 = document.location.pathname.lastIndexOf(window.JsView.Dom.JsSubPath);
|
|
70
|
-
window.JsView.Dom.MainPath = document.location.origin + document.location.pathname.substring(0, e3);
|
|
71
|
-
}
|
|
72
|
-
e2 = window.JsView.Dom.MainPath + e2.substring(1);
|
|
73
|
-
}
|
|
74
|
-
if (this.href = e2, !t2)
|
|
75
|
-
return;
|
|
76
|
-
let s2 = this.href, n2 = s2.indexOf("#");
|
|
77
|
-
n2 > 0 && (this.hash = s2.substring(n2), s2 = s2.substring(0, n2));
|
|
78
|
-
let o2 = s2.indexOf("?");
|
|
79
|
-
o2 > 1 && (this.search = s2.substring(o2), s2 = s2.substring(0, o2));
|
|
80
|
-
let r2 = s2, a2 = r2.indexOf("://");
|
|
81
|
-
this.protocol = a2 > 0 ? r2.substring(0, a2 + 1) : "";
|
|
82
|
-
let l2 = a2 > 1 ? r2.substring(a2 + 3) : "";
|
|
83
|
-
a2 = l2.indexOf("/"), this.host = a2 > 0 ? l2.substring(0, a2) : "", this.pathname = a2 >= 1 ? l2.substring(a2) : "", "file:" == this.protocol && (this.host = "", this.pathname = l2), this.origin = this.protocol + "//" + this.host, a2 = this.host.indexOf(":"), this.hostname = a2 > 0 ? this.host.substring(0, a2) : this.host, this.port = a2 > 1 ? this.host.substring(a2 + 1) : "";
|
|
84
|
-
}
|
|
85
|
-
replace(e2) {
|
|
86
|
-
this.href = e2;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
class T {
|
|
90
|
-
static EnableEventListener(e2) {
|
|
91
|
-
const t2 = window.JsvCode.Dom.PlatformBridge.JsViewId;
|
|
92
|
-
window.JsvCode.Dom.PlatformBridge.SetOnEventListener(t2, e2);
|
|
93
|
-
}
|
|
94
|
-
static CreateElement(e2, t2) {
|
|
95
|
-
T.PushLazyTask(T.LazyTaskType.CreateElement, e2, t2);
|
|
96
|
-
}
|
|
97
|
-
static BindElementToRootView(e2) {
|
|
98
|
-
T.PushLazyTask(T.LazyTaskType.BindElementToRootView, e2);
|
|
99
|
-
}
|
|
100
|
-
static InsertElementChild(e2, t2, i2) {
|
|
101
|
-
T.PushLazyTask(T.LazyTaskType.InsertElementChild, e2, t2, i2);
|
|
102
|
-
}
|
|
103
|
-
static RemoveElementChild(e2, t2) {
|
|
104
|
-
T.PushLazyTask(T.LazyTaskType.RemoveElementChild, e2, t2);
|
|
105
|
-
}
|
|
106
|
-
static MoveElementChild(e2, t2, i2, s2) {
|
|
107
|
-
T.PushLazyTask(T.LazyTaskType.MoveElementChild, e2, t2, i2, s2);
|
|
108
|
-
}
|
|
109
|
-
static ReOrderElementChild(e2, t2, i2) {
|
|
110
|
-
T.PushLazyTask(T.LazyTaskType.ReOrderElementChild, e2, t2, i2);
|
|
111
|
-
}
|
|
112
|
-
static AddElementEventListener(e2, t2, i2) {
|
|
113
|
-
T.PushLazyTask(T.LazyTaskType.AddElementEventListener, e2, t2, i2);
|
|
114
|
-
}
|
|
115
|
-
static RemoveElementEventListener(e2, t2, i2) {
|
|
116
|
-
T.PushLazyTask(T.LazyTaskType.RemoveElementEventListener, e2, t2, i2);
|
|
117
|
-
}
|
|
118
|
-
static SetElementText(e2, t2) {
|
|
119
|
-
T.PushLazyTask(T.LazyTaskType.SetElementText, e2, t2);
|
|
120
|
-
}
|
|
121
|
-
static SetElementAttribute(e2, t2, i2) {
|
|
122
|
-
T.PushLazyTask(T.LazyTaskType.SetElementAttribute, e2, t2, i2), T.LazyTaskSyncedListenerMap.has(e2) && T.CachedSyncListenIdSet.add(e2);
|
|
123
|
-
}
|
|
124
|
-
static GetElementBoundingClientStyles(e2, t2) {
|
|
125
|
-
return T.RunSyncTask(T.LazyTaskType.GetElementBoundingClientStyles, e2, t2);
|
|
126
|
-
}
|
|
127
|
-
static SetForgeViewInnerProps(e2, t2, i2) {
|
|
128
|
-
let s2 = 0;
|
|
129
|
-
(t2 = t2.substr(12)).startsWith("mask-") && (s2 = 1, t2 = t2.substr(5)), T.PushLazyTask(T.LazyTaskType.SetForgeViewInnerProps, e2, t2, s2, "" + i2);
|
|
130
|
-
}
|
|
131
|
-
static DeclareStyleSheets(e2) {
|
|
132
|
-
T.PushLazyTask(T.LazyTaskType.DeclareStyleSheets, -1, e2);
|
|
133
|
-
}
|
|
134
|
-
static UndeclareStyleSheets(e2) {
|
|
135
|
-
T.PushLazyTask(T.LazyTaskType.UndeclareStyleSheets, -1, e2);
|
|
136
|
-
}
|
|
137
|
-
static SetStyleProperty(e2, t2, i2) {
|
|
138
|
-
T.PushLazyTask(T.LazyTaskType.SetStyleProperty, e2, t2, i2), T.LazyTaskSyncedListenerMap.has(e2) && T.CachedSyncListenIdSet.add(e2);
|
|
139
|
-
}
|
|
140
|
-
static GetStyleProperties(e2, t2) {
|
|
141
|
-
return T.RunSyncTask(T.LazyTaskType.GetStyleProperties, e2, t2);
|
|
142
|
-
}
|
|
143
|
-
static AppendLazyTaskSyncedListener(e2, t2) {
|
|
144
|
-
T.LazyTaskSyncedListenerMap.set(e2, t2);
|
|
145
|
-
}
|
|
146
|
-
static RemoveLazyTaskSyncedListener(e2) {
|
|
147
|
-
T.LazyTaskSyncedListenerMap.delete(e2);
|
|
148
|
-
}
|
|
149
|
-
static RequestSwapAllCachedTasks() {
|
|
150
|
-
if (0 == T.CachedLazyTaskList.length)
|
|
151
|
-
return;
|
|
152
|
-
const e2 = JSON.stringify(T.CachedLazyTaskList);
|
|
153
|
-
T.CachedLazyTaskList = [];
|
|
154
|
-
const t2 = window.JsvCode.Dom.PlatformBridge.JsViewId;
|
|
155
|
-
window.JsvCode.Dom.PlatformBridge.RunLazyTaskList(t2, e2);
|
|
156
|
-
for (const e3 of T.CachedSyncListenIdSet) {
|
|
157
|
-
const t3 = T.LazyTaskSyncedListenerMap.get(e3);
|
|
158
|
-
t3?.();
|
|
159
|
-
}
|
|
160
|
-
T.CachedSyncListenIdSet.clear();
|
|
161
|
-
}
|
|
162
|
-
static GetElementAttribute(e2, t2) {
|
|
163
|
-
return T.RunSyncTask(T.LazyTaskType.GetElementAttribute, e2, t2);
|
|
164
|
-
}
|
|
165
|
-
static InsertKeyFrame(e2, t2) {
|
|
166
|
-
T.PushLazyTask(T.LazyTaskType.InsertKeyFrameDefine, -1, e2, t2);
|
|
167
|
-
}
|
|
168
|
-
static RemoveKeyFrame(e2) {
|
|
169
|
-
T.PushLazyTask(T.LazyTaskType.RemoveKeyFrameDefine, -1, e2);
|
|
170
|
-
}
|
|
171
|
-
static GetRelativePosition(e2, t2) {
|
|
172
|
-
const i2 = T.RunSyncTask(T.LazyTaskType.GetRelativePosition, e2, t2);
|
|
173
|
-
return JSON.parse(i2);
|
|
174
|
-
}
|
|
175
|
-
static RunSyncTask(e2, t2, ...i2) {
|
|
176
|
-
T.RequestSwapAllCachedTasks();
|
|
177
|
-
const s2 = window.JsvCode.Dom.PlatformBridge.JsViewId;
|
|
178
|
-
return window.JsvCode.Dom.PlatformBridge.RunSyncTask(s2, e2, t2, ...i2);
|
|
179
|
-
}
|
|
180
|
-
static PushLazyTask(e2, t2, ...i2) {
|
|
181
|
-
T.CachedLazyTaskList.push([e2, t2, ...i2]), k.sRenderBridge?.RequestSwap();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
T.CachedLazyTaskList = new Array(), T.CachedSyncListenIdSet = /* @__PURE__ */ new Set(), T.LazyTaskSyncedListenerMap = /* @__PURE__ */ new Map(), T.LazyTaskType = { CreateElement: 10, BindElementToRootView: 11, InsertElementChild: 12, RemoveElementChild: 13, AddElementEventListener: 14, RemoveElementEventListener: 15, SetElementText: 16, SetElementAttribute: 17, GetElementBoundingClientStyles: 18, GetElementAttribute: 19, MoveElementChild: 20, GetRelativePosition: 21, ReOrderElementChild: 22, DeclareStyleSheets: 30, SetStyleProperty: 31, GetStyleProperties: 32, UndeclareStyleSheets: 39, SetForgeViewInnerProps: 40, InsertKeyFrameDefine: 41, RemoveKeyFrameDefine: 42 };
|
|
185
|
-
class x {
|
|
186
|
-
}
|
|
187
|
-
x.Dom = T, x.Media = class {
|
|
188
|
-
static CreateAudioPlayer() {
|
|
189
|
-
return window.JsvCode.Media.PlatformBridge.CreateAudioPlayer();
|
|
190
|
-
}
|
|
191
|
-
static CreateVideoPlayer() {
|
|
192
|
-
return window.JsvCode.Media.PlatformBridge.CreateVideoPlayer();
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
class b {
|
|
196
|
-
static GenerateId() {
|
|
197
|
-
const e2 = this.UniqueId++;
|
|
198
|
-
if (e2 >= this.MaxUniqueId)
|
|
199
|
-
throw new Error("JsvUniqueId.GenerateId() Failed to create unique id. id is overflow.");
|
|
200
|
-
return e2;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
b.UniqueId = 0, b.MaxUniqueId = Math.pow(2, 31) - 1;
|
|
204
|
-
class N {
|
|
205
|
-
constructor(e2) {
|
|
206
|
-
this.childNodes = [], this.nodeType = e2, this.ownerDocument = window.document, this.parentNode = null, this.jsvEventListenerMap = null, this.jsvChildChangedCallback = null;
|
|
207
|
-
}
|
|
208
|
-
jsvFinalize() {
|
|
209
|
-
}
|
|
210
|
-
appendChild(e2) {
|
|
211
|
-
this.childNodes.push(e2), e2.parentNode = this, this.jsvChildChangedCallback?.();
|
|
212
|
-
}
|
|
213
|
-
removeChild(e2) {
|
|
214
|
-
let t2 = this.childNodes.indexOf(e2);
|
|
215
|
-
if (t2 < 0)
|
|
216
|
-
throw new DOMException("Failed to remove node, child node is not found. node=", e2);
|
|
217
|
-
this.childNodes.splice(t2, 1), e2.parentNode = null, this.jsvChildChangedCallback?.();
|
|
218
|
-
}
|
|
219
|
-
insertBefore(e2, t2) {
|
|
220
|
-
this.insertBeforeInner(e2, t2);
|
|
221
|
-
}
|
|
222
|
-
get previousSibling() {
|
|
223
|
-
const e2 = this.parentNode?.childNodes;
|
|
224
|
-
let t2 = e2?.indexOf(this);
|
|
225
|
-
if (void 0 === t2 || t2 < 0)
|
|
226
|
-
throw new DOMException("Failed to call Node.previousSibling(), this node not found. this=", this);
|
|
227
|
-
return e2[t2 - 1];
|
|
228
|
-
}
|
|
229
|
-
get nextSibling() {
|
|
230
|
-
const e2 = this.parentNode?.childNodes;
|
|
231
|
-
let t2 = e2?.indexOf(this);
|
|
232
|
-
if (void 0 === t2 || t2 < 0)
|
|
233
|
-
throw new DOMException("Failed to call Node.nextSibling(), this node not found. this=", this);
|
|
234
|
-
return e2[t2 + 1];
|
|
235
|
-
}
|
|
236
|
-
addEventListener(e2, t2, i2) {
|
|
237
|
-
this.jsvEventListenerMap || (this.jsvEventListenerMap = /* @__PURE__ */ new Map());
|
|
238
|
-
let s2 = this.jsvEventListenerMap?.get(e2);
|
|
239
|
-
s2 || (s2 = /* @__PURE__ */ new Set(), this.jsvEventListenerMap?.set(e2, s2)), s2.add(t2);
|
|
240
|
-
}
|
|
241
|
-
removeEventListener(e2, t2, i2) {
|
|
242
|
-
let s2 = this.jsvEventListenerMap?.get(e2);
|
|
243
|
-
s2 && (s2.delete(t2), s2.size <= 0 && this.jsvEventListenerMap?.delete(e2), 0 == this.jsvEventListenerMap?.size && (this.jsvEventListenerMap = null));
|
|
244
|
-
}
|
|
245
|
-
dispatchEvent(e2) {
|
|
246
|
-
if (!this.jsvEventListenerMap)
|
|
247
|
-
return void console.warn("Node.dispatchEvent() Ignore to dispatch event: " + e2.type + ". No event added.");
|
|
248
|
-
let t2 = this.jsvEventListenerMap?.get(e2.type);
|
|
249
|
-
if (t2) {
|
|
250
|
-
e2.target || (e2.target = document.activeElement);
|
|
251
|
-
for (let i2 of t2)
|
|
252
|
-
if (i2?.(e2), e2.jsvIsPrevented())
|
|
253
|
-
break;
|
|
254
|
-
} else
|
|
255
|
-
console.warn("Node.dispatchEvent() Ignore to dispatch event: " + e2.type + ". No listener added.");
|
|
256
|
-
}
|
|
257
|
-
jsvObserveChildChanged(e2) {
|
|
258
|
-
this.jsvChildChangedCallback = e2;
|
|
259
|
-
}
|
|
260
|
-
jsvMoveChildReOrder(e2, t2) {
|
|
261
|
-
{
|
|
262
|
-
let t3 = this.childNodes.indexOf(e2);
|
|
263
|
-
if (t3 < 0)
|
|
264
|
-
throw new DOMException("Failed to call jsvMoveChildReOrder, node not found. node=", e2);
|
|
265
|
-
this.childNodes.splice(t3, 1);
|
|
266
|
-
}
|
|
267
|
-
{
|
|
268
|
-
let i2 = this.childNodes.length;
|
|
269
|
-
if (t2 && (i2 = this.childNodes.indexOf(t2), i2 < 0))
|
|
270
|
-
throw new DOMException("Failed to call move node, before node not found. beforeNode=", t2);
|
|
271
|
-
this.childNodes.splice(i2, 0, e2);
|
|
272
|
-
}
|
|
273
|
-
this.jsvChildChangedCallback?.();
|
|
274
|
-
}
|
|
275
|
-
jsvMoveChildToNewParent(e2, t2, i2) {
|
|
276
|
-
let s2 = this.childNodes.indexOf(e2);
|
|
277
|
-
if (s2 < 0)
|
|
278
|
-
throw new DOMException("Failed to call jsvMoveChildToNewParent, node not found. node=", e2);
|
|
279
|
-
this.childNodes.splice(s2, 1), e2.parentNode = null, this.jsvChildChangedCallback?.(), t2.insertBeforeInner(e2, i2);
|
|
280
|
-
}
|
|
281
|
-
jsvGetEventListenerSet(e2) {
|
|
282
|
-
const t2 = this.jsvEventListenerMap?.get(e2);
|
|
283
|
-
return t2;
|
|
284
|
-
}
|
|
285
|
-
insertBeforeInner(e2, t2) {
|
|
286
|
-
let i2 = this.childNodes.length;
|
|
287
|
-
if (void 0 === t2)
|
|
288
|
-
throw new DOMException("TypeError: Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only 1 present.");
|
|
289
|
-
if (null !== t2 && (i2 = this.childNodes.indexOf(t2)), i2 < 0)
|
|
290
|
-
throw new DOMException("Failed to call insert node, before node not found. beforeNode=", t2);
|
|
291
|
-
this.childNodes.splice(i2, 0, e2), e2.parentNode = this, this.jsvChildChangedCallback?.();
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
function I(e2, t2, i2) {
|
|
295
|
-
return "symbol" == typeof t2 && (t2 = t2.description ? "[".concat(t2.description, "]") : ""), Object.defineProperty(e2, "name", { configurable: true, value: i2 ? "".concat(i2, " ", t2) : t2 });
|
|
296
|
-
}
|
|
297
|
-
N.ELEMENT_NODE = 1, N.TEXT_NODE = 3, N.COMMENT_NODE = 8, N.DOCUMENT_NODE = 9, N.NOLAYOUT_NODE = 10;
|
|
298
|
-
class D {
|
|
299
|
-
static HasGetterMethod(e2) {
|
|
300
|
-
switch (e2) {
|
|
301
|
-
case D.Layout.Height:
|
|
302
|
-
case D.Layout.Left:
|
|
303
|
-
case D.Layout.Top:
|
|
304
|
-
case D.Layout.Width:
|
|
305
|
-
case D.Effect.ObjectFit:
|
|
306
|
-
return true;
|
|
307
|
-
default:
|
|
308
|
-
return false;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
static ToConst(e2) {
|
|
312
|
-
return e2 == D.Layout.Height ? D.Layout.Height : e2 == D.Layout.Left ? D.Layout.Left : e2 == D.Layout.Top ? D.Layout.Top : e2 == D.Layout.Width ? D.Layout.Width : e2 == D.Flex.FlexDirection ? D.Flex.FlexDirection : e2 == D.Flex.FlexWrap ? D.Flex.FlexWrap : e2 == D.Flex.JustifyContent ? D.Flex.JustifyContent : e2 == D.Flex.AlignItems ? D.Flex.AlignItems : e2 == D.Flex.AlignContent ? D.Flex.AlignContent : e2 == D.Flex.AlignSelf ? D.Flex.AlignSelf : e2 == D.Flex.FlexGrow ? D.Flex.FlexGrow : e2 == D.Background.BackgroundColor ? D.Background.BackgroundColor : e2 == D.Background.BackgroundImage ? D.Background.BackgroundImage : e2 == D.Background.BorderRadius ? D.Background.BorderRadius : e2 == D.Effect.BackfaceVisibility ? D.Effect.BackfaceVisibility : e2 == D.Effect.BorderImage ? D.Effect.BorderImage : e2 == D.Effect.BorderImageWidth ? D.Effect.BorderImageWidth : e2 == D.Effect.BorderImageOutset ? D.Effect.BorderImageOutset : e2 == D.Effect.Display ? D.Effect.Display : e2 == D.Effect.ObjectFit ? D.Effect.ObjectFit : e2 == D.Effect.Opacity ? D.Effect.Opacity : e2 == D.Effect.Overflow ? D.Effect.Overflow : e2 == D.Effect.Perspective ? D.Effect.Perspective : e2 == D.Effect.PerspectiveOrigin ? D.Effect.PerspectiveOrigin : e2 == D.Effect.Transform ? D.Effect.Transform : e2 == D.Effect.TransformOrigin ? D.Effect.TransformOrigin : e2 == D.Effect.TransformStyle ? D.Effect.TransformStyle : e2 == D.Effect.Visibility ? D.Effect.Visibility : e2 == D.Effect.ZIndex ? D.Effect.ZIndex : e2 == D.Text.Color ? D.Text.Color : e2 == D.Text.FontFamily ? D.Text.FontFamily : e2 == D.Text.FontSize ? D.Text.FontSize : e2 == D.Text.FontStyle ? D.Text.FontStyle : e2 == D.Text.FontWeight ? D.Text.FontWeight : e2 == D.Text.LineHeight ? D.Text.LineHeight : e2 == D.Text.TextAlign ? D.Text.TextAlign : e2 == D.Text.TextOverflow ? D.Text.TextOverflow : e2 == D.Text.TextShadow ? D.Text.TextShadow : e2 == D.Text.WebkitTextStroke ? D.Text.WebkitTextStroke : e2 == D.Text.WhiteSpace ? D.Text.WhiteSpace : e2 == D.Text.WordWrap ? D.Text.WordWrap : e2 == D.Text.Direction ? D.Text.Direction : e2 == D.Text.JsvTextEmoji ? D.Text.JsvTextEmoji : e2 == D.Text.JsvTextLatex ? D.Text.JsvTextLatex : e2 == D.Text.JsvTextAlignMinWidth ? D.Text.JsvTextAlignMinWidth : e2 == D.Text.JsvTextVerticalAlign ? D.Text.JsvTextVerticalAlign : e2 == D.Text.JsvTextLineAlign ? D.Text.JsvTextLineAlign : e2 == D.Text.JsvTextInnerDirection ? D.Text.JsvTextInnerDirection : e2 == D.Motion.Animation ? D.Motion.Animation : e2 == D.Motion.Transition ? D.Motion.Transition : e2 == D.Motion.AnimationFillMode ? D.Motion.AnimationFillMode : null;
|
|
313
|
-
}
|
|
314
|
-
constructor() {
|
|
315
|
-
throw new Error("new StyleName() is forbidden.");
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
D.Layout = (I(o = class {
|
|
319
|
-
constructor() {
|
|
320
|
-
throw new Error("new StyleName.Layout() is forbidden.");
|
|
321
|
-
}
|
|
322
|
-
}, "Layout"), o.Height = "height", o.Left = "left", o.Top = "top", o.Width = "width", o), D.Flex = (I(r = class {
|
|
323
|
-
constructor() {
|
|
324
|
-
throw new Error("new StyleName.Flex() is forbidden.");
|
|
325
|
-
}
|
|
326
|
-
}, "Flex"), r.FlexDirection = "flexDirection", r.FlexWrap = "flexWrap", r.JustifyContent = "justifyContent", r.AlignItems = "alignItems", r.AlignContent = "alignContent", r.AlignSelf = "alignSelf", r.FlexGrow = "flexGrow", r), D.Background = (I(a = class {
|
|
327
|
-
constructor() {
|
|
328
|
-
throw new Error("new StyleName.Background() is forbidden.");
|
|
329
|
-
}
|
|
330
|
-
}, "Background"), a.BackgroundColor = "backgroundColor", a.BackgroundImage = "backgroundImage", a.BorderRadius = "borderRadius", a), D.Effect = (I(l = class {
|
|
331
|
-
constructor() {
|
|
332
|
-
throw new Error("new StyleName.Effect() is forbidden.");
|
|
333
|
-
}
|
|
334
|
-
}, "Effect"), l.BackfaceVisibility = "backfaceVisibility", l.BorderImage = "borderImage", l.BorderImageWidth = "borderImageWidth", l.BorderImageOutset = "borderImageOutset", l.Display = "display", l.ObjectFit = "objectFit", l.Opacity = "opacity", l.Overflow = "overflow", l.Perspective = "perspective", l.PerspectiveOrigin = "perspectiveOrigin", l.Transform = "transform", l.TransformOrigin = "transformOrigin", l.TransformStyle = "transformStyle", l.Visibility = "visibility", l.ZIndex = "zIndex", l), D.Text = (I(c = class {
|
|
335
|
-
constructor() {
|
|
336
|
-
throw new Error("new StyleName.Text() is forbidden.");
|
|
337
|
-
}
|
|
338
|
-
}, "Text"), c.Color = "color", c.FontFamily = "fontFamily", c.FontSize = "fontSize", c.FontStyle = "fontStyle", c.FontWeight = "fontWeight", c.LineHeight = "lineHeight", c.TextAlign = "textAlign", c.TextOverflow = "textOverflow", c.TextShadow = "textShadow", c.WebkitTextStroke = "WebkitTextStroke", c.WhiteSpace = "whiteSpace", c.WordWrap = "wordWrap", c.Direction = "direction", c.JsvTextEmoji = "JsvTextEmoji", c.JsvTextLatex = "JsvTextLatex", c.JsvTextAlignMinWidth = "JsvTextAlignMinWidth", c.JsvTextVerticalAlign = "JsvTextVerticalAlign", c.JsvTextLineAlign = "JsvTextLineAlign", c.JsvTextInnerDirection = "JsvTextInnerDirection", c), D.Motion = (I(d = class {
|
|
339
|
-
constructor() {
|
|
340
|
-
throw new Error("new StyleName.Motion() is forbidden.");
|
|
341
|
-
}
|
|
342
|
-
}, "Motion"), d.Animation = "animation", d.Transition = "transition", d.AnimationFillMode = "animationFillMode", d);
|
|
343
|
-
class E {
|
|
344
|
-
constructor(e2) {
|
|
345
|
-
let t2 = -1, i2 = null;
|
|
346
|
-
null == e2 ? t2 = E.DataType.Null : Number(e2) === e2 && e2 % 1 == 0 ? t2 = E.DataType.Int32 : Number(e2) === e2 && e2 % 1 != 0 ? t2 = E.DataType.Float : "string" == typeof e2 || e2 instanceof String ? t2 = E.DataType.String : e2 instanceof E.AnimationImpl ? t2 = E.DataType.Animation : e2 instanceof E.CornerImpl ? t2 = E.DataType.Corner : e2 instanceof E.RectImpl ? t2 = E.DataType.Rect : e2 instanceof E.TextShadowImpl ? t2 = E.DataType.TextShadow : e2 instanceof E.WebkitTextStrokeImpl ? t2 = E.DataType.WebkitTextStroke : e2 instanceof E.TransitionImpl ? t2 = E.DataType.Transition : e2 instanceof E.BorderImageImpl && (t2 = E.DataType.BorderImage), e2 != E.InvalidInt32 && e2 != E.InvalidFloat && e2 != E.InvalidPointer ? i2 = e2 : (t2 = E.DataType.Null, i2 = null), this.data = new E.DataInfo(), this.data.index = t2, this.data.value = i2;
|
|
347
|
-
}
|
|
348
|
-
toString() {
|
|
349
|
-
let e2 = null;
|
|
350
|
-
switch (this.data.index) {
|
|
351
|
-
case E.DataType.Null:
|
|
352
|
-
return "";
|
|
353
|
-
case E.DataType.Int32:
|
|
354
|
-
case E.DataType.Float:
|
|
355
|
-
return String(this.get());
|
|
356
|
-
case E.DataType.String:
|
|
357
|
-
e2 = this.get();
|
|
358
|
-
break;
|
|
359
|
-
case E.DataType.Animation:
|
|
360
|
-
case E.DataType.Corner:
|
|
361
|
-
case E.DataType.Rect:
|
|
362
|
-
case E.DataType.TextShadow:
|
|
363
|
-
case E.DataType.WebkitTextStroke:
|
|
364
|
-
case E.DataType.Transition:
|
|
365
|
-
case E.DataType.BorderImage:
|
|
366
|
-
case E.DataType.BackgroundImage:
|
|
367
|
-
e2 = this.get().rawValue;
|
|
368
|
-
break;
|
|
369
|
-
default:
|
|
370
|
-
console.error("Failed to do StyleValue.toString()");
|
|
371
|
-
}
|
|
372
|
-
return e2 ?? "";
|
|
373
|
-
}
|
|
374
|
-
is(e2) {
|
|
375
|
-
return this.data.index == e2;
|
|
376
|
-
}
|
|
377
|
-
get() {
|
|
378
|
-
return this.data.value;
|
|
379
|
-
}
|
|
380
|
-
reset(e2) {
|
|
381
|
-
this.data.value = e2.data.value, this.data.index = e2.data.index;
|
|
382
|
-
}
|
|
383
|
-
equals(e2) {
|
|
384
|
-
return this.data.value === e2.data.value && this.data.index === e2.data.index;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
E.Base = class {
|
|
388
|
-
constructor(e2) {
|
|
389
|
-
this.rawValue = e2;
|
|
390
|
-
}
|
|
391
|
-
}, E.AnimationImpl = class extends E.Base {
|
|
392
|
-
constructor(e2) {
|
|
393
|
-
super(e2), this.name = "", this.duration = 0, this.timingFunction = null, this.delay = 0, this.iterationCount = 0, this.direction = false;
|
|
394
|
-
}
|
|
395
|
-
}, E.CornerImpl = class extends E.Base {
|
|
396
|
-
constructor(e2) {
|
|
397
|
-
super(e2), this.topLeft = 0, this.topRight = 0, this.bottomRight = 0, this.bottomLeft = 0;
|
|
398
|
-
}
|
|
399
|
-
}, E.RectImpl = class extends E.Base {
|
|
400
|
-
constructor(e2) {
|
|
401
|
-
super(e2), this.top = 0, this.right = 0, this.left = 0, this.bottom = 0;
|
|
402
|
-
}
|
|
403
|
-
}, E.TextShadowImpl = class extends E.Base {
|
|
404
|
-
constructor(e2) {
|
|
405
|
-
super(e2), this.hShadow = 0, this.vShadow = 0, this.blur = 0, this.color = void 0;
|
|
406
|
-
}
|
|
407
|
-
}, E.WebkitTextStrokeImpl = class extends E.Base {
|
|
408
|
-
constructor(e2) {
|
|
409
|
-
super(e2), this.length = 0, this.color = void 0;
|
|
410
|
-
}
|
|
411
|
-
}, E.TransitionImpl = class extends E.Base {
|
|
412
|
-
constructor(e2) {
|
|
413
|
-
super(e2), this.animationMap = /* @__PURE__ */ new Map();
|
|
414
|
-
}
|
|
415
|
-
}, E.BorderImageImpl = class extends E.Base {
|
|
416
|
-
constructor(e2) {
|
|
417
|
-
super(e2), this.source = "", this.slice = null;
|
|
418
|
-
}
|
|
419
|
-
}, E.BackgroundImageImpl = (I(h = class extends E.Base {
|
|
420
|
-
constructor(e2) {
|
|
421
|
-
super(e2), this.type = 0, this.urlPath = "";
|
|
422
|
-
}
|
|
423
|
-
}, "BackgroundImageImpl"), h.eType = { UNKNOWN: 0, LINEAR_GRADIENT: 1, URL_PATH: 2 }, h.LinearGradient = class {
|
|
424
|
-
constructor() {
|
|
425
|
-
this.fromX = 0, this.fromY = 0, this.toX = 0, this.toY = 0, this.stops = [];
|
|
426
|
-
}
|
|
427
|
-
}, h), E.DataType = (I(u = class {
|
|
428
|
-
}, "DataType"), u.Null = 0, u.Int32 = 1, u.Float = 2, u.String = 3, u.Animation = 4, u.Corner = 5, u.Rect = 6, u.TextShadow = 7, u.WebkitTextStroke = 8, u.Transition = 9, u.BorderImage = 10, u.BackgroundImage = 11, u), E.InvalidInt32 = Number.MIN_VALUE, E.InvalidFloat = Number.NaN, E.InvalidPointer = null, E.DataInfo = class {
|
|
429
|
-
constructor() {
|
|
430
|
-
this.value = null, this.index = -1;
|
|
431
|
-
}
|
|
432
|
-
}, I(m = class {
|
|
433
|
-
}, "Text"), m.Color = "#000000", m.FontFamily = "黑体", m.FontSize = 10, m.FontStyle = "normal", m.FontWeight = "normal", m.LineHeight = 0, m.TextAlign = "start", m.TextOverflow = "clip", m.TextShadow = null, m.WebkitTextStroke = null, m.WhiteSpace = "normal", m.WordWrap = "normal", m.Direction = "ltr", m.JsvTextEmoji = 0, m.JsvTextLatex = 0, m.JsvTextAlignMinWidth = 0, m.JsvTextVerticalAlign = "top", m.JsvTextLineAlign = "middle", m.JsvTextInnerDirection = "unset", I(p = class {
|
|
434
|
-
constructor() {
|
|
435
|
-
this.height = E.InvalidInt32, this.left = E.InvalidInt32, this.top = E.InvalidInt32, this.width = E.InvalidInt32;
|
|
436
|
-
}
|
|
437
|
-
}, "Layout"), p.Name = "layout", I(f = class {
|
|
438
|
-
constructor() {
|
|
439
|
-
this.flexDirection = E.InvalidInt32, this.flexWrap = E.InvalidInt32, this.justifyContent = E.InvalidInt32, this.alignItems = E.InvalidInt32, this.alignContent = E.InvalidInt32, this.alignSelf = E.InvalidInt32, this.flexGrow = E.InvalidFloat;
|
|
440
|
-
}
|
|
441
|
-
}, "Flex"), f.Name = "flex", I(v = class {
|
|
442
|
-
constructor() {
|
|
443
|
-
this.backgroundColor = E.InvalidPointer, this.backgroundImage = E.InvalidPointer, this.borderRadius = E.InvalidPointer;
|
|
444
|
-
}
|
|
445
|
-
}, "Background"), v.Name = "background", I(g = class {
|
|
446
|
-
constructor() {
|
|
447
|
-
this.backfaceVisibility = E.InvalidPointer, this.borderImage = E.InvalidPointer, this.borderImageWidth = E.InvalidPointer, this.borderImageOutset = E.InvalidPointer, this.display = E.InvalidPointer, this.objectFit = E.InvalidPointer, this.opacity = E.InvalidFloat, this.overflow = E.InvalidPointer, this.perspective = E.InvalidInt32, this.perspectiveOrigin = E.InvalidPointer, this.transform = E.InvalidPointer, this.transformOrigin = E.InvalidPointer, this.transformStyle = E.InvalidPointer, this.visibility = E.InvalidPointer, this.zIndex = E.InvalidInt32;
|
|
448
|
-
}
|
|
449
|
-
}, "Effect"), g.Name = "effect", I(w = class {
|
|
450
|
-
constructor() {
|
|
451
|
-
this.color = E.InvalidPointer, this.fontFamily = E.InvalidPointer, this.fontSize = E.InvalidInt32, this.fontStyle = E.InvalidPointer, this.fontWeight = E.InvalidPointer, this.lineHeight = E.InvalidInt32, this.textAlign = E.InvalidPointer, this.textOverflow = E.InvalidPointer, this.textShadow = E.InvalidPointer, this.webkitTextStroke = E.InvalidPointer, this.whiteSpace = E.InvalidPointer, this.wordWrap = E.InvalidPointer, this.direction = E.InvalidPointer, this.jsvTextEmoji = E.InvalidInt32, this.jsvTextLatex = E.InvalidInt32, this.jsvTextAlignMinWidth = E.InvalidInt32, this.jsvTextVerticalAlign = E.InvalidPointer, this.jsvTextLineAlign = E.InvalidPointer, this.jsvTextInnerDirection = E.InvalidPointer;
|
|
452
|
-
}
|
|
453
|
-
}, "Text"), w.Name = "text", I(y = class {
|
|
454
|
-
constructor() {
|
|
455
|
-
this.animation = E.InvalidPointer, this.transition = E.InvalidPointer, this.animationFillMode = "none";
|
|
456
|
-
}
|
|
457
|
-
}, "Motion"), y.Name = "motion";
|
|
458
|
-
class S {
|
|
459
|
-
static JsvDeclarePrototype() {
|
|
460
|
-
for (let e2 in D) {
|
|
461
|
-
let t2 = D[e2];
|
|
462
|
-
for (let e3 in t2) {
|
|
463
|
-
let i2 = t2[e3];
|
|
464
|
-
if ("string" != typeof i2)
|
|
465
|
-
continue;
|
|
466
|
-
const s2 = { set: function(e4) {
|
|
467
|
-
this.setProperty(i2, e4);
|
|
468
|
-
}, get: function() {
|
|
469
|
-
return this.getPropertyValue(i2);
|
|
470
|
-
} };
|
|
471
|
-
Object.defineProperty(S.prototype, i2, s2);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
constructor(e2) {
|
|
476
|
-
this.cachedProps = {}, this.nativeId = e2;
|
|
477
|
-
}
|
|
478
|
-
setProperty(e2, t2) {
|
|
479
|
-
if (window.JsvCode.Dom.CheckStyleFormat?.(e2, t2), e2 == D.Background.BackgroundImage && "string" == typeof t2)
|
|
480
|
-
if (0 == t2.indexOf("linear-gradient")) {
|
|
481
|
-
const e3 = t2.match(/\(/g)?.length, i2 = t2.match(/\)/g)?.length;
|
|
482
|
-
e3 != i2 && (console.error(`StyleError: illegal linear-gradient value '${t2}'`), t2 = "");
|
|
483
|
-
} else {
|
|
484
|
-
t2 = new C(t2).href;
|
|
485
|
-
}
|
|
486
|
-
else if (e2 == D.Effect.BorderImage && "string" == typeof t2) {
|
|
487
|
-
const e3 = t2.split(" ");
|
|
488
|
-
e3.length > 0 && (e3[0] = new C(e3[0]).href), t2 = e3.join(" ");
|
|
489
|
-
} else
|
|
490
|
-
e2 == D.Effect.Display && (this.cachedProps[e2] = t2);
|
|
491
|
-
x.Dom.SetStyleProperty(this.nativeId, e2, t2);
|
|
492
|
-
}
|
|
493
|
-
getPropertyValue(e2) {
|
|
494
|
-
if (e2 == D.Effect.Display)
|
|
495
|
-
return this.cachedProps[e2];
|
|
496
|
-
throw console.error("StyleDeclaration.getPropertyValue() propName=" + e2), new Error("Get style value is unimplemented because it's low performance.");
|
|
497
|
-
}
|
|
498
|
-
jsvGetProperties(...e2) {
|
|
499
|
-
const t2 = JSON.stringify(e2), i2 = x.Dom.GetStyleProperties(this.nativeId, t2);
|
|
500
|
-
return JSON.parse(i2);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
class F extends t {
|
|
504
|
-
constructor(e2) {
|
|
505
|
-
super(e2);
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
class O extends N {
|
|
509
|
-
static JsvEnableEventListener() {
|
|
510
|
-
x.Dom.EnableEventListener(function(e2, t2, ...i2) {
|
|
511
|
-
let s2 = O.JsvEventListenerMap.get(e2);
|
|
512
|
-
const n2 = s2?.get(t2);
|
|
513
|
-
n2?.(t2, ...i2);
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
constructor(e2) {
|
|
517
|
-
super(N.ELEMENT_NODE), this.jsvNativeId = -1, this.jsvAttrStore = {}, this.jsvClientSizeStore = {}, this.tagName = e2, this.tagName != O.JsvTagName.Audio && this.tagName != O.JsvTagName.Div && this.tagName != O.JsvTagName.Image && this.tagName != O.JsvTagName.Video && this.tagName != O.JsvTagName.JsvFDiv || (this.jsvNativeId = b.GenerateId(), this.style = new S(this.jsvNativeId), x.Dom.CreateElement(this.jsvNativeId, e2));
|
|
518
|
-
}
|
|
519
|
-
appendChild(e2) {
|
|
520
|
-
e2.parentNode ? this.moveChildNode(e2, null) : (super.appendChild(e2), this.jsvInsertChild(e2, null));
|
|
521
|
-
}
|
|
522
|
-
removeChild(e2) {
|
|
523
|
-
super.removeChild(e2), this.jsvRemoveChild(e2), e2 instanceof O && e2.jsvNativeId > 0 && x.Dom.RemoveElementChild(this.jsvNativeId, e2.jsvNativeId);
|
|
524
|
-
}
|
|
525
|
-
insertBefore(e2, t2) {
|
|
526
|
-
e2.parentNode ? e2.parentNode == this ? (this.jsvMoveChildReOrder(e2, t2), this.jsvReOrderChildNode(e2, t2)) : this.moveChildNode(e2, t2) : (super.insertBefore(e2, t2), this.jsvInsertChild(e2, t2));
|
|
527
|
-
}
|
|
528
|
-
addEventListener(e2, t2, i2) {
|
|
529
|
-
const s2 = this.jsvGetEventListenerSet(e2);
|
|
530
|
-
s2?.has(t2) ? console.warn("Element.addEventListener() Faild to add listener, func is exists") : (i2 = this.jsvCheckEventOptions(i2), this.jsvNativeId && (this.jsvAddListener(this.jsvNativeId, e2), x.Dom.AddElementEventListener(this.jsvNativeId, e2, i2)), super.addEventListener(e2, t2, i2));
|
|
531
|
-
}
|
|
532
|
-
removeEventListener(e2, t2, i2) {
|
|
533
|
-
const s2 = this.jsvGetEventListenerSet(e2);
|
|
534
|
-
0 != !!s2?.has(t2) && (i2 = this.jsvCheckEventOptions(i2), super.removeEventListener(e2, t2, i2), this.jsvNativeId && (this.jsvRemoveListener(this.jsvNativeId, e2), x.Dom.RemoveElementEventListener(this.jsvNativeId, e2, i2)));
|
|
535
|
-
}
|
|
536
|
-
get childElementCount() {
|
|
537
|
-
return this.childNodes.length;
|
|
538
|
-
}
|
|
539
|
-
get firstElementChild() {
|
|
540
|
-
return this.childNodes.length > 0 ? this.childNodes?.[0] : null;
|
|
541
|
-
}
|
|
542
|
-
get lastElementChild() {
|
|
543
|
-
const e2 = this.childNodes.length;
|
|
544
|
-
return e2 > 0 ? this.childNodes[e2 - 1] : null;
|
|
545
|
-
}
|
|
546
|
-
set className(e2) {
|
|
547
|
-
this.setAttribute("class", e2);
|
|
548
|
-
}
|
|
549
|
-
get clientWidth() {
|
|
550
|
-
return this.jsvClientSizeStore.clientWidth || (this.jsvClientSizeStore.clientWidth = x.Dom.GetElementAttribute(this.jsvNativeId, "clientWidth")), this.jsvClientSizeStore.clientWidth;
|
|
551
|
-
}
|
|
552
|
-
get clientHeight() {
|
|
553
|
-
return this.jsvClientSizeStore.clientHeight || (this.jsvClientSizeStore.clientHeight = x.Dom.GetElementAttribute(this.jsvNativeId, "clientHeight")), this.jsvClientSizeStore.clientHeight;
|
|
554
|
-
}
|
|
555
|
-
setAttribute(e2, t2) {
|
|
556
|
-
e2 && (this.jsvAttrStore[e2] = t2, this.jsvNativeId && (e2.startsWith("data-jsv-vw-") ? x.Dom.SetForgeViewInnerProps(this.jsvNativeId, e2, t2) : "class" === e2 || e2.startsWith("data-v-") || e2.startsWith("data-jsv") || e2.startsWith("dataJsv") ? x.Dom.SetElementAttribute(this.jsvNativeId, e2, t2) : "id" === e2 && x.Dom.SetForgeViewInnerProps(this.jsvNativeId, "data-jsv-vw-id", t2)));
|
|
557
|
-
}
|
|
558
|
-
removeAttribute(e2) {
|
|
559
|
-
delete this.jsvAttrStore[e2], ("class" == e2 || e2.startsWith("data-v-") || "src" == e2) && this.jsvNativeId && x.Dom.SetElementAttribute(this.jsvNativeId, e2, null);
|
|
560
|
-
}
|
|
561
|
-
getAttribute(e2) {
|
|
562
|
-
return this.jsvAttrStore[e2];
|
|
563
|
-
}
|
|
564
|
-
hasAttribute(e2) {
|
|
565
|
-
return !!this.jsvAttrStore[e2];
|
|
566
|
-
}
|
|
567
|
-
focus() {
|
|
568
|
-
document.activeElement && document.activeElement.onfocus();
|
|
569
|
-
let e2 = document.activeElement;
|
|
570
|
-
if (document.activeElement = this, e2) {
|
|
571
|
-
let t3 = new n(n.JsvType.Blur);
|
|
572
|
-
t3.target = e2, document.dispatchEvent(t3);
|
|
573
|
-
}
|
|
574
|
-
let t2 = new n(n.JsvType.Focus);
|
|
575
|
-
document.dispatchEvent(t2);
|
|
576
|
-
}
|
|
577
|
-
jsvGetBoundingClientRect() {
|
|
578
|
-
const e2 = "jsv-getbound", t2 = b.GenerateId();
|
|
579
|
-
return new Promise((i2, s2) => {
|
|
580
|
-
const n2 = (o2) => {
|
|
581
|
-
const r2 = o2.jsvParams?.[1];
|
|
582
|
-
if (r2 != t2)
|
|
583
|
-
return;
|
|
584
|
-
o2.preventDefault(), this.removeEventListener(e2, n2);
|
|
585
|
-
const a2 = JSON.parse(o2.jsvParams?.[0] ?? "{}");
|
|
586
|
-
0 === a2.status ? i2(a2.data) : s2(a2.error);
|
|
587
|
-
};
|
|
588
|
-
this.addEventListener(e2, n2, { jsvtoken: t2 });
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
jsvSetOnLazyTaskSyncedListener(e2) {
|
|
592
|
-
x.Dom.AppendLazyTaskSyncedListener(this.jsvNativeId, e2);
|
|
593
|
-
}
|
|
594
|
-
jsvOnEvent(e2, ...n2) {
|
|
595
|
-
let o2;
|
|
596
|
-
e2.startsWith("animation") ? (o2 = new i(e2), o2.animationName = n2[0]) : e2.startsWith("transition") ? (o2 = new F(e2), o2.propertyName = n2[0]) : e2.startsWith("jsv") ? (o2 = new s(e2), o2.options = { detail: n2[0] }, o2.jsvParams = n2) : "click" == e2 && (o2 = new t(e2), o2.target = this), o2 && (o2.target = this, this.dispatchEvent(o2));
|
|
597
|
-
}
|
|
598
|
-
jsvGetProxyView(e2) {
|
|
599
|
-
return e2 ? (this.maskViewProxy || (this.maskViewProxy = k.NewDomProxyView(this.jsvNativeId, true)), this.maskViewProxy) : (this.mainViewProxy || (this.mainViewProxy = k.NewDomProxyView(this.jsvNativeId, false)), this.mainViewProxy);
|
|
600
|
-
}
|
|
601
|
-
jsvGetProxyTexture(e2) {
|
|
602
|
-
return this.mainViewTextureProxy || (this.mainViewTextureProxy = e2.GetDomProxyTexture(this.jsvNativeId)), this.mainViewTextureProxy;
|
|
603
|
-
}
|
|
604
|
-
jsvGetRelativePosition(e2) {
|
|
605
|
-
return x.Dom.GetRelativePosition(this.jsvNativeId, e2.jsvNativeId);
|
|
606
|
-
}
|
|
607
|
-
jsvAddListener(e2, t2) {
|
|
608
|
-
let i2 = O.JsvEventListenerMap.get(e2);
|
|
609
|
-
i2 || (i2 = /* @__PURE__ */ new Map(), O.JsvEventListenerMap.set(e2, i2));
|
|
610
|
-
this.jsvGetEventListenerSet(t2) || i2.set(t2, this.jsvOnEvent.bind(this));
|
|
611
|
-
}
|
|
612
|
-
jsvRemoveListener(e2, t2) {
|
|
613
|
-
let i2 = O.JsvEventListenerMap.get(e2);
|
|
614
|
-
if (!i2)
|
|
615
|
-
return;
|
|
616
|
-
this.jsvGetEventListenerSet(t2) || i2.delete(t2);
|
|
617
|
-
}
|
|
618
|
-
moveChildNode(e2, t2) {
|
|
619
|
-
console.log("Do move child node");
|
|
620
|
-
let i2 = e2.parentNode;
|
|
621
|
-
i2.jsvMoveChildToNewParent(e2, this, t2), this.jsvMoveChildNode(i2, e2, t2);
|
|
622
|
-
}
|
|
623
|
-
jsvMoveChildNode(e2, t2, i2) {
|
|
624
|
-
t2.jsvNativeId && (i2 = O.JsvFindBackwardForgeView(i2), x.Dom.MoveElementChild(this.jsvNativeId, e2.jsvNativeId, t2.jsvNativeId, i2?.jsvNativeId));
|
|
625
|
-
}
|
|
626
|
-
jsvReOrderChildNode(e2, t2) {
|
|
627
|
-
e2.jsvNativeId && (t2 = O.JsvFindBackwardForgeView(t2), x.Dom.ReOrderElementChild(this.jsvNativeId, e2.jsvNativeId, t2?.jsvNativeId));
|
|
628
|
-
}
|
|
629
|
-
jsvInsertChild(e2, t2) {
|
|
630
|
-
e2.parentNode = this, e2.nodeType === N.TEXT_NODE ? this.textContent = e2.nodeValue : e2 instanceof O && e2.jsvNativeId > 0 && (t2 = O.JsvFindBackwardForgeView(t2), x.Dom.InsertElementChild(this.jsvNativeId, e2.jsvNativeId, t2?.jsvNativeId));
|
|
631
|
-
}
|
|
632
|
-
jsvRemoveChild(e2) {
|
|
633
|
-
if (e2 instanceof O != 0) {
|
|
634
|
-
for (const t2 of e2.childNodes)
|
|
635
|
-
e2.jsvRemoveChild(t2);
|
|
636
|
-
e2.jsvFinalize(), x.Dom.RemoveLazyTaskSyncedListener(e2.jsvNativeId), O.JsvEventListenerMap.delete(e2.jsvNativeId);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
jsvCheckEventOptions(e2) {
|
|
640
|
-
if (null == e2)
|
|
641
|
-
return null;
|
|
642
|
-
if ("object" != typeof e2 || e2 instanceof Array)
|
|
643
|
-
return console.warn("Event options is invalid for ", e2), null;
|
|
644
|
-
const t2 = ["capture", "once", "passive", "signal"];
|
|
645
|
-
for (const [i2, s2] of Object.entries(e2))
|
|
646
|
-
0 == t2.includes(i2) && 0 == i2.startsWith("jsv") && (console.warn("Event options name is invalid: ", i2), delete e2[i2]), "boolean" == typeof s2 ? e2[i2] = +e2[i2] : "number" != typeof s2 && (console.warn("Event options value is invalid: ", s2), delete e2[i2]);
|
|
647
|
-
return e2;
|
|
648
|
-
}
|
|
649
|
-
static JsvFindBackwardForgeView(e2) {
|
|
650
|
-
let t2 = e2;
|
|
651
|
-
for (; t2 && !(t2 instanceof O); )
|
|
652
|
-
t2 = t2.nextSibling;
|
|
653
|
-
return t2;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
O.JsvTagName = { Anchor: "A", Audio: "AUDIO", Div: "DIV", Head: "HEAD", Image: "IMG", IFrame: "IFRAME", Link: "LINK", Script: "SCRIPT", Style: "STYLE", Svg: "SVG", Video: "VIDEO", JsvAudioTrack: "JSV-AUDIOTRACK", JsvFDiv: "FDIV" }, O.JsvEventListenerMap = /* @__PURE__ */ new Map();
|
|
657
|
-
class L extends O {
|
|
658
|
-
constructor() {
|
|
659
|
-
super(O.JsvTagName.Anchor), this.href = "", this.protocol = "", this.host = "", this.search = "", this.hash = "", this.hostname = "", this.port = "", this.pathname = "", console.warn("Warnig: <a> is fake in JsView system");
|
|
660
|
-
}
|
|
661
|
-
jsvGetTagName() {
|
|
662
|
-
return O.JsvTagName.Anchor;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
class P extends N {
|
|
666
|
-
constructor(e2) {
|
|
667
|
-
super(N.COMMENT_NODE), this.textContent = e2;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
class B extends O {
|
|
671
|
-
constructor() {
|
|
672
|
-
super(O.JsvTagName.Div), this.textContentStore = null;
|
|
673
|
-
}
|
|
674
|
-
get textContent() {
|
|
675
|
-
return this.textContentStore;
|
|
676
|
-
}
|
|
677
|
-
set textContent(e2) {
|
|
678
|
-
this.textContentStore = e2, this.jsvClientSizeStore = {}, x.Dom.SetElementText(this.jsvNativeId, e2);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
const M = "FocusDebug", J = "__AppRoot__";
|
|
682
|
-
let R = false, j = false;
|
|
683
|
-
function A(e2, t2) {
|
|
684
|
-
let i2 = function(e3) {
|
|
685
|
-
let t3 = "";
|
|
686
|
-
if (e3) {
|
|
687
|
-
let i3 = e3, s3 = i3.RouterDelegate?.ref?.NameSpace;
|
|
688
|
-
for (s3 = s3 == J ? "" : s3, t3 = `[${s3 ? s3 + ", " : ""}${i3.BranchName}]`, i3 = i3.GetParentPage(); i3; )
|
|
689
|
-
s3 = i3.RouterDelegate?.ref?.NameSpace, s3 = s3 == J ? "" : s3, t3 = `[${s3 ? s3 + ", " : ""}${i3.BranchName}]->` + t3, i3 = i3.GetParentPage();
|
|
690
|
-
}
|
|
691
|
-
return t3;
|
|
692
|
-
}(e2);
|
|
693
|
-
if (t2.stack) {
|
|
694
|
-
let e3 = t2.stack.split("\n");
|
|
695
|
-
e3.length >= 3 && (t2.stack = e3.slice(2, 6));
|
|
696
|
-
}
|
|
697
|
-
let s2 = "";
|
|
698
|
-
for (let e3 of t2.stack)
|
|
699
|
-
s2 += e3 + "\n";
|
|
700
|
-
delete t2.stack, console.log(M, `focusChange(${t2?.from}):${t2?.askName}
|
|
701
|
-
:focusStack:${i2}
|
|
702
|
-
:trace:${s2}:`, t2);
|
|
703
|
-
}
|
|
704
|
-
class _ {
|
|
705
|
-
constructor(e2, t2) {
|
|
706
|
-
this._DefaultFocusNameSpace = null, this._DefaultFocusNameSpace = null, this.RouterDelegate = { ref: null }, e2 || (this.RouterDelegate.ref = new W(false, t2));
|
|
707
|
-
}
|
|
708
|
-
enableFocusTrace(e2) {
|
|
709
|
-
R = true, j = e2;
|
|
710
|
-
}
|
|
711
|
-
getNameSpace() {
|
|
712
|
-
let e2 = this.RouterDelegate.ref.NameSpace;
|
|
713
|
-
return e2 == J ? "" : e2;
|
|
714
|
-
}
|
|
715
|
-
wrapWithNameSpace(e2) {
|
|
716
|
-
let t2 = new _(true);
|
|
717
|
-
return t2._DefaultFocusNameSpace = e2, t2.RouterDelegate = this.RouterDelegate, t2;
|
|
718
|
-
}
|
|
719
|
-
getNodeByName(e2) {
|
|
720
|
-
return this.RouterDelegate.ref.getNodeByName(e2);
|
|
721
|
-
}
|
|
722
|
-
focusByNameBeforeMount(e2, t2, i2) {
|
|
723
|
-
if ("string" == typeof e2)
|
|
724
|
-
return e2.includes(".") && (e2 = e2.split(".")), this.RouterDelegate.ref.focusBeforeMount(e2, t2, i2);
|
|
725
|
-
console.error(`setFocus name=${e2} is invalid`);
|
|
726
|
-
}
|
|
727
|
-
setFocus(e2, t2) {
|
|
728
|
-
this._DefaultFocusNameSpace && this._DefaultFocusNameSpace.length > 0 && (e2 = `${this._DefaultFocusNameSpace}.${e2}`);
|
|
729
|
-
let i2 = null;
|
|
730
|
-
R && (i2 = { askName: e2, deepToChild: t2, from: "setFocus", stack: j ? new Error("simulate-stack").stack : null });
|
|
731
|
-
return this.focusByNameBeforeMount(e2, t2, i2);
|
|
732
|
-
}
|
|
733
|
-
printAllFocusable() {
|
|
734
|
-
this.RouterDelegate.ref.printAllFocusRecursive(this._DefaultFocusNameSpace, "");
|
|
735
|
-
}
|
|
736
|
-
getCurrentFocusStack() {
|
|
737
|
-
const e2 = [];
|
|
738
|
-
if (this.RouterDelegate.ref) {
|
|
739
|
-
let t2 = this.RouterDelegate.ref.getCurrentFocusNode();
|
|
740
|
-
for (; t2 && t2 instanceof U; ) {
|
|
741
|
-
let i2 = t2.RouterDelegate?.ref?.NameSpace;
|
|
742
|
-
e2.push({ nameSpace: i2 == J || i2 == t2.BranchName ? "" : i2, name: t2.BranchName }), t2 = t2.GetParentPage();
|
|
743
|
-
}
|
|
744
|
-
} else
|
|
745
|
-
console.error("getCurrentFocusStack failed: router delegate is null.");
|
|
746
|
-
return e2;
|
|
747
|
-
}
|
|
748
|
-
getLastFocus() {
|
|
749
|
-
if (U.sLastFocus) {
|
|
750
|
-
let e2 = U.sLastFocus;
|
|
751
|
-
for (; e2._LatestFocusChild; )
|
|
752
|
-
e2 = e2._LatestFocusChild;
|
|
753
|
-
return e2.BranchName;
|
|
754
|
-
}
|
|
755
|
-
return null;
|
|
756
|
-
}
|
|
757
|
-
getCurrentFocus() {
|
|
758
|
-
if (this.RouterDelegate.ref) {
|
|
759
|
-
const e2 = this.RouterDelegate.ref.getCurrentFocusNode();
|
|
760
|
-
if (e2)
|
|
761
|
-
return e2.BranchName;
|
|
762
|
-
}
|
|
763
|
-
return null;
|
|
764
|
-
}
|
|
765
|
-
getDeactivedPageFocus() {
|
|
766
|
-
return this.RouterDelegate.ref ? this.RouterDelegate.ref.getDeactivePageFocusName() : null;
|
|
767
|
-
}
|
|
768
|
-
returnFocusToParent() {
|
|
769
|
-
const e2 = this.RouterDelegate.ref.getCurrentFocusNode();
|
|
770
|
-
e2 ? e2.ReturnFocusToParent() : console.warn("returnFocusToParent: current focus node is null.");
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
class W {
|
|
774
|
-
constructor(e2, t2) {
|
|
775
|
-
this._ChildMap = {}, this._FocusNameBeforeMount = null, this._BeforeMountStack = null, this._FocusNodeName = null, this._IsTemp = !!e2, this.NameSpace = t2;
|
|
776
|
-
}
|
|
777
|
-
getDeactivePageFocusName() {
|
|
778
|
-
return this._FocusNodeName;
|
|
779
|
-
}
|
|
780
|
-
getCurrentFocusNode() {
|
|
781
|
-
if (null == this._FocusNodeName)
|
|
782
|
-
return null;
|
|
783
|
-
let e2 = this._ChildMap[this._FocusNodeName];
|
|
784
|
-
if (!e2)
|
|
785
|
-
return console.error("Erorr: node not mounted name=" + this._FocusNodeName), null;
|
|
786
|
-
if (e2.RouterDelegate.ref != this) {
|
|
787
|
-
let t2 = e2.RouterDelegate.ref.getCurrentFocusNode();
|
|
788
|
-
return null == t2 ? e2 : t2;
|
|
789
|
-
}
|
|
790
|
-
return e2;
|
|
791
|
-
}
|
|
792
|
-
getNodeByName(e2, t2) {
|
|
793
|
-
let i2 = e2.split(".");
|
|
794
|
-
return this._FindRouterSearchBase(i2, t2)._GetNodeFromPathArray(i2, e2);
|
|
795
|
-
}
|
|
796
|
-
printAllFocusRecursive(e2, t2) {
|
|
797
|
-
let i2 = this.NameSpace == J ? "" : this.NameSpace, s2 = t2 + (t2 && t2.length > 0 ? "." : "") + i2;
|
|
798
|
-
for (let t3 in this._ChildMap) {
|
|
799
|
-
let i3 = this._ChildMap[t3];
|
|
800
|
-
if (!e2 || 0 == e2.length || s2.indexOf(e2) >= 0) {
|
|
801
|
-
let e3 = s2 === J ? t3 : s2 + "." + t3;
|
|
802
|
-
console.log(e3, i3);
|
|
803
|
-
}
|
|
804
|
-
i3.RouterDelegate.ref != this && i3.RouterDelegate.ref.printAllFocusRecursive(e2, s2);
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
_FindRouterSearchBase(e2, t2) {
|
|
808
|
-
if (0 == e2[0].length) {
|
|
809
|
-
let t3, i2;
|
|
810
|
-
for (let e3 in this._ChildMap) {
|
|
811
|
-
t3 = this._ChildMap[e3];
|
|
812
|
-
break;
|
|
813
|
-
}
|
|
814
|
-
do {
|
|
815
|
-
i2 = t3, t3 = t3.GetParentPage();
|
|
816
|
-
} while (null != t3);
|
|
817
|
-
return e2.splice(0, 1), i2.RouterDelegate.ref;
|
|
818
|
-
}
|
|
819
|
-
return t2 && t2.AsHub && t2.GetParentPage() ? t2.GetParentPage().RouterDelegate.ref : this;
|
|
820
|
-
}
|
|
821
|
-
_GetNodeFromPathArray(e2, t2) {
|
|
822
|
-
let i2 = 0, s2 = this;
|
|
823
|
-
for (; i2 < e2.length - 1; ) {
|
|
824
|
-
let n3 = false;
|
|
825
|
-
for (let t3 in s2._ChildMap) {
|
|
826
|
-
let o2 = s2._ChildMap[t3].RouterDelegate.ref;
|
|
827
|
-
if (o2 != s2 && o2.NameSpace == e2[i2]) {
|
|
828
|
-
s2 = o2, i2++, n3 = true;
|
|
829
|
-
break;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
if (!n3)
|
|
833
|
-
return void console.error(`Error: no found subpath fname=${t2}`);
|
|
834
|
-
}
|
|
835
|
-
let n2 = e2[i2];
|
|
836
|
-
return s2._ChildMap.hasOwnProperty(n2) ? s2._ChildMap[n2] : void console.error(`Error: no found fname=${t2}`);
|
|
837
|
-
}
|
|
838
|
-
add(e2, t2) {
|
|
839
|
-
if (e2.indexOf(".") >= 0)
|
|
840
|
-
console.error("ERROR: FDiv name can not contains '.'");
|
|
841
|
-
else if (this._ChildMap.hasOwnProperty(e2) && this._ChildMap[e2] !== t2)
|
|
842
|
-
console.error(`ERROR: FDiv router branch name duplicated:[${e2}]`);
|
|
843
|
-
else if (this._ChildMap[e2] = t2, this._FocusNameBeforeMount)
|
|
844
|
-
if ("string" == typeof this._FocusNameBeforeMount)
|
|
845
|
-
this._FocusNameBeforeMount == e2 && t2.RouterDelegate.ref.focusBeforeMount(this._FocusNameBeforeMount, false, this._BeforeMountStack);
|
|
846
|
-
else {
|
|
847
|
-
this._FocusNameBeforeMount[0] == e2 && t2.RouterDelegate.ref.focusBeforeMount(this._FocusNameBeforeMount.slice(1), false, this._BeforeMountStack);
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
remove(e2, t2, i2, s2) {
|
|
851
|
-
let n2 = this._ChildMap[e2];
|
|
852
|
-
n2 && n2 == t2 && (delete this._ChildMap[e2], n2.OnRemoveFromTree()), this._FocusNodeName == e2 && i2 && (s2 || (this._FocusNodeName = i2));
|
|
853
|
-
}
|
|
854
|
-
rename(e2, t2) {
|
|
855
|
-
if (!this._ChildMap.hasOwnProperty(e2))
|
|
856
|
-
return void console.error(`ERROR: alter name failed ${e2}->${t2}`);
|
|
857
|
-
let i2 = this._ChildMap[e2];
|
|
858
|
-
delete this._ChildMap[e2], this.add(t2, i2), this._FocusNodeName == e2 && (this._FocusNodeName = t2);
|
|
859
|
-
}
|
|
860
|
-
clearChildFocus() {
|
|
861
|
-
this._FocusNodeName = null, this._FocusNameBeforeMount = null;
|
|
862
|
-
}
|
|
863
|
-
hasPendingFocusRequest() {
|
|
864
|
-
return !this._FocusNameBeforeMount;
|
|
865
|
-
}
|
|
866
|
-
focusBeforeMount(e2, t2, i2) {
|
|
867
|
-
R && !i2 && console.error(M, `Error: found debug info missing from ${new Error("simulate-stack").stack}`);
|
|
868
|
-
let s2 = false;
|
|
869
|
-
if ("string" == typeof e2) {
|
|
870
|
-
if (!e2.includes(".")) {
|
|
871
|
-
s2 = true;
|
|
872
|
-
let n2 = this._ChildMap[e2];
|
|
873
|
-
if (this._FocusNodeName = e2, n2) {
|
|
874
|
-
this._FocusNameBeforeMount = null, this._BeforeMountStack = i2, n2.Focus(!t2);
|
|
875
|
-
let e3 = n2.GetFocusChild();
|
|
876
|
-
for (; e3; ) {
|
|
877
|
-
let t3 = e3.GetFocusChild();
|
|
878
|
-
if (!t3) {
|
|
879
|
-
this._FocusNodeName = e3.BranchName;
|
|
880
|
-
break;
|
|
881
|
-
}
|
|
882
|
-
e3 = t3;
|
|
883
|
-
}
|
|
884
|
-
return R && A(e3 ?? n2, i2), n2.RouterDelegate.ref != this && n2.RouterDelegate.ref.clearChildFocus(), true;
|
|
885
|
-
}
|
|
886
|
-
return this._FocusNameBeforeMount = e2, this._BeforeMountStack = i2, false;
|
|
887
|
-
}
|
|
888
|
-
console.error("error: name contain .");
|
|
889
|
-
} else if ("object" == typeof e2 && Array.isArray(e2) && e2.length > 0) {
|
|
890
|
-
if (s2 = true, 1 == e2.length)
|
|
891
|
-
return this.focusBeforeMount(e2[0], t2, i2);
|
|
892
|
-
{
|
|
893
|
-
let s3 = e2[0], n2 = this._ChildMap[s3];
|
|
894
|
-
return this._FocusNodeName = s3, n2 ? n2.RouterDelegate.ref.focusBeforeMount(e2.slice(1), t2, i2) : (this._FocusNameBeforeMount = e2, this._BeforeMountStack = i2, false);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
return s2 || console.error("illegal name param", e2), false;
|
|
898
|
-
}
|
|
899
|
-
focus(e2, t2, i2) {
|
|
900
|
-
let s2 = this.focusBeforeMount(e2, t2, i2);
|
|
901
|
-
return s2 || console.log("No found branch:" + e2), s2;
|
|
902
|
-
}
|
|
903
|
-
forEach(e2) {
|
|
904
|
-
for (let t2 in this._ChildMap)
|
|
905
|
-
e2(this._ChildMap[t2], t2, this._ChildMap);
|
|
906
|
-
}
|
|
907
|
-
printNodes() {
|
|
908
|
-
console.log(this._ChildMap);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
class U extends k.PageBase {
|
|
912
|
-
constructor(e2) {
|
|
913
|
-
super(e2), this._OnKeyDown = null, this._OnKeyUp = null, this._OnFocus = null, this._OnBlur = null, this._DispatchKeyDown = null, this._DispatchKeyUp = null, this._OnCustomEvent = null, this._DKeyDownProxy = void 0, this._DKeyUpProxy = void 0, this._Mounted = false, this._MountWaitingList = null, this.AsHub = false, this.InterfaceHub = null, this._TmpRouter = null, this._AutoShow = null, this.BranchName = e2, this.RouterDelegate = { ref: null }, this._TmpRouter = null, this._OriginDispatchKeyDown = this._OriginDispatchKeyDown.bind(this), this._OriginDispatchKeyUp = this._OriginDispatchKeyUp.bind(this), this._AutoShow = false;
|
|
914
|
-
}
|
|
915
|
-
async waitMounted() {
|
|
916
|
-
if (this._Mounted)
|
|
917
|
-
return;
|
|
918
|
-
let e2 = this;
|
|
919
|
-
return new Promise((t2, i2) => {
|
|
920
|
-
e2._MountWaitingList || (e2._MountWaitingList = []), e2._MountWaitingList.push(t2);
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
updateMountState() {
|
|
924
|
-
this._Mounted = true;
|
|
925
|
-
let e2 = this.SubPages;
|
|
926
|
-
for (let t2 in e2)
|
|
927
|
-
e2[t2].updateMountState();
|
|
928
|
-
if (this._MountWaitingList && this._MountWaitingList.length > 0) {
|
|
929
|
-
for (const e3 of this._MountWaitingList)
|
|
930
|
-
e3();
|
|
931
|
-
this._MountWaitingList = null;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
getHub() {
|
|
935
|
-
return this.InterfaceHub || (this.InterfaceHub = new _(true), this.InterfaceHub.RouterDelegate = this.RouterDelegate), this.InterfaceHub;
|
|
936
|
-
}
|
|
937
|
-
setHub(e2) {
|
|
938
|
-
this.RouterDelegate.ref ? console.error("Error: hub is already setted.") : (this.RouterDelegate.ref = e2.RouterDelegate.ref, this.AsHub = true);
|
|
939
|
-
}
|
|
940
|
-
_UseParentRouter(e2) {
|
|
941
|
-
this.RouterDelegate = e2, this.InterfaceHub && (this.InterfaceHub.RouterDelegate = e2);
|
|
942
|
-
}
|
|
943
|
-
routerAdd(e2, t2) {
|
|
944
|
-
t2.RouterDelegate.ref || t2._UseParentRouter(this.RouterDelegate), this.RouterDelegate.ref || (this.RouterDelegate.ref = new W(true)), this.RouterDelegate.ref.add(e2, t2);
|
|
945
|
-
}
|
|
946
|
-
routerRenameChild(e2, t2) {
|
|
947
|
-
this.RouterDelegate.ref.rename(e2, t2);
|
|
948
|
-
}
|
|
949
|
-
routerUnbind(e2, t2) {
|
|
950
|
-
let i2;
|
|
951
|
-
this.AsHub ? this.GetParentPage() && (i2 = this.GetParentPage().RouterDelegate.ref) : i2 = this.RouterDelegate.ref, i2 && i2.remove(this.BranchName, this, e2, t2), this.RouterDelegate = { ref: null };
|
|
952
|
-
}
|
|
953
|
-
setBranchName(e2) {
|
|
954
|
-
if (e2 === this.BranchName)
|
|
955
|
-
return;
|
|
956
|
-
let t2 = this.BranchName;
|
|
957
|
-
this.BranchName = e2, this.PageName = e2, this._ParentPage && this._ParentPage.routerRenameChild(t2, e2);
|
|
958
|
-
}
|
|
959
|
-
static safeCallback(e2) {
|
|
960
|
-
return e2 && e2 instanceof Function ? function(...t2) {
|
|
961
|
-
try {
|
|
962
|
-
return e2(...t2);
|
|
963
|
-
} catch (t3) {
|
|
964
|
-
console.error("FocusNode: callback error", e2.name, t3);
|
|
965
|
-
}
|
|
966
|
-
} : null;
|
|
967
|
-
}
|
|
968
|
-
setOnKeyDown(e2) {
|
|
969
|
-
this._OnKeyDown = U.safeCallback(e2);
|
|
970
|
-
}
|
|
971
|
-
setOnKeyUp(e2) {
|
|
972
|
-
this._OnKeyUp = U.safeCallback(e2);
|
|
973
|
-
}
|
|
974
|
-
setOnFocus(e2) {
|
|
975
|
-
this._OnFocus = U.safeCallback(e2);
|
|
976
|
-
}
|
|
977
|
-
setOnBlur(e2) {
|
|
978
|
-
this._OnBlur = U.safeCallback(e2);
|
|
979
|
-
}
|
|
980
|
-
setDispatchKeyUp(e2) {
|
|
981
|
-
this._DispatchKeyUp = U.safeCallback(e2);
|
|
982
|
-
}
|
|
983
|
-
setDispatchKeyDown(e2) {
|
|
984
|
-
this._DispatchKeyDown = U.safeCallback(e2);
|
|
985
|
-
}
|
|
986
|
-
setOnCustomEvent(e2) {
|
|
987
|
-
this._OnCustomEvent = U.safeCallback(e2);
|
|
988
|
-
}
|
|
989
|
-
setDispatchKeyProxy(e2, t2) {
|
|
990
|
-
this._DKeyDownProxy = U.safeCallback(e2), this._DKeyUpProxy = U.safeCallback(t2);
|
|
991
|
-
}
|
|
992
|
-
requestFocus(e2) {
|
|
993
|
-
let t2 = null;
|
|
994
|
-
R && (t2 = { askName: this.BranchName, deepToChild: e2, from: "requestFocus", stack: j ? new Error("simulate-stack").stack : null }), this.requestFocusInner(e2, t2);
|
|
995
|
-
}
|
|
996
|
-
ReturnFocusToParent() {
|
|
997
|
-
if (this.IsFocus()) {
|
|
998
|
-
let e2 = this.GetParentPage();
|
|
999
|
-
if (e2) {
|
|
1000
|
-
const t2 = e2.BranchName;
|
|
1001
|
-
let i2 = null;
|
|
1002
|
-
R && (i2 = { askName: t2, deepToChild: false, from: "returnFocusToParent", stack: j ? new Error("simulate-stack").stack : null }), e2.RouterDelegate.ref.focus(t2, false, i2);
|
|
1003
|
-
}
|
|
1004
|
-
} else
|
|
1005
|
-
super.ReturnFocusToParent();
|
|
1006
|
-
}
|
|
1007
|
-
requestFocusInner(e2, t2) {
|
|
1008
|
-
let i2 = this.RouterDelegate.ref;
|
|
1009
|
-
return this.AsHub && this.GetParentPage() && (i2 = this.GetParentPage().RouterDelegate.ref), i2 ? i2.focus(this.BranchName, e2, t2) : (console.error("error: lost router"), false);
|
|
1010
|
-
}
|
|
1011
|
-
OnKeyDown(e2) {
|
|
1012
|
-
return !!this._OnKeyDown && this._OnKeyDown(e2);
|
|
1013
|
-
}
|
|
1014
|
-
OnKeyUp(e2) {
|
|
1015
|
-
return !!this._OnKeyUp && this._OnKeyUp(e2);
|
|
1016
|
-
}
|
|
1017
|
-
OnCustomEvent(e2) {
|
|
1018
|
-
return !!this._OnCustomEvent && this._OnCustomEvent(e2);
|
|
1019
|
-
}
|
|
1020
|
-
bubbleCustomEvent(e2) {
|
|
1021
|
-
this.BubbleCustomEvent(e2);
|
|
1022
|
-
}
|
|
1023
|
-
dispatchKeyDown(e2) {
|
|
1024
|
-
return this.DispatchKeyDown(e2);
|
|
1025
|
-
}
|
|
1026
|
-
DispatchKeyDown(e2) {
|
|
1027
|
-
return this._DKeyDownProxy ? this._DKeyDownProxy(e2, this._OriginDispatchKeyDown) : this._OriginDispatchKeyDown(e2);
|
|
1028
|
-
}
|
|
1029
|
-
_OriginDispatchKeyDown(e2) {
|
|
1030
|
-
let t2 = false;
|
|
1031
|
-
return this._DispatchKeyDown && (t2 = this._DispatchKeyDown(e2)), !!t2 || super.DispatchKeyDown(e2);
|
|
1032
|
-
}
|
|
1033
|
-
dispatchKeyUp(e2) {
|
|
1034
|
-
return this.DispatchKeyUp(e2);
|
|
1035
|
-
}
|
|
1036
|
-
DispatchKeyUp(e2) {
|
|
1037
|
-
return this.__DKeyUpProxy ? this.__DKeyUpProxy(e2, this._OriginDispatchKeyUp) : this._OriginDispatchKeyUp(e2);
|
|
1038
|
-
}
|
|
1039
|
-
_OriginDispatchKeyUp(e2) {
|
|
1040
|
-
let t2 = false;
|
|
1041
|
-
return this._DispatchKeyUp && (t2 = this._DispatchKeyUp(e2)), !!t2 || super.DispatchKeyUp(e2);
|
|
1042
|
-
}
|
|
1043
|
-
attachToActivity(e2, t2) {
|
|
1044
|
-
this.AttachToActivity(e2, t2);
|
|
1045
|
-
}
|
|
1046
|
-
AttachToActivity(e2, t2) {
|
|
1047
|
-
super.SetParent(e2, t2);
|
|
1048
|
-
}
|
|
1049
|
-
setParent(e2) {
|
|
1050
|
-
this.SetParent(e2);
|
|
1051
|
-
}
|
|
1052
|
-
SetParent(e2) {
|
|
1053
|
-
if (null != e2 && (super.SetParent(e2, null), this._ParentPage._Mounted && (this.updateMountState(), V()), e2 instanceof U)) {
|
|
1054
|
-
if (this.RouterDelegate.ref && this.RouterDelegate.ref._IsTemp) {
|
|
1055
|
-
let t2 = this.RouterDelegate.ref;
|
|
1056
|
-
this.RouterDelegate.ref = null, t2.forEach((t3, i2) => {
|
|
1057
|
-
e2.routerAdd(i2, t3);
|
|
1058
|
-
});
|
|
1059
|
-
}
|
|
1060
|
-
e2.routerAdd(this.BranchName, this);
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
focus(e2) {
|
|
1064
|
-
this.Focus(e2);
|
|
1065
|
-
}
|
|
1066
|
-
Focus(e2) {
|
|
1067
|
-
if (!this._Mounted)
|
|
1068
|
-
return U.sFocusMemos.push({ obj: this, bcf: e2 }), void console.log("page base tree not build, cache focus");
|
|
1069
|
-
super.Focus(e2);
|
|
1070
|
-
}
|
|
1071
|
-
OnFocus() {
|
|
1072
|
-
this._OnFocus && this._OnFocus();
|
|
1073
|
-
}
|
|
1074
|
-
OnBlur() {
|
|
1075
|
-
U.sLastFocus = this, this._OnBlur && this._OnBlur();
|
|
1076
|
-
}
|
|
1077
|
-
onUnMount(e2) {
|
|
1078
|
-
U.sLastFocus == this && (U.sLastFocus = null);
|
|
1079
|
-
let t2 = this.IsFocus();
|
|
1080
|
-
if (R && t2) {
|
|
1081
|
-
let t3 = this.GetParentPage();
|
|
1082
|
-
if (t3) {
|
|
1083
|
-
let i3 = null;
|
|
1084
|
-
i3 = { askName: t3.BranchName, deepToChild: false, from: e2 ? "deactive" : "unmount", stack: j ? new Error("simulate-stack").stack : null }, A(t3, i3);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
let i2 = this.GetParentPage();
|
|
1088
|
-
i2 && i2.RemoveSubPage(this), this.ClearSubPages(), this.routerUnbind(i2?.BranchName, e2), this._Mounted = false;
|
|
1089
|
-
}
|
|
1090
|
-
getFullName() {
|
|
1091
|
-
let e2 = this, t2 = [this.RouterDelegate.ref.NameSpace];
|
|
1092
|
-
this.AsHub || t2.push(this.BranchName);
|
|
1093
|
-
let i2 = this.RouterDelegate.ref;
|
|
1094
|
-
do {
|
|
1095
|
-
if (e2 = e2.GetParentPage(), t2[0] == J)
|
|
1096
|
-
break;
|
|
1097
|
-
e2 && e2.RouterDelegate.ref != i2 && (i2 = e2.RouterDelegate.ref, t2.unshift(i2.NameSpace));
|
|
1098
|
-
} while (e2);
|
|
1099
|
-
return t2[0] == J ? t2.shift() : console.error("ERROR: missing app root"), t2.join(".");
|
|
1100
|
-
}
|
|
1101
|
-
getNodeByName(e2) {
|
|
1102
|
-
return this.RouterDelegate.ref.getNodeByName(e2, this);
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
U.sFocusMemos = [], U.sLastFocus = null, U.sRootPageNode = null;
|
|
1106
|
-
let V = () => {
|
|
1107
|
-
let e2 = U.sFocusMemos.length;
|
|
1108
|
-
if (e2 > 0) {
|
|
1109
|
-
let t2 = U.sFocusMemos;
|
|
1110
|
-
U.sFocusMemos = [];
|
|
1111
|
-
for (let i2 = 0; i2 < e2; i2++)
|
|
1112
|
-
t2[i2].obj.Focus(t2[i2].bcf);
|
|
1113
|
-
}
|
|
1114
|
-
}, z = {};
|
|
1115
|
-
class G {
|
|
1116
|
-
constructor(e2, t2, i2) {
|
|
1117
|
-
this._Element = i2, z.hasOwnProperty(e2) && console.error(`Warn: FDivRoot duplicate name=${e2}`), z[e2] = this, this._DoInit(t2);
|
|
1118
|
-
}
|
|
1119
|
-
_DoInit(e2) {
|
|
1120
|
-
let t2 = this._Element.FocusNodeRef;
|
|
1121
|
-
this._Element.setAttribute("new-namespace", "__AppRoot__"), e2 && t2.setDispatchKeyProxy(e2.keyDown, e2.keyUp), window.JsView ? t2.attachToActivity(window.JsvCode.ForgeHandles.RootActivity, window.JsvCode.ForgeHandles.RootView) : (window.addEventListener("keydown", (e3) => {
|
|
1122
|
-
var i2 = document.activeElement?.tagName;
|
|
1123
|
-
i2 && "input" === i2.toLowerCase() || (t2.dispatchKeyDown(e3), e3.preventDefault && e3.preventDefault());
|
|
1124
|
-
}), window.addEventListener("keyup", (e3) => {
|
|
1125
|
-
var i2 = document.activeElement?.tagName;
|
|
1126
|
-
i2 && "input" === i2.toLowerCase() || (t2.dispatchKeyUp(e3), e3.preventDefault && e3.preventDefault());
|
|
1127
|
-
}));
|
|
1128
|
-
}
|
|
1129
|
-
getElement() {
|
|
1130
|
-
return this._Element;
|
|
1131
|
-
}
|
|
1132
|
-
getHub() {
|
|
1133
|
-
return this._Element.jsvGetHub();
|
|
1134
|
-
}
|
|
1135
|
-
onMounted() {
|
|
1136
|
-
this._Element.FocusNodeRef.updateMountState(), V();
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
class K extends O {
|
|
1140
|
-
constructor() {
|
|
1141
|
-
super(O.JsvTagName.Image);
|
|
1142
|
-
}
|
|
1143
|
-
setAttribute(e2, t2) {
|
|
1144
|
-
if ("src" === e2) {
|
|
1145
|
-
t2 = new C(t2).href, this.jsvClientSizeStore = {};
|
|
1146
|
-
}
|
|
1147
|
-
super.setAttribute(e2, t2), this.jsvNativeId && "src" === e2 && x.Dom.SetElementAttribute(this.jsvNativeId, e2, t2);
|
|
1148
|
-
}
|
|
1149
|
-
jsvOnEvent(e2, ...i2) {
|
|
1150
|
-
let s2;
|
|
1151
|
-
super.jsvOnEvent(e2, ...i2), "load" == e2 && (s2 = new t(e2), s2.target = this), s2 && this.dispatchEvent(s2);
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
class H extends O {
|
|
1155
|
-
constructor() {
|
|
1156
|
-
super(O.JsvTagName.Link);
|
|
1157
|
-
}
|
|
1158
|
-
setAttribute(e2, t2) {
|
|
1159
|
-
this[e2] = t2;
|
|
1160
|
-
}
|
|
1161
|
-
jsvLoadResource() {
|
|
1162
|
-
let e2 = false, t2 = null;
|
|
1163
|
-
if (null != this.href) {
|
|
1164
|
-
var i2 = new C(this.href);
|
|
1165
|
-
console.log("Ignore to load link from url=" + i2.href), e2 = true;
|
|
1166
|
-
} else
|
|
1167
|
-
console.warn("Failed to load link, href is not exists."), t2 = "NoSrc";
|
|
1168
|
-
this.jsvOnLoadResult(e2, t2);
|
|
1169
|
-
}
|
|
1170
|
-
jsvOnLoadResult(e2, i2) {
|
|
1171
|
-
if (console.log("Load link result: isSuccess:" + e2 + ", errCode:" + i2), e2) {
|
|
1172
|
-
if (this.onload) {
|
|
1173
|
-
let e3 = new t("load");
|
|
1174
|
-
this.onload(e3);
|
|
1175
|
-
}
|
|
1176
|
-
} else
|
|
1177
|
-
this.onerror && this.onerror({ type: "jsvErr_" + i2, target: this });
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
class $ extends O {
|
|
1181
|
-
constructor() {
|
|
1182
|
-
super(O.JsvTagName.Script);
|
|
1183
|
-
}
|
|
1184
|
-
setAttribute(e2, t2) {
|
|
1185
|
-
this[e2] = t2;
|
|
1186
|
-
}
|
|
1187
|
-
jsvLoadResource() {
|
|
1188
|
-
if (null != this.src) {
|
|
1189
|
-
var e2 = new C(this.src);
|
|
1190
|
-
console.log("Load script with url=" + e2.href);
|
|
1191
|
-
var t2 = this;
|
|
1192
|
-
window.JsView.runJsWithUrl(e2.href, false, (e3, i2) => {
|
|
1193
|
-
t2.jsvOnLoadResult(e3, i2);
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
jsvOnLoadResult(e2, i2) {
|
|
1198
|
-
if (console.log("Load script result: isSuccess:" + e2 + ", errCode:" + i2), e2) {
|
|
1199
|
-
if (this.onload) {
|
|
1200
|
-
let e3 = new t("load");
|
|
1201
|
-
this.onload(e3);
|
|
1202
|
-
}
|
|
1203
|
-
} else
|
|
1204
|
-
this.onerror && this.onerror({ type: "jsvErr_" + i2, target: this });
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
class q extends O {
|
|
1208
|
-
constructor() {
|
|
1209
|
-
super(O.JsvTagName.Style), this.jsvAttrStore = { left: 0, top: 0, width: 0, height: 0 };
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
class X extends O {
|
|
1213
|
-
constructor() {
|
|
1214
|
-
super(O.JsvTagName.Svg);
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
class Y extends N {
|
|
1218
|
-
constructor(e2) {
|
|
1219
|
-
super(N.TEXT_NODE), this.textContent = e2;
|
|
1220
|
-
}
|
|
1221
|
-
get nodeValue() {
|
|
1222
|
-
return this.textContent;
|
|
1223
|
-
}
|
|
1224
|
-
set nodeValue(e2) {
|
|
1225
|
-
this.textContent = e2, this.parentNode && (this.parentNode.textContent = this.textContent);
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
let Z = 1;
|
|
1229
|
-
class Q extends O {
|
|
1230
|
-
constructor() {
|
|
1231
|
-
super(O.JsvTagName.JsvFDiv), this.FocusNodeRef = new U("unnamed-" + Z++), this.hubRef = void 0;
|
|
1232
|
-
}
|
|
1233
|
-
setAttribute(e2, t2) {
|
|
1234
|
-
if (e2) {
|
|
1235
|
-
if ("fname" === e2)
|
|
1236
|
-
t2 && this.FocusNodeRef.setBranchName(t2);
|
|
1237
|
-
else if ("new-namespace" === e2 && "" !== t2 && !this.hubRef) {
|
|
1238
|
-
let e3 = new _(false, t2);
|
|
1239
|
-
this.hubRef = e3, this.FocusNodeRef.setHub(e3), this.FocusNodeRef.setBranchName(t2);
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
removeAttribute(e2) {
|
|
1244
|
-
}
|
|
1245
|
-
jsvGetHub() {
|
|
1246
|
-
return this.hubRef;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
class ee extends N {
|
|
1250
|
-
constructor() {
|
|
1251
|
-
super(N.DOCUMENT_NODE), this.location = window.location, this.rootElement = new B(), this.rootElement.ownerDocument = this, this.rootElement.id = "root", x.Dom.BindElementToRootView(this.rootElement.jsvNativeId), this.activeElement = this.rootElement, this.head = null;
|
|
1252
|
-
}
|
|
1253
|
-
createComment(e2) {
|
|
1254
|
-
return new P(e2);
|
|
1255
|
-
}
|
|
1256
|
-
createElement(e2) {
|
|
1257
|
-
switch (e2 = e2.toUpperCase()) {
|
|
1258
|
-
case O.JsvTagName.Anchor:
|
|
1259
|
-
return new L();
|
|
1260
|
-
case O.JsvTagName.Div:
|
|
1261
|
-
return new B();
|
|
1262
|
-
case O.JsvTagName.Image:
|
|
1263
|
-
return new K();
|
|
1264
|
-
case O.JsvTagName.Link:
|
|
1265
|
-
return new H();
|
|
1266
|
-
case O.JsvTagName.Script:
|
|
1267
|
-
return new $();
|
|
1268
|
-
case O.JsvTagName.Style:
|
|
1269
|
-
return new q();
|
|
1270
|
-
case O.JsvTagName.Svg:
|
|
1271
|
-
return new X();
|
|
1272
|
-
case O.JsvTagName.JsvFDiv:
|
|
1273
|
-
return new Q();
|
|
1274
|
-
case O.JsvTagName.IFrame:
|
|
1275
|
-
console.error("Unsupported element: " + e2 + ". Your vue compilation may may have failed, please check it first.");
|
|
1276
|
-
}
|
|
1277
|
-
if ("TEMPLATE" == e2)
|
|
1278
|
-
return {};
|
|
1279
|
-
throw new TypeError("Unimplemented element: " + e2);
|
|
1280
|
-
}
|
|
1281
|
-
createEvent(e2) {
|
|
1282
|
-
return "CUSTOMEVENT" === (e2 = e2.toUpperCase()) ? new s(e2) : new t(e2);
|
|
1283
|
-
}
|
|
1284
|
-
createTextNode(e2) {
|
|
1285
|
-
return new Y(e2);
|
|
1286
|
-
}
|
|
1287
|
-
getElementById(e2) {
|
|
1288
|
-
if ("root" === e2 || "app" === e2)
|
|
1289
|
-
return this.rootElement;
|
|
1290
|
-
throw new DOMException("Failed to get element by id, id=" + e2 + " is UNIMPLEMENTED.");
|
|
1291
|
-
}
|
|
1292
|
-
getElementsByTagName(e2) {
|
|
1293
|
-
if ((e2 = e2.toUpperCase()) === O.JsvTagName.Head)
|
|
1294
|
-
return [this.head];
|
|
1295
|
-
if (e2 === O.JsvTagName.Link || e2 === O.JsvTagName.Script || e2 === O.JsvTagName.Style)
|
|
1296
|
-
return [];
|
|
1297
|
-
throw new DOMException("Failed to get element by name, name=" + e2 + " is UNIMPLEMENTED.");
|
|
1298
|
-
}
|
|
1299
|
-
querySelector(e2) {
|
|
1300
|
-
if ("root" === e2 || "#app" === e2)
|
|
1301
|
-
return this.rootElement;
|
|
1302
|
-
if ("head" === e2)
|
|
1303
|
-
return this.head;
|
|
1304
|
-
if ("base" === e2)
|
|
1305
|
-
return null;
|
|
1306
|
-
if ("title" === e2)
|
|
1307
|
-
return null;
|
|
1308
|
-
if (e2.startsWith("style[") && e2.endsWith("]"))
|
|
1309
|
-
return null;
|
|
1310
|
-
throw new DOMException("Failed to query selector, selectors=" + e2 + " is UNIMPLEMENTED.");
|
|
1311
|
-
}
|
|
1312
|
-
querySelectorAll(e2) {
|
|
1313
|
-
return [];
|
|
1314
|
-
}
|
|
1315
|
-
jsvInitFDivRoot(e2, t2, i2) {
|
|
1316
|
-
if (!i2) {
|
|
1317
|
-
let e3 = document.createElement("fdiv");
|
|
1318
|
-
this.rootElement.appendChild(e3), this.rootElement = e3, i2 = this.rootElement;
|
|
1319
|
-
}
|
|
1320
|
-
return new G(e2, t2, i2);
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
class te extends O {
|
|
1324
|
-
constructor() {
|
|
1325
|
-
super(O.JsvTagName.Head);
|
|
1326
|
-
}
|
|
1327
|
-
appendChild(e2) {
|
|
1328
|
-
super.appendChild(e2), (e2 instanceof H || e2 instanceof $) && e2.jsvLoadResource();
|
|
1329
|
-
}
|
|
1330
|
-
removeChild(e2) {
|
|
1331
|
-
super.removeChild(e2);
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
class ie {
|
|
1335
|
-
constructor() {
|
|
1336
|
-
this.ready = false, this.callbacks = [];
|
|
1337
|
-
}
|
|
1338
|
-
listenToReady(e2) {
|
|
1339
|
-
this.ready ? e2?.() : this.callbacks.push(e2);
|
|
1340
|
-
}
|
|
1341
|
-
dataReady() {
|
|
1342
|
-
this.ready = true;
|
|
1343
|
-
for (let e2 of this.callbacks)
|
|
1344
|
-
e2?.();
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
class se extends ie {
|
|
1348
|
-
constructor() {
|
|
1349
|
-
super(), this.TextureManager = null, this.RootActivity = null, this.RootView = null;
|
|
1350
|
-
}
|
|
1351
|
-
setHandles(e2, t2, i2) {
|
|
1352
|
-
this.TextureManager = e2, this.RootActivity = i2, this.RootView = t2, this.dataReady();
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
let ne = "@keyframes";
|
|
1356
|
-
class oe {
|
|
1357
|
-
constructor(e2) {
|
|
1358
|
-
this._AnchorTag = e2, this._NamesCache = /* @__PURE__ */ new Set();
|
|
1359
|
-
}
|
|
1360
|
-
insertRule(e2) {
|
|
1361
|
-
let t2 = this.getName(e2);
|
|
1362
|
-
this._NamesCache.has(t2) && console.warn(`Warn: keyframe replace of name ${t2}`), this._NamesCache.add(t2), x.Dom.InsertKeyFrame(t2, e2);
|
|
1363
|
-
}
|
|
1364
|
-
hasRule(e2) {
|
|
1365
|
-
return this._NamesCache.has(e2);
|
|
1366
|
-
}
|
|
1367
|
-
removeRule(e2) {
|
|
1368
|
-
this._NamesCache.has(e2) ? (this._NamesCache.delete(e2), x.Dom.RemoveKeyFrame(e2)) : console.error(`Error: keyFrame(${e2}) is not exist.`);
|
|
1369
|
-
}
|
|
1370
|
-
removeMultiRules(e2) {
|
|
1371
|
-
for (let t2 of e2)
|
|
1372
|
-
this.removeRule(t2);
|
|
1373
|
-
}
|
|
1374
|
-
getName(e2) {
|
|
1375
|
-
let t2 = e2.indexOf(ne) + 10, i2 = e2.indexOf("{");
|
|
1376
|
-
return e2.substring(t2, i2).trim();
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
let re = null;
|
|
1380
|
-
function ae(e2) {
|
|
1381
|
-
return re || (re = { global: new oe("global") }), re.global;
|
|
1382
|
-
}
|
|
1383
|
-
class le {
|
|
1384
|
-
static EnsureGlobalEnv(e2, t2) {
|
|
1385
|
-
const i2 = window.navigator?.userAgent?.toLowerCase();
|
|
1386
|
-
window.jsvInAndroidWebView = i2?.indexOf("android") >= 0, le.EnsureGlobalJsvCode(e2, t2), O.JsvEnableEventListener(), S.JsvDeclarePrototype();
|
|
1387
|
-
}
|
|
1388
|
-
static EnsureGlobalJsvCode(e2, t2) {
|
|
1389
|
-
window.JsvCode.Dom || (window.JsvCode.Dom = {}), window.JsvCode.Media || (window.JsvCode.Media = {}), window.JsvCode.Dom.PlatformBridge || (window.JsvCode.Dom.PlatformBridge = e2), window.JsvCode.Media.PlatformBridge || (window.JsvCode.Media.PlatformBridge = t2), window.JsvCode.Dom.DeclareStyleSheets || (window.JsvCode.Dom.DeclareStyleSheets = x.Dom.DeclareStyleSheets), window.JsvCode.Dom.UndeclareStyleSheets || (window.JsvCode.Dom.UndeclareStyleSheets = x.Dom.UndeclareStyleSheets), window.JsvCode.Dom.getKeyFrameGroup || (window.JsvCode.Dom.getKeyFrameGroup = ae), window.JsvCode.ForgeHandles || (window.JsvCode.ForgeHandles = new se());
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
class ce {
|
|
1393
|
-
static SetLevel(e2) {
|
|
1394
|
-
switch (ce.E = ce.W = ce.I = ce.D = function() {
|
|
1395
|
-
}, e2) {
|
|
1396
|
-
case ce.Level.Verbose:
|
|
1397
|
-
ce.V = console.debug.bind(console);
|
|
1398
|
-
case ce.Level.Debug:
|
|
1399
|
-
ce.D = console.debug.bind(console);
|
|
1400
|
-
case ce.Level.Info:
|
|
1401
|
-
ce.I = console.info.bind(console);
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
ce.E = console.error.bind(console), ce.W = console.warn.bind(console), ce.I = console.info.bind(console), ce.D = function() {
|
|
1406
|
-
}, ce.V = function() {
|
|
1407
|
-
}, ce.Level = { Error: 0, Warning: 1, Info: 2, Debug: 3, Verbose: 4 };
|
|
1408
|
-
class de {
|
|
1409
|
-
constructor(e2) {
|
|
1410
|
-
this.callback = e2;
|
|
1411
|
-
}
|
|
1412
|
-
observe(e2, t2) {
|
|
1413
|
-
if (!(e2 instanceof N))
|
|
1414
|
-
throw Error("TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type JsView's 'Node'");
|
|
1415
|
-
for (const e3 of Object.keys(t2))
|
|
1416
|
-
"childList" == e3 || console.warn("JsView: only childList config is supported! ignore " + e3);
|
|
1417
|
-
t2.childList && e2.jsvObserveChildChanged(() => {
|
|
1418
|
-
this.callback?.();
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
|
-
disconnect() {
|
|
1422
|
-
this.callback = void 0;
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
class he {
|
|
1426
|
-
constructor() {
|
|
1427
|
-
this.init(), he.Render?.();
|
|
1428
|
-
}
|
|
1429
|
-
init() {
|
|
1430
|
-
k.sRenderBridge.AddWillSwapListener("forgeSwap", () => {
|
|
1431
|
-
x.Dom.RequestSwapAllCachedTasks();
|
|
1432
|
-
}), window.JsvCode.ForgeHandles.setHandles(new k.TextureManager(), null, null);
|
|
1433
|
-
let e2 = null;
|
|
1434
|
-
k.DesignMap && (e2 = k.DesignMap(), k.sRenderBridge.InitScreenBuffer(e2.displayScale, e2.width)), k.DomElementGetter = (e3) => {
|
|
1435
|
-
let t2 = window.JsvCode.Dom.PlatformBridge.JsViewId;
|
|
1436
|
-
return window.JsvCode.Dom.PlatformBridge.GetInstance(t2).forgeElementGetter(e3);
|
|
1437
|
-
};
|
|
1438
|
-
}
|
|
1439
|
-
static SetRender(e2) {
|
|
1440
|
-
he.Render = e2, k.RunApp({});
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
he.Render = void 0;
|
|
1444
|
-
class ue extends q {
|
|
1445
|
-
constructor() {
|
|
1446
|
-
super(), this.jsvBrowserElement = window.JsvCode.Dom.BrowserDocument.createElement(q.JsvTagName.Style);
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
class me extends te {
|
|
1450
|
-
constructor() {
|
|
1451
|
-
super();
|
|
1452
|
-
}
|
|
1453
|
-
appendChild(e2) {
|
|
1454
|
-
"HTMLLinkElement" == e2.constructor.name || "HTMLScriptElement" == e2.constructor.name ? window.JsvCode.Dom.BrowserDocument.head.appendChild(e2) : e2 instanceof ue ? window.JsvCode.Dom.BrowserDocument.head.appendChild(e2.jsvBrowserElement) : super.appendChild(e2);
|
|
1455
|
-
}
|
|
1456
|
-
removeChild(e2) {
|
|
1457
|
-
"HTMLLinkElement" == e2.constructor.name || "HTMLScriptElement" == e2.constructor.name ? window.JsvCode.Dom.BrowserDocument.head.removeChild(e2) : e2 instanceof ue ? window.JsvCode.Dom.BrowserDocument.head.removeChild(e2.jsvBrowserElement) : super.removeChild(e2);
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
class pe extends ee {
|
|
1461
|
-
constructor() {
|
|
1462
|
-
super(), this.head = new me();
|
|
1463
|
-
}
|
|
1464
|
-
createElement(e2) {
|
|
1465
|
-
switch (e2 = e2.toUpperCase()) {
|
|
1466
|
-
case O.JsvTagName.IFrame:
|
|
1467
|
-
case O.JsvTagName.Link:
|
|
1468
|
-
case O.JsvTagName.Script:
|
|
1469
|
-
return window.JsvCode.Dom.BrowserDocument.createElement(e2);
|
|
1470
|
-
case O.JsvTagName.Style:
|
|
1471
|
-
return new ue();
|
|
1472
|
-
default:
|
|
1473
|
-
return super.createElement(e2);
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
getElementsByTagName(e2) {
|
|
1477
|
-
return e2.toUpperCase() === O.JsvTagName.Head ? window.JsvCode.Dom.BrowserDocument.getElementsByTagName(e2) : super.getElementsByTagName(e2);
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
class fe {
|
|
1481
|
-
static Get(e2) {
|
|
1482
|
-
return fe.ValidStyleMap[e2];
|
|
1483
|
-
}
|
|
1484
|
-
static IsUndefinedOrNumber(e2, t2) {
|
|
1485
|
-
return !!fe.IsUndefined(e2, t2) || ("" === t2 || "number" == typeof t2);
|
|
1486
|
-
}
|
|
1487
|
-
static IsUndefined(e2, t2) {
|
|
1488
|
-
let i2 = void 0 === t2;
|
|
1489
|
-
return i2 && console.error(e2 + " property is undefined!"), i2;
|
|
1490
|
-
}
|
|
1491
|
-
static KeyframesCheck(e2, t2) {
|
|
1492
|
-
fe.IsUndefined(e2, t2) || t2.indexOf("transform") < 0 && t2.indexOf("opacity") < 0 && console.error("keyframes property is only support transform and opacity, value:", t2);
|
|
1493
|
-
}
|
|
1494
|
-
static ObjectFit(e2, t2) {
|
|
1495
|
-
if (fe.IsUndefined(e2, t2))
|
|
1496
|
-
return;
|
|
1497
|
-
const i2 = "fill contain cover none scale-down";
|
|
1498
|
-
i2.indexOf(t2) < 0 && console.error(" objectFit is only support one of string[" + i2 + "]");
|
|
1499
|
-
}
|
|
1500
|
-
static TransitionOtherCheck(e2, t2) {
|
|
1501
|
-
fe.IsUndefined(e2, t2) || console.error(e2 + " property is not support, you can use transition property, e.g. transition='width 2s'");
|
|
1502
|
-
}
|
|
1503
|
-
static TransitionCheck(e2, t2) {
|
|
1504
|
-
fe.IsUndefined(e2, t2) || t2.length > 0 && (t2.indexOf("left") < 0 && t2.indexOf("top") < 0 && t2.indexOf("width") < 0 && t2.indexOf("height") < 0 && t2.indexOf("transform") < 0 || t2.indexOf("all") >= 0) && console.error("transition property's value only support [top, left, width, height, transform] value:", t2);
|
|
1505
|
-
}
|
|
1506
|
-
static TransformCheck(e2, t2) {
|
|
1507
|
-
fe.IsUndefined(e2, t2) || t2.length > 0 && t2.indexOf("translate3d") < 0 && t2.indexOf("scale3d") < 0 && t2.indexOf("rotate3d") < 0 && t2.indexOf("skew") < 0 && console.error("transform property's value only support translate3d、scale3d、rotate3d、skew, value:", t2);
|
|
1508
|
-
}
|
|
1509
|
-
static TransformOriginCheck(e2, t2) {
|
|
1510
|
-
fe.IsUndefined(e2, t2) || t2.length > 0 && t2.indexOf("%") < 0 && t2.indexOf("left") < 0 && t2.indexOf("center") < 0 && t2.indexOf("top") < 0 && t2.indexOf("right") < 0 && t2.indexOf("bottom") < 0 && console.error("transformOrigin property's value only support XX%、left、top、right, bottom:", t2);
|
|
1511
|
-
}
|
|
1512
|
-
static TextOverflowCheck(e2, t2) {
|
|
1513
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1514
|
-
switch (t2) {
|
|
1515
|
-
case "clip":
|
|
1516
|
-
case "ellipsis":
|
|
1517
|
-
break;
|
|
1518
|
-
default:
|
|
1519
|
-
console.error("textOverflow property's value is not support, value:", t2);
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
static WhiteSpaceCheck(e2, t2) {
|
|
1523
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1524
|
-
switch (t2) {
|
|
1525
|
-
case "normal":
|
|
1526
|
-
case "nowrap":
|
|
1527
|
-
case "pre-wrap":
|
|
1528
|
-
break;
|
|
1529
|
-
default:
|
|
1530
|
-
console.error("whiteSpace property's value is not support, value:", t2);
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
static TextAlignCheck(e2, t2) {
|
|
1534
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1535
|
-
switch (t2) {
|
|
1536
|
-
case "left":
|
|
1537
|
-
case "right":
|
|
1538
|
-
case "center":
|
|
1539
|
-
case "start":
|
|
1540
|
-
case "end":
|
|
1541
|
-
break;
|
|
1542
|
-
default:
|
|
1543
|
-
console.error("textAlign property's value is not support, value:", t2);
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
static LineHeightCheck(e2, t2) {
|
|
1547
|
-
if (!fe.IsUndefinedOrNumber(e2, t2))
|
|
1548
|
-
switch (t2) {
|
|
1549
|
-
case "normal":
|
|
1550
|
-
case "inherit":
|
|
1551
|
-
console.error("lineHeight property's value is support number only, value:", t2);
|
|
1552
|
-
break;
|
|
1553
|
-
default:
|
|
1554
|
-
t2.indexOf("%") >= 0 && console.error("lineHeight property's value is support number only, value:", t2);
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
static ColorCheck(e2, t2) {
|
|
1558
|
-
fe.IsUndefined(e2, t2) || fe.CheckColorFormat("Color()", t2);
|
|
1559
|
-
}
|
|
1560
|
-
static VisibilityCheck(e2, t2) {
|
|
1561
|
-
fe.IsUndefined(e2, t2) || "visible" !== t2 && "hidden" !== t2 && "inherit" !== t2 && console.error("visibility property's value is not support, value:", t2);
|
|
1562
|
-
}
|
|
1563
|
-
static DisplayCheck(e2, t2) {
|
|
1564
|
-
fe.IsUndefined(e2, t2) || "block" !== t2 && "inline" !== t2 && "none" !== t2 && "inline-block" !== t2 && "inherit" !== t2 && "" !== t2 && console.error("display property's value is not support, value:", t2);
|
|
1565
|
-
}
|
|
1566
|
-
static OverflowCheck(e2, t2) {
|
|
1567
|
-
fe.IsUndefined(e2, t2) || "visible" !== t2 && "hidden" !== t2 && console.error("overflow property's value is support visible or hidden only, value:", t2);
|
|
1568
|
-
}
|
|
1569
|
-
static TopCheck(e2, t2) {
|
|
1570
|
-
if (!fe.IsUndefinedOrNumber(e2, t2))
|
|
1571
|
-
switch (t2) {
|
|
1572
|
-
case "auto":
|
|
1573
|
-
case "inherit":
|
|
1574
|
-
console.error("top property's value is support number only, value:", t2);
|
|
1575
|
-
break;
|
|
1576
|
-
default:
|
|
1577
|
-
t2.indexOf("%") >= 0 && console.error("top property's value is support number only, value:", t2);
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
static LeftCheck(e2, t2) {
|
|
1581
|
-
if (!fe.IsUndefinedOrNumber(e2, t2))
|
|
1582
|
-
switch (t2) {
|
|
1583
|
-
case "auto":
|
|
1584
|
-
case "inherit":
|
|
1585
|
-
console.error("left property's value is support number only, value:", t2);
|
|
1586
|
-
break;
|
|
1587
|
-
default:
|
|
1588
|
-
t2.indexOf("%") >= 0 && console.error("left property's value is support number only, value:", t2);
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
static HeightCheck(e2, t2) {
|
|
1592
|
-
if (!fe.IsUndefinedOrNumber(e2, t2))
|
|
1593
|
-
switch (t2) {
|
|
1594
|
-
case "auto":
|
|
1595
|
-
case "inherit":
|
|
1596
|
-
console.error("height property's value is support number only, value:", t2);
|
|
1597
|
-
break;
|
|
1598
|
-
default:
|
|
1599
|
-
t2.indexOf("%") >= 0 && console.error("height property's value is support number only, value:", t2);
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
static WidthCheck(e2, t2) {
|
|
1603
|
-
if (!fe.IsUndefinedOrNumber(e2, t2))
|
|
1604
|
-
switch (t2) {
|
|
1605
|
-
case "auto":
|
|
1606
|
-
case "inherit":
|
|
1607
|
-
console.error("width property's value is support number only, value:", t2);
|
|
1608
|
-
break;
|
|
1609
|
-
default:
|
|
1610
|
-
t2.indexOf("%") >= 0 && console.error("width property's value is support number only, value:", t2);
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
static BackfaceVisibility(e2, t2) {
|
|
1614
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1615
|
-
switch (t2) {
|
|
1616
|
-
case "visible":
|
|
1617
|
-
case "hidden":
|
|
1618
|
-
break;
|
|
1619
|
-
default:
|
|
1620
|
-
console.error("backfaceVisibility property's value is support visible/hidden only, value: ", t2);
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
static PerspectiveCheck(e2, t2) {
|
|
1624
|
-
fe.IsUndefined(e2, t2);
|
|
1625
|
-
}
|
|
1626
|
-
static WebkitTextStroke(e2, t2) {
|
|
1627
|
-
if (fe.IsUndefined(e2, t2))
|
|
1628
|
-
return;
|
|
1629
|
-
t2.split(" ").length < 2 && console.error("Error: WebkitTextStroke should format of(width color) such as: '1px rgba(255,255,255,1.0)'");
|
|
1630
|
-
}
|
|
1631
|
-
static ZIndexCheck(e2, t2) {
|
|
1632
|
-
fe.IsUndefined(e2, t2) || isNaN(t2) && console.error("zIndex property's value is support number only, value: ", t2);
|
|
1633
|
-
}
|
|
1634
|
-
static OpacityCheck(e2, t2) {
|
|
1635
|
-
fe.IsUndefined(e2, t2) || (isNaN(t2) || t2 > 1) && console.error("opacity property's value is support number only(0.0 ~ 1.0), value: ", t2);
|
|
1636
|
-
}
|
|
1637
|
-
static FontSizeCheck(e2, t2) {
|
|
1638
|
-
if (!fe.IsUndefinedOrNumber(e2, t2))
|
|
1639
|
-
switch (t2) {
|
|
1640
|
-
case "smaller":
|
|
1641
|
-
case "larger":
|
|
1642
|
-
case "inherit":
|
|
1643
|
-
case "x-small":
|
|
1644
|
-
case "xx-small":
|
|
1645
|
-
case "small":
|
|
1646
|
-
case "large":
|
|
1647
|
-
case "medium":
|
|
1648
|
-
case "x-large":
|
|
1649
|
-
case "xx-large":
|
|
1650
|
-
console.error("fontSize property's value is support number only, value:", t2);
|
|
1651
|
-
break;
|
|
1652
|
-
default:
|
|
1653
|
-
t2.indexOf("%") >= 0 && console.error("fontSize property's value is support number only, value:", t2);
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
static FontWeightCheck(e2, t2) {
|
|
1657
|
-
fe.IsUndefined(e2, t2) || "bold" !== t2 && console.error("fontWeight property's value is support bold only, value:", t2);
|
|
1658
|
-
}
|
|
1659
|
-
static FontStyleCheck(e2, t2) {
|
|
1660
|
-
fe.IsUndefined(e2, t2) || "italic" !== t2 && console.error("fontWeight property's value is support italic only, value:", t2);
|
|
1661
|
-
}
|
|
1662
|
-
static BorderRadiusCheck(e2, t2) {
|
|
1663
|
-
if (fe.IsUndefined(e2, t2))
|
|
1664
|
-
return;
|
|
1665
|
-
let i2 = [t2];
|
|
1666
|
-
"string" == typeof t2 && (i2 = t2.split(" ")), i2.length > 4 && console.error("borderRadius property's value is not support, value:", t2);
|
|
1667
|
-
}
|
|
1668
|
-
static BorderImageWidthCheck(e2, t2) {
|
|
1669
|
-
fe.IsUndefinedOrNumber(e2, t2);
|
|
1670
|
-
}
|
|
1671
|
-
static BorderImageOutsetCheck(e2, t2) {
|
|
1672
|
-
if (fe.IsUndefined(e2, t2))
|
|
1673
|
-
return;
|
|
1674
|
-
t2.split(" ").length > 4 && console.error("borderImageOutsetCheck property's value is not support, value:", t2);
|
|
1675
|
-
}
|
|
1676
|
-
static BorderImageCheck(e2, t2) {
|
|
1677
|
-
fe.IsUndefined(e2, t2) || t2.indexOf("fill") < 0 && console.error("borderImage property's value is not contain fill, e.g. source slice, but value:", t2);
|
|
1678
|
-
}
|
|
1679
|
-
static BackgroundOtherCheck(e2, t2) {
|
|
1680
|
-
console.error(e2 + " property not support, you can use backgroundImage property, e.g. backgroundImage=`url(${iconImgPath})`");
|
|
1681
|
-
}
|
|
1682
|
-
static BackgroundImageCheck(e2, t2) {
|
|
1683
|
-
fe.IsUndefined(e2, t2) || "inherit" == t2 && console.error("backgroundImage property's value is not support, value:", t2);
|
|
1684
|
-
}
|
|
1685
|
-
static BackgroundColorCheck(e2, t2) {
|
|
1686
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1687
|
-
return fe.CheckColorFormat("backgroundColor", t2);
|
|
1688
|
-
}
|
|
1689
|
-
static AnimationCheck(e2, t2) {
|
|
1690
|
-
}
|
|
1691
|
-
static AnimationFillModeCheck(e2, t2) {
|
|
1692
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1693
|
-
switch (t2) {
|
|
1694
|
-
case "none":
|
|
1695
|
-
case "forwards":
|
|
1696
|
-
break;
|
|
1697
|
-
case "backwards":
|
|
1698
|
-
console.error("animationFillMode 'backwards' is not supported yet.");
|
|
1699
|
-
break;
|
|
1700
|
-
case "both":
|
|
1701
|
-
console.error("animationFillMode 'both' is not supported yet.");
|
|
1702
|
-
break;
|
|
1703
|
-
default:
|
|
1704
|
-
console.error("animationFillMode property value is not valid", t2);
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
static AnimationOtherNotSupport(e2, t2) {
|
|
1708
|
-
console.error(e2 + " property is not support, you can use animation property, e.g. animation='mymove 5s infinite'");
|
|
1709
|
-
}
|
|
1710
|
-
static TransformStyleCheck(e2, t2) {
|
|
1711
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1712
|
-
switch (t2) {
|
|
1713
|
-
case "flat":
|
|
1714
|
-
case "preserve-3d":
|
|
1715
|
-
break;
|
|
1716
|
-
default:
|
|
1717
|
-
console.error("transformStyle property value is not valid", t2);
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1720
|
-
static PerspectiveOriginCheck(e2, t2) {
|
|
1721
|
-
fe.IsUndefined(e2, t2) || t2.length > 0 && t2.indexOf("%") < 0 && t2.indexOf("left") < 0 && t2.indexOf("center") < 0 && t2.indexOf("top") < 0 && t2.indexOf("right") < 0 && t2.indexOf("bottom") < 0 && console.error("perspectiveOrigin property's value only support XX%、left、top、right, bottom:", t2);
|
|
1722
|
-
}
|
|
1723
|
-
static TextShadowCheck(e2, t2) {
|
|
1724
|
-
if (!fe.IsUndefined(e2, t2) && t2.length > 0) {
|
|
1725
|
-
if (t2.replace(/\(.*\)/g, "").split(",").length > 1)
|
|
1726
|
-
return void console.error("textShadow: NOT support more than one part settings");
|
|
1727
|
-
const e3 = t2.split(" ");
|
|
1728
|
-
if (4 !== e3.length && (5 !== e3.length || 0 !== e3[4].length) || isNaN(parseInt(e3[0])) || isNaN(parseInt(e3[1])))
|
|
1729
|
-
console.error('textShadow: format should be "offsetX offsetY blurSize color"(0 0 1 rgba(100,100,100,1)), !NOT space in rgba()');
|
|
1730
|
-
else {
|
|
1731
|
-
if (!(parseFloat(e3[2]) > 0))
|
|
1732
|
-
return void console.error(`textShadow: blur shadow above 0(now=${t2})`);
|
|
1733
|
-
if (!fe.CheckColorFormat("textShadow", e3[3]))
|
|
1734
|
-
return;
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
static CheckColorFormat(e2, t2) {
|
|
1739
|
-
if (0 === t2.indexOf("rgba(") || 0 === t2.indexOf("rgb("))
|
|
1740
|
-
;
|
|
1741
|
-
else {
|
|
1742
|
-
if (0 !== t2.indexOf("#"))
|
|
1743
|
-
return console.error(`${e2} color value is not valid, need startwith rgba or #, value:[${t2}]`), false;
|
|
1744
|
-
if (4 !== t2.length && 7 !== t2.length && 9 !== t2.length)
|
|
1745
|
-
return console.error(`${e2} color value's length is not valid, value:${t2}`), false;
|
|
1746
|
-
}
|
|
1747
|
-
return true;
|
|
1748
|
-
}
|
|
1749
|
-
static JsvTextLatexCheck(e2, t2) {
|
|
1750
|
-
fe.IsUndefined(e2, t2) || "number" != typeof t2 && console.error("JsvTextLatex property's value is support number only, value: ", t2);
|
|
1751
|
-
}
|
|
1752
|
-
static JsvTextEmojiCheck(e2, t2) {
|
|
1753
|
-
fe.IsUndefined(e2, t2) || "number" != typeof t2 && console.error("JsvTextEmoji property's value is support number only, value: ", t2);
|
|
1754
|
-
}
|
|
1755
|
-
static DirectionCheck(e2, t2) {
|
|
1756
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1757
|
-
switch (t2) {
|
|
1758
|
-
case "ltr":
|
|
1759
|
-
case "rtl":
|
|
1760
|
-
break;
|
|
1761
|
-
default:
|
|
1762
|
-
console.error("direction property's value is not support, value:", t2);
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
static JsvTextAlignMinWidthCheck(e2, t2) {
|
|
1766
|
-
fe.IsUndefined(e2, t2) || "number" != typeof t2 && console.error("JsvTextAlignMinWidth property's value is support number only, value: ", t2);
|
|
1767
|
-
}
|
|
1768
|
-
static JsvTextVerticalAlignCheck(e2, t2) {
|
|
1769
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1770
|
-
switch (t2) {
|
|
1771
|
-
case "top":
|
|
1772
|
-
case "middle":
|
|
1773
|
-
case "bottom":
|
|
1774
|
-
break;
|
|
1775
|
-
default:
|
|
1776
|
-
console.error("JsvTextVerticalAlign property's value is not support, value: ", t2);
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
static JsvTextLineAlignCheck(e2, t2) {
|
|
1780
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1781
|
-
switch (t2) {
|
|
1782
|
-
case "top":
|
|
1783
|
-
case "middle":
|
|
1784
|
-
case "bottom":
|
|
1785
|
-
break;
|
|
1786
|
-
default:
|
|
1787
|
-
console.error("JsvTextLineAlign property's value is not support, value: ", t2);
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1790
|
-
static JsvTextInnerDirectionCheck(e2, t2) {
|
|
1791
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1792
|
-
switch (t2) {
|
|
1793
|
-
case "unset":
|
|
1794
|
-
case "ltr":
|
|
1795
|
-
case "rtl":
|
|
1796
|
-
break;
|
|
1797
|
-
default:
|
|
1798
|
-
console.error("JsvTextInnerDirection property's value is not support, value: ", t2);
|
|
1799
|
-
}
|
|
1800
|
-
}
|
|
1801
|
-
static FlexDirectionCheck(e2, t2) {
|
|
1802
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1803
|
-
switch (t2) {
|
|
1804
|
-
case "row":
|
|
1805
|
-
case "row-reverse":
|
|
1806
|
-
case "column":
|
|
1807
|
-
case "column-reverse":
|
|
1808
|
-
break;
|
|
1809
|
-
default:
|
|
1810
|
-
console.error("flexDirection out of range: row|row-reverse|column|column-reverse, value: ", t2);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
static FlexWrapCheck(e2, t2) {
|
|
1814
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1815
|
-
switch (t2) {
|
|
1816
|
-
case "nowrap":
|
|
1817
|
-
case "wrap":
|
|
1818
|
-
break;
|
|
1819
|
-
default:
|
|
1820
|
-
console.error("flexWrap out of range: nowrap|wrap, value: ", t2);
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1823
|
-
static JustifyContentCheck(e2, t2) {
|
|
1824
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1825
|
-
switch (t2) {
|
|
1826
|
-
case "flex-start":
|
|
1827
|
-
case "flex-end":
|
|
1828
|
-
case "center":
|
|
1829
|
-
break;
|
|
1830
|
-
default:
|
|
1831
|
-
console.error("flexWrap out of range: flex-start|flex-end|center, value: ", t2);
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
|
-
static AlignItemsCheck(e2, t2) {
|
|
1835
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1836
|
-
switch (t2) {
|
|
1837
|
-
case "flex-start":
|
|
1838
|
-
case "flex-end":
|
|
1839
|
-
case "center":
|
|
1840
|
-
case "stretch":
|
|
1841
|
-
break;
|
|
1842
|
-
default:
|
|
1843
|
-
console.error("alignItems out of range: flex-start|flex-end|center|stretch, value: ", t2);
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
static AlignContentCheck(e2, t2) {
|
|
1847
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1848
|
-
switch (t2) {
|
|
1849
|
-
case "flex-start":
|
|
1850
|
-
case "flex-end":
|
|
1851
|
-
case "center":
|
|
1852
|
-
break;
|
|
1853
|
-
default:
|
|
1854
|
-
console.error("alignContent out of range: flex-start|flex-end|center, value: ", t2);
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
static AlignSelfCheck(e2, t2) {
|
|
1858
|
-
if (!fe.IsUndefined(e2, t2))
|
|
1859
|
-
switch (t2) {
|
|
1860
|
-
case "auto":
|
|
1861
|
-
case "flex-start":
|
|
1862
|
-
case "flex-end":
|
|
1863
|
-
case "center":
|
|
1864
|
-
case "stretch":
|
|
1865
|
-
break;
|
|
1866
|
-
default:
|
|
1867
|
-
console.error("alignSelf out of range: auto|flex-start|flex-end|center|stretch, value: ", t2);
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
static FlexGrowCheck(e2, t2) {
|
|
1871
|
-
fe.IsUndefined(e2, t2) || isNaN(t2) && console.error("flexGrow must be number, value: ", t2);
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
fe.ValidStyleMap = { animation: { check: fe.AnimationCheck }, animationName: { check: fe.AnimationOtherNotSupport }, animationDuration: { check: fe.AnimationOtherNotSupport }, animationTimingFunction: { check: fe.AnimationOtherNotSupport }, animationDelay: { check: fe.AnimationOtherNotSupport }, animationIterationCount: { check: fe.AnimationOtherNotSupport }, animationDirection: { check: fe.AnimationOtherNotSupport }, animationPlayState: { check: fe.AnimationOtherNotSupport }, animationFillMode: { check: fe.AnimationFillModeCheck }, background: { check: fe.BackgroundOtherCheck }, backgroundColor: { check: fe.BackgroundColorCheck }, backgroundImage: { check: fe.BackgroundImageCheck }, borderImage: { check: fe.BorderImageCheck }, borderImageOutset: { check: fe.BorderImageOutsetCheck }, borderImageWidth: { check: fe.BorderImageWidthCheck }, borderRadius: { check: fe.BorderRadiusCheck }, height: { check: fe.HeightCheck }, width: { check: fe.WidthCheck }, zIndex: { check: fe.ZIndexCheck }, opacity: { check: fe.OpacityCheck }, fontFamily: { check: null }, fontSize: { check: fe.FontSizeCheck }, fontStyle: { check: fe.FontStyleCheck }, fontWeight: { check: fe.FontWeightCheck }, left: { check: fe.LeftCheck }, overflow: { check: fe.OverflowCheck }, top: { check: fe.TopCheck }, visibility: { check: fe.VisibilityCheck }, display: { check: fe.DisplayCheck }, color: { check: fe.ColorCheck }, lineHeight: { check: fe.LineHeightCheck }, textAlign: { check: fe.TextAlignCheck }, direction: { check: fe.DirectionCheck }, whiteSpace: { check: fe.WhiteSpaceCheck }, textOverflow: { check: fe.TextOverflowCheck }, transform: { check: fe.TransformCheck }, transformOrigin: { check: fe.TransformOriginCheck }, transition: { check: fe.TransitionCheck }, transitionProperty: { check: fe.TransitionOtherCheck }, transitionDuration: { check: fe.TransitionOtherCheck }, transitionTimingFunction: { check: fe.TransitionOtherCheck }, transitionDelay: { check: fe.TransitionOtherCheck }, keyframes: { check: fe.KeyframesCheck }, objectFit: { check: fe.ObjectFit }, perspective: { check: fe.PerspectiveCheck }, backfaceVisibility: { check: fe.BackfaceVisibility }, transformStyle: { check: fe.TransformStyleCheck }, perspectiveOrigin: { check: fe.PerspectiveCheck }, WebkitTextStroke: { check: fe.WebkitTextStroke }, textShadow: { check: fe.TextShadowCheck }, JsvTextLatex: { check: fe.JsvTextLatexCheck }, JsvTextEmoji: { check: fe.JsvTextEmojiCheck }, JsvTextAlignMinWidth: { check: fe.JsvTextAlignMinWidthCheck }, JsvTextVerticalAlign: { check: fe.JsvTextVerticalAlignCheck }, JsvTextLineAlign: { check: fe.JsvTextLineAlignCheck }, JsvTextInnerDirection: { check: fe.JsvTextInnerDirectionCheck }, flexDirection: { check: fe.FlexDirectionCheck }, flexWrap: { check: fe.FlexWrapCheck }, justifyContent: { check: fe.JustifyContentCheck }, alignItems: { check: fe.AlignItemsCheck }, alignContent: { check: fe.AlignContentCheck }, alignSelf: { check: fe.AlignSelfCheck }, flexGrow: { check: fe.FlexGrowCheck } };
|
|
1875
|
-
class ve {
|
|
1876
|
-
static BackupBrowser() {
|
|
1877
|
-
return { createComment: window.document.createComment.bind(window.document), createElement: window.document.createElement.bind(window.document), createElementNS: window.document.createElementNS.bind(window.document), createTextNode: window.document.createTextNode.bind(window.document), dispatchEvent: window.document.dispatchEvent.bind(window.document), getElementById: window.document.getElementById.bind(window.document), getElementsByTagName: window.document.getElementsByTagName.bind(window.document), querySelector: window.document.querySelector.bind(window.document), head: { appendChild: window.document.head.appendChild.bind(window.document.head), removeChild: window.document.head.removeChild.bind(window.document.head) } };
|
|
1878
|
-
}
|
|
1879
|
-
static HookBrowser(e2) {
|
|
1880
|
-
ve.HookDocument(e2), ve.HookOthers(), ve.DeclareAddition();
|
|
1881
|
-
}
|
|
1882
|
-
static HookDocument(e2) {
|
|
1883
|
-
window.JsvCode.Dom.BrowserDocument = e2;
|
|
1884
|
-
const t2 = new pe();
|
|
1885
|
-
window.document.createComment = t2.createComment.bind(t2), window.document.createElement = t2.createElement.bind(t2), window.document.createTextNode = t2.createTextNode.bind(t2), window.document.dispatchEvent = t2.dispatchEvent.bind(t2), window.document.getElementById = t2.getElementById.bind(t2), window.document.getElementsByTagName = t2.getElementsByTagName.bind(t2), window.document.querySelector = t2.querySelector.bind(t2), window.document.head.appendChild = t2.head?.appendChild.bind(t2.head), window.document.head.removeChild = t2.head?.removeChild.bind(t2.head), window.JsvCode.Dom.JsViewDocument = t2;
|
|
1886
|
-
}
|
|
1887
|
-
static HookOthers() {
|
|
1888
|
-
window.MutationObserver = de, window.Element = O, window.SVGElement = X;
|
|
1889
|
-
}
|
|
1890
|
-
static DeclareAddition() {
|
|
1891
|
-
const e2 = window.JsvCode.Dom.JsViewDocument;
|
|
1892
|
-
window.document.jsvInitFDivRoot = e2.jsvInitFDivRoot.bind(e2), window.JsvCode.Dom.CheckStyleFormat = window.jsvInAndroidWebView ? null : ve.CheckStyleFormat;
|
|
1893
|
-
}
|
|
1894
|
-
static CheckStyleFormat(e2, t2) {
|
|
1895
|
-
if (e2.startsWith("--"))
|
|
1896
|
-
return;
|
|
1897
|
-
let i2 = fe.Get(e2);
|
|
1898
|
-
i2 ? i2.check && t2 && i2.check(e2, t2) : console.error(e2 + " property is not support.");
|
|
1899
|
-
}
|
|
1900
|
-
}
|
|
1901
|
-
window.jsvIsBrowserDebug = true;
|
|
1902
|
-
const ge = window.JsvCode.BrowserPlatformDomBridge, we = window.JsvCode.BrowserPlatformMediaBridge;
|
|
1903
|
-
function ye() {
|
|
1904
|
-
const e2 = ve.BackupBrowser();
|
|
1905
|
-
ge.RegisterOriginDocument(e2), le.EnsureGlobalEnv(ge, we), ve.HookBrowser(e2), ce.I("Using JsView HTML Environment.");
|
|
1906
|
-
}
|
|
1907
|
-
export {
|
|
1908
|
-
he as BrowserForgeApp,
|
|
1909
|
-
ye as InitEnv
|
|
1910
|
-
};
|
|
1911
|
-
//# sourceMappingURL=http://localhost:57245/map/jsview-dom-browser.min.24b59670.js.map
|
|
1912
|
-
|
|
1913
|
-
/*jsvmd5:2d06f809f7c083506a937148e0c65956*/
|