@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/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
- each(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"), (ele) => {
108
- ele.addEventListener("submit", (e) => {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.112",
3
+ "version": "2.0.114",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",