@bbn/bbn 2.0.112 → 2.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt.js +2 -0
- package/dist/fn/init.js +2 -6
- package/package.json +1 -1
package/dist/dt.js
CHANGED
|
@@ -226,6 +226,8 @@ const dt = (value, inputFormat = null, cls = 'auto') => {
|
|
|
226
226
|
return new bbnDtDuration(value);
|
|
227
227
|
}
|
|
228
228
|
else {
|
|
229
|
+
bbn.fn.log(value);
|
|
230
|
+
throw new Error(_('Invalid date value: %s', value));
|
|
229
231
|
return { isValid: false };
|
|
230
232
|
}
|
|
231
233
|
//throw new Error(_('Invalid date value: %s', value));
|
package/dist/fn/init.js
CHANGED
|
@@ -3,7 +3,6 @@ import each from './loop/each.js';
|
|
|
3
3
|
import extend from './object/extend.js';
|
|
4
4
|
import addColors from './style/addColors.js';
|
|
5
5
|
import link from './ajax/link.js';
|
|
6
|
-
import submit from './form/submit.js';
|
|
7
6
|
import resize from './style/resize.js';
|
|
8
7
|
import isMobile from './browser/isMobile.js';
|
|
9
8
|
import isTabletDevice from './browser/isTabletDevice.js';
|
|
@@ -104,11 +103,8 @@ export default function init(cfg, force) {
|
|
|
104
103
|
});
|
|
105
104
|
document.addEventListener("click", onActivity);
|
|
106
105
|
document.addEventListener("keydown", onActivity);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
submit(ele, e);
|
|
110
|
-
});
|
|
111
|
-
});
|
|
106
|
+
document.addEventListener("focusin", onActivity);
|
|
107
|
+
document.addEventListener("focusout", onActivity);
|
|
112
108
|
window.addEventListener("hashchange", () => {
|
|
113
109
|
bbn.env.hashChanged = new Date().getTime();
|
|
114
110
|
}, false);
|