efront 3.15.2 → 3.16.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/apps/pivot/log/boot.js +32 -3
- package/coms/basic/JSAM.js +54 -15
- package/coms/basic/cross_.js +6 -1
- package/coms/basic/loader.js +2 -2
- package/coms/basic/matrix.js +51 -28
- package/coms/basic/parseYML.js +1 -1
- package/coms/basic/renderExpress.js +3 -3
- package/coms/frame/route.js +54 -17
- package/coms/zimoli/data.js +1 -6
- package/coms/zimoli/dispatch.js +13 -1
- package/coms/zimoli/getValue.js +1 -1
- package/coms/zimoli/menu.js +24 -0
- package/coms/zimoli/menuItem.html +4 -1
- package/coms/zimoli/menuItem.js +7 -0
- package/coms/zimoli/menuItem.less +23 -2
- package/coms/zimoli/menuList.js +24 -18
- package/coms/zimoli/moveupon.js +6 -4
- package/coms/zimoli/on.js +173 -162
- package/coms/zimoli/picture_.js +2 -0
- package/coms/zimoli/render.js +7 -3
- package/data/packexe-setup.sfx +0 -0
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/picture_.js
CHANGED
|
@@ -239,6 +239,7 @@ function picture_(image = document.createElement("div")) {
|
|
|
239
239
|
case 1:
|
|
240
240
|
break;
|
|
241
241
|
case 2:
|
|
242
|
+
default:
|
|
242
243
|
event.moveLocked = true;
|
|
243
244
|
var [xy1, xy2] = saved_event.touches;
|
|
244
245
|
var [mn1, mn2] = event.touches;
|
|
@@ -251,6 +252,7 @@ function picture_(image = document.createElement("div")) {
|
|
|
251
252
|
);
|
|
252
253
|
saved_event = event;
|
|
253
254
|
return;
|
|
255
|
+
|
|
254
256
|
}
|
|
255
257
|
}
|
|
256
258
|
if (event.which === 3) {
|
package/coms/zimoli/render.js
CHANGED
|
@@ -585,7 +585,7 @@ var emiters = {
|
|
|
585
585
|
emiters.v = emiters.ng = emiters.on;
|
|
586
586
|
|
|
587
587
|
function getFromScopes(key, scope, parentScopes) {
|
|
588
|
-
if (key in scope) {
|
|
588
|
+
if (scope) if (key in scope) {
|
|
589
589
|
return scope[key];
|
|
590
590
|
}
|
|
591
591
|
if (parentScopes) for (var cx = parentScopes.length - 1; cx >= 0; cx--) {
|
|
@@ -725,7 +725,7 @@ function renderStructure(element, scope, parentScopes = []) {
|
|
|
725
725
|
var attrs = [].concat.apply([], element.attributes);
|
|
726
726
|
var withContext = parentScopes ? parentScopes.map((_, cx) => `with(this.$parentScopes[${cx}])`).join("") : '';
|
|
727
727
|
var types = {};
|
|
728
|
-
var emiter_reg = /^(?:(v|ng|on|once)
|
|
728
|
+
var emiter_reg = /^(?:(v|ng|on|once)?\-|v\-on\:|@|once|on)/i;
|
|
729
729
|
var ons = [];
|
|
730
730
|
var copys = [];
|
|
731
731
|
var binds = {};
|
|
@@ -768,21 +768,25 @@ function renderStructure(element, scope, parentScopes = []) {
|
|
|
768
768
|
continue;
|
|
769
769
|
}
|
|
770
770
|
if (element.$struct) continue;
|
|
771
|
-
|
|
771
|
+
// ng-html,ng-src,ng-text,ng-model,ng-style,ng-class,...
|
|
772
|
+
var key = name.replace(/^(ng|v|[^\_\:\.]*?)\-|^[\:\_\.]|^v\-bind\:/i, "").toLowerCase();
|
|
772
773
|
if (directives.hasOwnProperty(key) || /^([\_\:\.]|v\-bind\:)/.test(name)) {
|
|
773
774
|
binds[key] = value;
|
|
774
775
|
element.removeAttribute(name);
|
|
775
776
|
}
|
|
777
|
+
// ng-click on-click v-click @click @mousedown ...
|
|
776
778
|
else if (emiter_reg.test(name)) {
|
|
777
779
|
var match = emiter_reg.exec(name);
|
|
778
780
|
var ngon = (match[1] || match[0]).toLowerCase() === 'once' ? 'once' : 'on';
|
|
779
781
|
element.removeAttribute(name);
|
|
780
782
|
ons.push([emiters[ngon], name.replace(emiter_reg, ''), value]);
|
|
781
783
|
}
|
|
784
|
+
// placeholder_ href_ checked_ ...
|
|
782
785
|
else if (/[_@\:\.]$/.test(name)) {
|
|
783
786
|
attr1[name.replace(/[_@\:\.]$/, "")] = value;
|
|
784
787
|
element.removeAttribute(name);
|
|
785
788
|
}
|
|
789
|
+
// title alt name type placeholder href checked ...
|
|
786
790
|
else {
|
|
787
791
|
if (!/\-/.test(name) || value === '') {
|
|
788
792
|
copys.push(attr);
|
package/data/packexe-setup.sfx
CHANGED
|
Binary file
|