targetj 1.0.101 → 1.0.103

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/README.md CHANGED
@@ -14,7 +14,7 @@ npm install targetj
14
14
 
15
15
  ## Why TargetJ?
16
16
 
17
- Imagine being able to build a front-end project using a single approach for API integration, animation, event handling, and more. Now imagine doing it without worrying about asynchronous calls, loops, callbacks, promises, timeouts, CSS, or even HTML. That's what TargetJ solves. It simplifies the entire development.
17
+ Imagine building a front-end project using a single approach for API integration, animations, event handling, and more—without having to manage asynchronous calls, loops, callbacks, promises, timeouts, CSS, HTML attributes, tags, or HTML nesting. Thats exactly what TargetJ offers: it simplifies the entire development process with a new paradigm.
18
18
 
19
19
  ## What are targets?
20
20
 
package/build/App.js CHANGED
@@ -65,7 +65,8 @@ var AppFn = function AppFn(firstChild) {
65
65
  },
66
66
  height: function height() {
67
67
  return document.documentElement.clientHeight || document.body.clientHeight;
68
- }
68
+ },
69
+ onResize: ['width', 'height']
69
70
  });
70
71
  tmodel.oids = {};
71
72
  if (my.tRoot) {
@@ -70,7 +70,7 @@ var LocationManager = exports.LocationManager = /*#__PURE__*/function () {
70
70
  container.visibleChildren.length = 0;
71
71
  var i = 0;
72
72
  var childrenLength = allChildren.length;
73
- while (i < childrenLength && _App.tApp.isRunning()) {
73
+ while (i < childrenLength) {
74
74
  var child = allChildren[i++];
75
75
  if (!child) {
76
76
  continue;
@@ -84,9 +84,8 @@ var PageManager = exports.PageManager = /*#__PURE__*/function () {
84
84
  key: "onPageClose",
85
85
  value: function onPageClose(visibles) {
86
86
  visibles.forEach(function (tmodel) {
87
- if (tmodel.targets['onPageClose']) {
88
- (0, _App.getLocationManager)().activateTargets(tmodel, tmodel.targets['onPageClose']);
89
- }
87
+ var activateTargets = [].concat(tmodel.targets['onPageClose'], tmodel.targets['onResize']);
88
+ (0, _App.getLocationManager)().activateTargets(tmodel, activateTargets);
90
89
  });
91
90
  }
92
91
  }, {
package/build/TModel.js CHANGED
@@ -373,7 +373,7 @@ var TModel = exports.TModel = /*#__PURE__*/function (_BaseModel) {
373
373
  key: "getXOverflow",
374
374
  value: function getXOverflow() {
375
375
  var _this$actualValues$xO;
376
- return (_this$actualValues$xO = this.actualValues.xOverflow) !== null && _this$actualValues$xO !== void 0 ? _this$actualValues$xO : 0;
376
+ return (_this$actualValues$xO = this.actualValues.xOverflow) !== null && _this$actualValues$xO !== void 0 ? _this$actualValues$xO : -this.getScrollLeft();
377
377
  }
378
378
  }, {
379
379
  key: "getUIDepth",
@@ -368,10 +368,19 @@ _defineProperty(TargetUtil, "attributeTargetMap", {
368
368
  size: true,
369
369
  value: true,
370
370
  maxlength: true,
371
+ minlength: true,
371
372
  max: true,
372
373
  min: true,
373
374
  readonly: true,
374
- required: true
375
+ required: true,
376
+ alt: true,
377
+ disabled: true,
378
+ action: true,
379
+ accept: true,
380
+ selected: true,
381
+ rows: true,
382
+ cols: true,
383
+ tabindex: true
375
384
  });
376
385
  _defineProperty(TargetUtil, "cssFunctionMap", {
377
386
  skew: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "targetj",
3
- "version": "1.0.101",
3
+ "version": "1.0.103",
4
4
  "keywords": [
5
5
  "targetj"
6
6
  ],