rsence-pre 3.0.0.10 → 3.0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/client/conf/client_pkg.yaml +17 -1
  4. data/client/ext/Rakefile +42 -12
  5. data/client/js/comm/transporter/transporter.js +1 -0
  6. data/client/js/controls/numerictextcontrol/numerictextcontrol.coffee +10 -11
  7. data/client/js/controls/searchfield/themes/default/searchfield.css +56 -91
  8. data/client/js/controls/searchfield/themes/default/searchfield.html +10 -10
  9. data/client/js/controls/textcontrol/textcontrol.coffee +71 -65
  10. data/client/js/core/elem/elem.coffee +5 -0
  11. data/client/js/datetime/datepicker/datepicker.coffee +1 -0
  12. data/client/js/datetime/momentjs/momentjs.js +12 -4
  13. data/client/js/foundation/control/eventresponder/eventresponder.js +14 -0
  14. data/client/js/foundation/json_renderer/json_renderer.js +12 -12
  15. data/client/js/foundation/view/view.js +13 -4
  16. data/client/js/lists/radiobuttonlist/radiobuttonlist.js +9 -8
  17. data/client/js/media/mediaelement/mediaelement.js +1890 -0
  18. data/client/js/media/mediaelement_defaults/mediaelement_defaults.coffee +1 -0
  19. data/client/js/media/mediaelement_resources/mediaelement_resources.js +1 -0
  20. data/client/js/media/mediaelement_resources/themes/mejs/flashmediaelement.swf +0 -0
  21. data/client/js/media/mediaelement_resources/themes/mejs/mediaelement_resources.css +0 -0
  22. data/client/js/media/mediaelement_resources/themes/mejs/mediaelement_resources.html +0 -0
  23. data/client/js/media/mediaelement_resources/themes/mejs/silverlightmediaelement.xap +0 -0
  24. data/client/js/menus/combobox/combobox.coffee +6 -1
  25. data/client/js/menus/menuitem/themes/default/menuitem.css +5 -8
  26. data/client/js/menus/minimenu/minimenu.js +2 -2
  27. data/client/js/menus/minimenu/themes/default/minimenu.css +6 -22
  28. data/client/js/menus/minimenuitem/themes/default/minimenuitem.css +5 -8
  29. data/client/js/menus/popupmenu/themes/default/popupmenu.css +6 -27
  30. data/plugins/client_pkg/lib/client_pkg_build.rb +5 -1
  31. metadata +8 -1
@@ -15,7 +15,7 @@
15
15
  ***/
16
16
  //var//RSence.Foundation
