rsence-pre 2.3.0.3 → 2.3.0.4
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.
- data/VERSION +1 -1
- data/js/foundation/control/control.js +3 -0
- data/js/foundation/control/eventresponder/eventresponder.js +1 -0
- data/js/foundation/eventmanager/eventmanager.coffee +11 -9
- data/js/lists/radiobuttonlist/radiobuttonlist.js +2 -1
- data/js/menus/minimenu/minimenu.js +1 -0
- data/js/tables/table/table.coffee +7 -1
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.0.
|
1
|
+
2.3.0.4.pre
|
@@ -331,6 +331,9 @@ HControl = HView.extend({
|
|
331
331
|
// The CSS class name to set when the component is disabled
|
332
332
|
CSS_DISABLED: "disabled",
|
333
333
|
|
334
|
+
// The CSS class name to set when the component is selected
|
335
|
+
CSS_SELECTED: "selected",
|
336
|
+
|
334
337
|
// The CSS class name to set when the component is enabled
|
335
338
|
CSS_ENABLED: "enabled",
|
336
339
|
|
@@ -780,6 +780,7 @@ HEventResponder = HClass.extend({
|
|
780
780
|
// console.warn("HControl#deSelect not supported yet.");
|
781
781
|
},
|
782
782
|
setSelected: function(_state){
|
783
|
+
this.toggleCSSClass(this.elemId, HControl.CSS_SELECTED, _state);
|
783
784
|
if( _state ){
|
784
785
|
this.selected = true;
|
785
786
|
this.select();
|
@@ -666,13 +666,15 @@ EventManagerApp = HApplication.extend
|
|
666
666
|
_searchArea = HPoint.nu( _area.x-_view.parent.pageX(), _area.y-_view.parent.pageY() )
|
667
667
|
else
|
668
668
|
_searchArea = _area
|
669
|
-
if _view.hasAncestor? and _view.hasAncestor( HView )
|
670
|
-
if
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
669
|
+
if _view.hasAncestor? and _view.hasAncestor( HView )
|
670
|
+
if _view.rect[_matchMethod](_searchArea)
|
671
|
+
if ~_droppable.indexOf( _viewId )
|
672
|
+
_dropId = _search( _view.viewsZOrder.slice().reverse() )
|
673
|
+
return _dropId if _dropId
|
674
|
+
return _viewId
|
675
|
+
else
|
676
|
+
_result = _search( _view.viewsZOrder.slice().reverse() )
|
677
|
+
return _result if _result
|
676
678
|
return false
|
677
679
|
_dropId = _search( HSystem.viewsZOrder.slice().reverse() )
|
678
680
|
return [ _dropId ] if _dropId
|
@@ -831,8 +833,8 @@ EventManagerApp = HApplication.extend
|
|
831
833
|
_eventOptions = @_listeners.byId[_viewId]
|
832
834
|
if ~_mouseUppable.indexOf( _viewId )
|
833
835
|
_mouseUpIds.push( _viewId )
|
834
|
-
|
835
|
-
|
836
|
+
for _viewId in _dragged
|
837
|
+
_endDragIds.push( _viewId )
|
836
838
|
[ x, y ] = @status.crsr
|
837
839
|
@_handleMouseMove(x,y)
|
838
840
|
for _viewId in _mouseUpIds
|
@@ -217,7 +217,13 @@ HTable = HControl.extend
|
|
217
217
|
for _col, _colNum in _row
|
218
218
|
[ _colClass, _colOpts ] = @_getClassNameAndValueOfCol(_col, _colNum)
|
219
219
|
_colOpts.value = _col
|
220
|
-
|
220
|
+
_colOpts.tableRow = _rowNum
|
221
|
+
_colOpts.tableCol = _colNum
|
222
|
+
_rows[_rowNum][_colNum] = _colClass.new(
|
223
|
+
[ 0, _top, null, _rowHeight, 0, null ],
|
224
|
+
@colViews[_colNum],
|
225
|
+
_colOpts
|
226
|
+
)
|
221
227
|
_top += _rowHeight
|
222
228
|
for _colView in _colViews
|
223
229
|
_colView.rect.setHeight(_top)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence-pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-08-
|
13
|
+
date: 2012-08-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsence-deps
|
@@ -389,3 +389,4 @@ signing_key:
|
|
389
389
|
specification_version: 3
|
390
390
|
summary: Pre-Release 2.3 version of RSence.
|
391
391
|
test_files: []
|
392
|
+
has_rdoc:
|