17
17
  COMM.JSONRenderer = UtilMethods.extend({
18
-
18
+
19
19
  version: 1.0,
20
20
 
21
21
  /** = Description
@@ -120,7 +120,7 @@ COMM.JSONRenderer = UtilMethods.extend({
120
120
  }
121
121
  },
122
122
  undefineInScope: function( ){
123
-
123
+
124
124
  },
125
125
  findInScope: function( _className ){
126
126
  if(_className === undefined){
@@ -199,7 +199,7 @@ COMM.JSONRenderer = UtilMethods.extend({
199
199
  _reserved = [ 'type', 'args', 'version', 'class', 'rect', 'bind', 'extend', 'options', 'subviews', 'define' ],
200
200
  _className, _class, _origNode, _straightParams = false, _rect, _hasRect, _hasSubviews, _subViews,
201
201
  _hasOptions, _options, _hasExtension, _extension, _hasBind, _bind,
202
- _hasName, _hasId,
202
+ _hasName, _hasId, _definitions,
203
203
  _isAppClass = false, _isViewClass = false,
204
204
  _autoOptionItems = [
205
205
  'label', 'style', 'visible', 'theme', 'html',
@@ -225,7 +225,7 @@ COMM.JSONRenderer = UtilMethods.extend({
225
225
  }
226
226
 
227
227
  _class = this.findInScope( _className );
228
-
228
+
229
229
  if (_class.hasAncestor !== undefined){
230
230
  _isAppClass = _class.hasAncestor( HApplication );
231
231
  _isViewClass = _class.hasAncestor( HView );
@@ -252,7 +252,7 @@ COMM.JSONRenderer = UtilMethods.extend({
252
252
  }
253
253
  return _instance;
254
254
  }
255
-
255
+
256
256
  // Currently only HView -derived classes are supported, so
257
257
  // the rect is mandatory.
258
258
  _rect = _dataNode.rect;
@@ -274,7 +274,7 @@ COMM.JSONRenderer = UtilMethods.extend({
274
274
  _hasSubviews = _origNode.subviews !== undefined;
275
275
  _subViews = _hasSubviews?_origNode.subviews:null;
276
276
  }
277
-
277
+
278
278
  // Checks, if any options are defined.
279
279
  _hasOptions = _dataNode.options !== undefined;
280
280
  _options = _hasOptions?_dataNode.options:null;
@@ -292,7 +292,7 @@ COMM.JSONRenderer = UtilMethods.extend({
292
292
  _options[_autoOptionItem] = _dataNode[ _autoOptionItem ];
293
293
  }
294
294
  }
295
-
295
+
296
296
  // JS Extension block
297
297
  _hasExtension = _dataNode.extend !== undefined;
298
298
  _extension = _hasExtension?_dataNode.extend:null;
@@ -300,7 +300,7 @@ COMM.JSONRenderer = UtilMethods.extend({
300
300
  _hasExtension = _origNode.extend !== undefined;
301
301
  _extension = _hasExtension?_origNode.extend:null;
302
302
  }
303
-
303
+
304
304
  // JS Extension block
305
305
  _hasBind = _dataNode.bind !== undefined;
306
306
  _bind = _hasBind?_dataNode.bind:null;
@@ -313,7 +313,7 @@ COMM.JSONRenderer = UtilMethods.extend({
313
313
  if( _hasCall ){
314
314
  _call = _dataNode.call;
315
315
  }
316
-
316
+
317
317
  // JS Definition block
318
318
  _hasDefinition = _dataNode.define !== undefined;
319
319
  _definitions = _hasDefinition?_dataNode.define:null;
@@ -327,7 +327,7 @@ COMM.JSONRenderer = UtilMethods.extend({
327
327
 
328
328
  // The HView-derived class instance, instance is by default the parent
329
329
  _instance = _parent;
330
-
330
+
331
331
  this.scopeDepth ++;
332
332
  this.scopes.push({});
333
333
  try{
@@ -446,10 +446,10 @@ COMM.JSONRenderer = UtilMethods.extend({
446
446
  _subView = this.renderNode( _subViews[i], _instance );
447
447
  }
448
448
  }
449
-
449
+
450
450
  this.scopes.pop();
451
451
  this.scopeDepth --;
452
-
452
+
453
453
  // Returns the main view (or subview when recursively called).
454
454
  return _instance;
455
455
  }
@@ -759,7 +759,6 @@ HView = UtilMethods.extend({
759
759
  this.show();
760
760
  }
761
761
  }
762
- _timeI = 10;
763
762
  this.refresh();
764
763
  return this;
765
764
  },
@@ -1555,7 +1554,7 @@ HView = UtilMethods.extend({
1555
1554
  delete this.timeouts;
1556
1555
  }
1557
1556
  // Delete the children first.
1558
- var _childViewId, i;
1557
+ var _childViewId, i, _elemId;
1559
1558
  if(!this.views){
1560
1559
  console.log('HView#die: no sub-views for component name: ',this.componentName,', self:',this);
1561
1560
  return;
@@ -1569,9 +1568,13 @@ HView = UtilMethods.extend({
1569
1568
  // Remove the DOM element bindings.
1570
1569
  if( this._domElementBindings ){
1571
1570
  for ( i = 0; i < this._domElementBindings.length; i++) {
1572
- ELEM.del(this._domElementBindings.pop());
1571
+ _elemId = this._domElementBindings.pop();
1572
+ if( !ELEM.get(_elemId) ){
1573
+ debugger;
1574
+ }
1575
+ ELEM.del(_elemId);
1573
1576
  }
1574
- // this._domElementBindings = [];
1577
+ delete this._domElementBindings;
1575
1578
  }
1576
1579
 
1577
1580
  if( this._ieNoThrough !== null ){
@@ -2134,6 +2137,12 @@ HView = UtilMethods.extend({
2134
2137
  }
2135
2138
  },
2136
2139
 
2140
+ destroyMarkupElem: function(_name){
2141
+ if( this.markupElemIds[_name] === null || this.markupElemIds[_name] === undefined ){ return; }
2142
+ this.unbindDomElement(this.markupElemIds[_name]);
2143
+ delete this.markupElemIds[_name];
2144
+ },
2145
+
2137
2146
 
2138
2147
  /** = Description
2139
2148
  * Finds a string from the locale of the component.
@@ -12,7 +12,7 @@ HRadioButtonList = HListItemControl.extend({
12
12
  },
13
13
  listItems: [],
14
14
  listItemViews: [],
15
-
15
+
16
16
  /** = Description
17
17
  * Setter function for listItems and listItemViews. Destroys
18
18
  * the old HRadiabuttons before creating the new ones based on the
@@ -31,6 +31,7 @@ HRadioButtonList = HListItemControl.extend({
31
31
  _value,
32
32
  _label,
33
33
  _radioButton,
34
+ _component,
34
35
  _selected = false,
35
36
  i = 0;
36
37
  for ( ; i < this.listItemViews.length; i++ ) {
@@ -77,7 +78,7 @@ HRadioButtonList = HListItemControl.extend({
77
78
  }
78
79
  this.refreshValue();
79
80
  },
80
-
81
+
81
82
  createComponent: function( i, _label ){
82
83
  return HRadiobutton.nu(
83
84
  [ 4, (i*23)+4, null, 23, 4, null ],
@@ -88,12 +89,12 @@ HRadioButtonList = HListItemControl.extend({
88
89
  }
89
90
  );
90
91
  },
91
-
92
+
92
93
  _listItemResponder: null,
93
94
  setListItemResponder: function(_listItemResponder){
94
95
  this._listItemResponder = _listItemResponder;
95
96
  },
96
-
97
+
97
98
  /** = Description
98
99
  * Destructor. Sets listItems and listItemViews to null and initiates
99
100
  * destructor for radioButtonIndexValue.
@@ -124,7 +125,7 @@ HRadioButtonList = HListItemControl.extend({
124
125
  this.listItemViews[i].setEnabled(_state);
125
126
  }
126
127
  },
127
-
128
+
128
129
  /** = Description
129
130
  * RadioButtonIndexResponder sets the value based on which radiobutton is selected.
130
131
  **/
@@ -150,9 +151,9 @@ HRadioButtonList = HListItemControl.extend({
150
151
  }
151
152
  }
152
153
  }),
153
-
154
-
155
-
154
+
155
+
156
+
156
157
  refreshValue: function(){
157
158
  var _value = this.value;
158
159
  if ( this.listItems && this.listItems.length !== 0 && this.valueMatrix !== undefined ) {