rsence-pre 3.0.0.9 → 3.0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/client/ext/Rakefile +18 -0
  4. data/client/js/controls/button/themes/default/button.html +1 -1
  5. data/client/js/controls/checkbox/checkbox.js +9 -4
  6. data/client/js/controls/checkbox/themes/default/checkbox.css +19 -29
  7. data/client/js/controls/checkbox/themes/default/checkbox.html +8 -6
  8. data/client/js/controls/dialogs/sheet/themes/default/sheet.css +25 -30
  9. data/client/js/controls/dialogs/sheet/themes/default/sheet.html +10 -10
  10. data/client/js/controls/numerictextcontrol/numerictextcontrol.coffee +7 -14
  11. data/client/js/controls/passwordcontrol/passwordcontrol.js +1 -5
  12. data/client/js/controls/radiobutton/themes/default/radiobutton.css +21 -31
  13. data/client/js/controls/radiobutton/themes/default/radiobutton.html +8 -6
  14. data/client/js/controls/searchfield/themes/default/searchfield.css +1 -1
  15. data/client/js/controls/sliders/slider/themes/default/slider.css +3 -3
  16. data/client/js/controls/sliders/vslider/themes/default/vslider.css +3 -3
  17. data/client/js/controls/stepper/themes/default/stepper.css +1 -1
  18. data/client/js/controls/stringview/stringview.js +9 -16
  19. data/client/js/controls/stringview/themes/default/stringview.css +10 -2
  20. data/client/js/controls/tab/themes/default/tab.css +3 -3
  21. data/client/js/controls/textarea/textarea.js +1 -3
  22. data/client/js/controls/textcontrol/textcontrol.coffee +173 -36
  23. data/client/js/controls/textcontrol/themes/default/textcontrol.css +64 -100
  24. data/client/js/controls/textcontrol/themes/default/textcontrol.html +14 -19
  25. data/client/js/controls/uploader/themes/default/uploader.css +1 -1
  26. data/client/js/controls/window/themes/default/window.css +8 -8
  27. data/client/js/core/elem/elem.coffee +6 -4
  28. data/client/js/core/event/event.js +6 -0
  29. data/client/js/datetime/datepicker/datepicker.coffee +7 -3
  30. data/client/js/foundation/eventmanager/eventmanager.coffee +9 -4
  31. data/client/js/foundation/thememanager/thememanager.coffee +8 -1
  32. data/client/js/foundation/view/view.js +19 -4
  33. data/client/js/menus/combobox/combobox.coffee +2 -2
  34. data/client/js/menus/menuitem/themes/default/menuitem.css +15 -27
  35. data/client/js/menus/menuitem/themes/default/menuitem.html +2 -4
  36. data/client/js/menus/minimenu/minimenu.js +11 -3
  37. data/client/js/menus/minimenu/themes/default/minimenu.css +23 -18
  38. data/client/js/menus/minimenu/themes/default/minimenu.html +6 -8
  39. data/client/js/menus/minimenuitem/minimenuitem.js +1 -1
  40. data/client/js/menus/minimenuitem/themes/default/minimenuitem.css +15 -27
  41. data/client/js/menus/minimenuitem/themes/default/minimenuitem.html +2 -4
  42. data/client/js/menus/popupmenu/themes/default/popupmenu.css +27 -19
  43. data/client/js/menus/popupmenu/themes/default/popupmenu.html +6 -8
  44. data/plugins/client_pkg/lib/client_pkg_build.rb +33 -4
  45. metadata +3 -7
  46. data/client/js/controls/passwordcontrol/themes/default/passwordcontrol.css +0 -0
  47. data/client/js/controls/passwordcontrol/themes/default/passwordcontrol.html +0 -18
  48. data/client/js/controls/stringview/themes/default/stringview.html +0 -1
  49. data/client/js/controls/textarea/themes/default/textarea.css +0 -36
  50. data/client/js/controls/textarea/themes/default/textarea.html +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99b457f1d439877cd2926e8609e5c1545558534f
4
- data.tar.gz: 5a20ca0ee688f859946145175fe0e7127bd87dca
3
+ metadata.gz: 1d5b5f7d60608bbab206276e6e1f1fe3a078fdc1
4
+ data.tar.gz: d460c435b926b1d001c0079e60d03ee26bac4b9a
5
5
  SHA512:
6
- metadata.gz: 28a2abfa6afa5e310262b3420cdbf99f4fee16d28fac1a15bb8a40a3cf1ec99bb27a787649ecf7864caeb6890504dfe4a4951513e279b12dcbf4e23de032564d
7
- data.tar.gz: 1738b4fa751e468bc48d55f11ed29997695cb0723effb9f6401a69bb23b1854f2e812a2288ba2a2af7c8ae8a45dd9f3a2be117245f6f0fb9618bef72a55979ba
6
+ metadata.gz: 2508420c6dbf347f43781cdb5ff772341df775f4867128a0b385d8c4a254e3f91d037fd306a92f58470e64d2c7f51e2cf12d606da91450ec52ebaaf6b5065435
7
+ data.tar.gz: 25ffa628cc7916db622b614ad8a883191ec97be900945c17d0695e17e79a112abf6c238d4e6e88eef9b36561ade57f74e55433d447292ad47224d01b862f8ce7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0.9.pre
1
+ 3.0.0.10.pre
@@ -0,0 +1,18 @@
1
+
2
+ path = File.split(__FILE__).first
3
+ task :momentjs do
4
+ moment_url = 'https://github.com/timrwood/moment.git'
5
+ moment_path = File.expand_path( 'moment', path )
6
+ if File.exist? moment_path
7
+ `cd "#{moment_path}"; git pull`
8
+ else
9
+ `git clone #{moment_url} "#{moment_path}"`
10
+ end
11
+ client_path = File.split( path ).first
12
+ src_js = File.expand_path( 'moment.js', moment_path )
13
+ tgt_js = File.expand_path( 'js/datetime/momentjs/momentjs.js', client_path )
14
+ `cp #{src_js} #{tgt_js}`
15
+ end
16
+
17
+ task :all => :momentjs
18
+ task :default => :all
@@ -11,7 +11,7 @@ ${#!coffee
11
11
  ['height',_labelHeight],
12
12
  ['lineHeight',_labelHeight],
13
13
  ['fontSize',_fontSize] ]
14
- @setStyleOfPart('label',_key,_value)
14
+ @setStyleOfPart('label',_key,_value) unless @options.style? and @options.style[_key]?
15
15
  _radius = Math.floor(@rect.height / 6)+'px'
16
16
  @setStyleOfPart('bg','borderRadius',_radius)
17
17
  }
@@ -28,15 +28,20 @@ HCheckbox = HButton.extend({
28
28
  according to the trueness of the value.**/
29
29
  refreshValue: function(){
30
30
  if(this.markupElemIds.control){
31
+ !this.isProduction && console.log('Please update your theme of ',this.componentName,' to current checkbox/radiobutton mode: the cell should be the checked element, not the control part.');
31
32
  if(this.value){
32
- this.setCSSClass('control', 'checked');
33
- this.unsetCSSClass('control', 'unchecked');
33
+ this.setCSSClass('control','checked');
34
+ this.unsetCSSClass('control','unchecked');
34
35
  }
35
36
  else{
36
- this.unsetCSSClass('control', 'checked');
37
- this.setCSSClass('control', 'unchecked');
37
+ this.setCSSClass('control','unchecked');
38
+ this.unsetCSSClass('control','checked');
38
39
  }
39
40
  }
41
+ else{
42
+ if(this.value){this.setCSSClass('checked');}
43
+ else{this.unsetCSSClass('checked');}
44
+ }
40
45
  }
41
46
  });
42
47
  //-- Alias for some users:++
@@ -1,51 +1,45 @@
1
- .checkbox_control,
2
- .checkbox_state,
3
- .checkbox_label,
4
- .checkbox_antiselect {
5
- position: absolute; height: 24px;
6
- }
7
- .checkbox_control {
1
+ .default.checkbox {
8
2
  left: 0px; top: 0px; right: 0px;
9
3
  cursor: pointer;
10
4
  }
11
- .disabled > .checkbox_control {
5
+ .default.checkbox.disabled {
12
6
  cursor: default;
13
7
  }
14
- .checkbox_state {
8
+ .default.checkbox.checkbox > .state,
9
+ .default.checkbox.checkbox > .label {
10
+ position: absolute; height: 24px;
11
+ }
12
+ .default.checkbox > .state {
15
13
  left: 0px; top: 0px; width: 24px;
16
14
  background-repeat: no-repeat;
17
15
  background-position: -24px 0px;
18
- background-image: #{this.getCssFilePath('checkbox_parts1.png')};
19
- }
20
-
21
- .enabled > .unchecked > .checkbox_state {
22
- background-position: -24px 0px;
16
+ background-image: #url(checkbox_parts1.png);
23
17
  }
24
- .enabled > .unchecked:hover > .checkbox_state {
18
+ .default.checkbox.enabled:hover > .state {
25
19
  background-position: -24px -24px;
26
20
  }
27
- .enabled > .unchecked:active > .checkbox_state {
21
+ .default.checkbox.enabled:active > .state {
28
22
  background-position: -24px -48px;
29
23
  }
30
24
 
31
- .enabled > .checked > .checkbox_state {
25
+ .default.checkbox.enabled.checked > .state {
32
26
  background-position: 0px 0px;
33
27
  }
34
- .enabled > .checked:hover > .checkbox_state {
28
+ .default.checkbox.enabled.checked:hover > .state {
35
29
  background-position: 0px -24px;
36
30
  }
37
- .enabled > .checked:active > .checkbox_state {
31
+ .default.checkbox.enabled.checked:active > .state {
38
32
  background-position: 0px -48px;
39
33
  }
40
34
 
41
- .disabled > .unchecked > .checkbox_state {
35
+ .default.checkbox.disabled > .state {
42
36
  background-position: -24px -72px;
43
37
  }
44
- .disabled > .checked > .checkbox_state {
38
+ .default.checkbox.disabled.checked > .state {
45
39
  background-position: 0px -72px;
46
40
  }
47
41
 
48
- .checkbox_label {
42
+ .default.checkbox > .label {
49
43
  left: 24px; right: 0px; top: 2px;
50
44
  height: 20px; line-height: 20px;
51
45
  text-align: left; vertical-align: middle;
@@ -53,17 +47,13 @@
53
47
  font-size: 12px;
54
48
  color: #333;
55
49
  }
56
- .disabled > .checkbox_control > .checkbox_label {
50
+ .default.checkbox.disabled > .label {
57
51
  color: #999;
58
52
  }
59
- .enabled > .checkbox_control:hover > .checkbox_label {
53
+ .default.checkbox.enabled:hover > .label {
60
54
  color: #000;
61
55
  }
62
- .enabled > .checkbox_control:active > .checkbox_label {
56
+ .default.checkbox.enabled:active > .label {
63
57
  color: #000;
64
58
  }
65
59
 
66
- .checkbox_antiselect {
67
- left: 0px; top: 0px; right: 0px;
68
- }
69
-
@@ -1,6 +1,8 @@
1
- <div class="checkbox_control#{this.value?' checked':' unchecked'}" id="control]I[">
2
- <div class="checkbox_state" id="state]I["></div>
3
- <div class="checkbox_label" id="label]I[">#{this.label}</div>
4
- <div class="checkbox_antiselect"></div>
5
- </div>
6
- ${this.labelPadding=24}
1
+ <div class="state" id="state]I["></div>
2
+ <div class="label" id="label]I[">#{this.label}</div>
3
+ ${#!coffee
4
+ @labelPadding=24
5
+ @pushTask =>
6
+ @refreshValue()
7
+ @markupElemIds.control = @elemId
8
+ }
@@ -1,68 +1,63 @@
1
- .sheet_bg,
2
- .sheet_body,
3
- .sheet_dimmer,
4
- /*.sheet_center,*/
5
- .sheet_content,
6
- .sheet_body_edge_left,
7
- .sheet_body_edge_right,
8
- .sheet_body_corner_left,
9
- .sheet_body_corner_right,
10
- .sheet_body_edge_bottom,
11
- .sheet_subview {
1
+ .default.sheet > .content > .bg,
2
+ .default.sheet > .content > .body,
3
+ .default.sheet > .dimmer,
4
+ .default.sheet > .content,
5
+ .default.sheet > .content > .body > .w,
6
+ .default.sheet > .content > .body > .e,
7
+ .default.sheet > .content > .body > .sw,
8
+ .default.sheet > .content > .body > .se,
9
+ .default.sheet > .content > .body > .s,
10
+ .default.sheet > .content > .subview {
12
11
  position: absolute;
13
12
  display: block;
14
13
  overflow: hidden;
15
14
  cursor: inherit;
16
15
  background-repeat: no-repeat;
17
16
  }
18
- .sheet_dimmer {
17
+ .default.sheet > .dimmer {
19
18
  top: 0; left: 0; right: 0; bottom: 0;
20
19
  background-repeat: repeat;
21
- background-image: #{this.getCssFilePath('sheet_dim.png')};
20
+ background-image: #url(sheet_dim.png)
22
21
  }
23
- /*.sheet_center {
24
- top: 0; left: 50%; overflow: visible; width: 0; height: 0;
25
- }
26
- */
27
- .sheet_content {
22
+ .default.sheet > .content {
28
23
  top: 0; left: -2px; right: -2px; bottom: -2px; overflow: visible;
29
24
  }
30
- .sheet_bg {
25
+ .default.sheet > .content > .bg {
31
26
  left: 24px; top: 0; right: 24px; bottom: 24px;
32
27
  background-repeat: repeat;
33
- background-image: #{this.getCssFilePath('sheet_bg.png')};
28
+ background-image: #url(sheet_bg.png)
34
29
  }
35
- .sheet_body {
30
+ .default.sheet > .content > .body {
36
31
  left: 0; top: 0; right: 0; bottom: 0; overflow: visible;
37
32
  }
38
- .sheet_body > * {
39
- background-image: #{this.getCssFilePath('sheet_parts1.png')};
33
+ .default.sheet > .content > .body > * {
34
+ background-image: #url(sheet_parts1.png)
40
35
  }
41
- .sheet_body_edge_left {
36
+ .default.sheet > .content > .body > .w {
42
37
  left: 0; top: 0; bottom: 24px; width: 24px;
43
38
  background-repeat: repeat-y;
44
39
  background-position: -48px 0;
45
40
  }
46
- .sheet_body_edge_right {
41
+ .default.sheet > .content > .body > .e {
47
42
  right: 0; top: 0; bottom: 24px; width: 24px;
48
43
  background-repeat: repeat-y;
49
44
  background-position: -72px 0;
50
45
  }
51
- .sheet_body_corner_left {
46
+ .default.sheet > .content > .body > .sw {
52
47
  left: 0; bottom: 0; height: 24px; width: 24px;
53
48
  background-position: 0 0;
54
49
  }
55
- .sheet_body_corner_right {
50
+ .default.sheet > .content > .body > .se {
56
51
  right: 0; bottom: 0; height: 24px; width: 24px;
57
52
  background-position: -24px 0;
58
53
  }
59
- .sheet_body_edge_bottom {
54
+ .default.sheet > .content > .body > .s {
60
55
  left: 24px; bottom: 0; right: 24px; height: 24px;
61
56
  background-repeat: repeat-x;
62
57
  background-position: 0 0;
63
- background-image: #{this.getCssFilePath('sheet_parts2.png')};
58
+ background-image: #url(sheet_parts2.png)
64
59
  }
65
- .sheet_subview {
60
+ .default.sheet > .content > .subview {
66
61
  left: 2px; top: 0; right: 2px; bottom: 2px;
67
62
  }
68
63
 
@@ -1,12 +1,12 @@
1
- <div class="sheet_dimmer" id="dimmer]I["></div>
2
- <div class="sheet_content" id="state]I[">
3
- <div class="sheet_bg" id="bg]I["></div>
4
- <div class="sheet_body">
5
- <div class="sheet_body_edge_left"></div>
6
- <div class="sheet_body_edge_right"></div>
7
- <div class="sheet_body_edge_bottom"></div>
8
- <div class="sheet_body_corner_left"></div>
9
- <div class="sheet_body_corner_right"></div>
1
+ <div class="dimmer" id="dimmer]I["></div>
2
+ <div class="content" id="state]I[">
3
+ <div class="bg" id="bg]I["></div>
4
+ <div class="body">
5
+ <div class="w"></div>
6
+ <div class="e"></div>
7
+ <div class="s"></div>
8
+ <div class="sw"></div>
9
+ <div class="se"></div>
10
10
  </div>
11
- <div class="sheet_subview" id="subview]I["></div>
11
+ <div class="subview" id="subview]I["></div>
12
12
  </div>
@@ -11,7 +11,7 @@ HNumericTextControl = HTextControl.extend
11
11
  mouseWheel: true
12
12
  contextMenu: true
13
13
  keyDown: true
14
- textEnter: false
14
+ textEnter: true
15
15
  click: true
16
16
  contextMenu: true
17
17
 
@@ -57,10 +57,15 @@ HNumericTextControl = HTextControl.extend
57
57
  _value = parseInt( _value, 10 )
58
58
  if isNaN( _value )
59
59
  _value = @value
60
+ @setValid(false)
60
61
  if _value > @maxValue
61
62
  _value = @maxValue
63
+ @setValid(false)
62
64
  else if _value < @minValue
65
+ @setValid(false)
63
66
  _value = @minValue
67
+ else
68
+ @setValid(true)
64
69
  _value
65
70
 
66
71
  fieldToValue: (_unFilteredValue)->
@@ -95,9 +100,7 @@ HNumericTextControl = HTextControl.extend
95
100
  ###
96
101
  # validateText: (_value)-> _value
97
102
 
98
- _extraLabelRight: 0
99
103
  drawSubviews: ->
100
- @base()
101
104
  @setStyleOfPart('value','textAlign','right')
102
105
  if @options.withStepper
103
106
  this._extraLabelRight += 14
@@ -116,16 +119,6 @@ HNumericTextControl = HTextControl.extend
116
119
  enabled: @enabled
117
120
  )
118
121
  @stepper.bringToFront()
119
- if @options.unit
120
- _unitRect = [null,null,4,@rect.height,4,0]
121
- @unitSuffix = HLabel.new(_unitRect,@,
122
- pack: true
123
- label: @options.unit
124
- style:
125
- lineHeight: @rect.height+'px'
126
- verticalAlign: 'middle'
127
- )
128
- @_extraLabelRight += @unitSuffix.rect.width
129
- @setStyleOfPart('label','right',this._extraLabelRight+'px')
122
+ @drawUnit()
130
123
 
131
124
  HNumberField = HNumericTextControl
@@ -8,8 +8,4 @@
8
8
  **
9
9
  ***/
10
10
  var//RSence.Controls
11
- HPasswordControl = HTextControl.extend({
12
-
13
- componentName: 'passwordcontrol'
14
-
15
- });
11
+ HPasswordControl = HTextControl.extend({fieldType: 'password'});
@@ -1,69 +1,59 @@
1
- .radiobutton_control,
2
- .radiobutton_state,
3
- .radiobutton_label,
4
- .radiobutton_antiselect {
5
- position: absolute; height: 24px;
6
- }
7
- .radiobutton_control {
1
+ .default.radiobutton {
8
2
  left: 0px; top: 0px; right: 0px;
9
3
  cursor: pointer;
10
4
  }
11
- .disabled > .radiobutton_control {
5
+ .default.radiobutton.disabled {
12
6
  cursor: default;
13
7
  }
14
- .radiobutton_state {
8
+ .default.radiobutton.radiobutton > .state,
9
+ .default.radiobutton.radiobutton > .label {
10
+ position: absolute; height: 24px;
11
+ }
12
+ .default.radiobutton > .state {
15
13
  left: 0px; top: 0px; width: 24px;
16
14
  background-repeat: no-repeat;
17
15
  background-position: -24px 0px;
18
- background-image: #{this.getCssFilePath('radiobutton_parts1.png')};
19
- }
20
-
21
- .enabled > .unchecked > .radiobutton_state {
22
- background-position: -24px 0px;
16
+ background-image: #url(radiobutton_parts1.png);
23
17
  }
24
- .enabled > .unchecked:hover > .radiobutton_state {
18
+ .default.radiobutton.enabled:hover > .state {
25
19
  background-position: -24px -24px;
26
20
  }
27
- .enabled > .unchecked:active > .radiobutton_state {
21
+ .default.radiobutton.enabled:active > .state {
28
22
  background-position: -24px -48px;
29
23
  }
30
24
 
31
- .enabled > .checked > .radiobutton_state {
25
+ .default.radiobutton.enabled.checked > .state {
32
26
  background-position: 0px 0px;
33
27
  }
34
- .enabled > .checked:hover > .radiobutton_state {
28
+ .default.radiobutton.enabled.checked:hover > .state {
35
29
  background-position: 0px -24px;
36
30
  }
37
- .enabled > .checked:active > .radiobutton_state {
31
+ .default.radiobutton.enabled.checked:active > .state {
38
32
  background-position: 0px -48px;
39
33
  }
40
34
 
41
- .disabled > .unchecked > .radiobutton_state {
35
+ .default.radiobutton.disabled > .state {
42
36
  background-position: -24px -72px;
43
37
  }
44
- .disabled > .checked > .radiobutton_state {
38
+ .default.radiobutton.disabled.checked > .state {
45
39
  background-position: 0px -72px;
46
40
  }
47
41
 
48
- .radiobutton_label {
49
- left: 24px; right: 0px; top: 0px;
50
- height: 20px; line-height: 24px;
42
+ .default.radiobutton > .label {
43
+ left: 24px; right: 0px; top: 2px;
44
+ height: 20px; line-height: 20px;
51
45
  text-align: left; vertical-align: middle;
52
46
  font-family: Helvetica, Arial, sans-serif;
53
47
  font-size: 12px;
54
48
  color: #333;
55
49
  }
56
- .disabled > .radiobutton_control > .radiobutton_label {
50
+ .default.radiobutton.disabled > .label {
57
51
  color: #999;
58
52
  }
59
- .enabled > .radiobutton_control:hover > .radiobutton_label {
53
+ .default.radiobutton.enabled:hover > .label {
60
54
  color: #000;
61
55
  }
62
- .enabled > .radiobutton_control:active > .radiobutton_label {
56
+ .default.radiobutton.enabled:active > .label {
63
57
  color: #000;
64
58
  }
65
59
 
66
- .radiobutton_antiselect {
67
- left: 0px; top: 0px; right: 0px;
68
- }
69
-
@@ -1,6 +1,8 @@
1
- <div class="radiobutton_control#{this.value?' checked':' unchecked'}" id="control]I[">
2
- <div class="radiobutton_state" id="state]I["></div>
3
- <div class="radiobutton_label" id="label]I[">#{this.label}</div>
4
- <div class="radiobutton_antiselect"></div>
5
- </div>
6
- ${this.labelPadding=24}
1
+ <div class="state" id="state]I["></div>
2
+ <div class="label" id="label]I[">#{this.label}</div>
3
+ ${#!coffee
4
+ @labelPadding=24
5
+ @pushTask =>
6
+ @refreshValue()
7
+ @markupElemIds.control = @elemId
8
+ }
@@ -45,7 +45,7 @@
45
45
  position: absolute;
46
46
  height: 24px;
47
47
  background-repeat: no-repeat;
48
- background-image: #{this.getCssFilePath('searchfield_parts1.png')};
48
+ background-image: #url(searchfield_parts1.png);
49
49
  }
50
50
 
51
51
  .default .searchfield_fade {
@@ -5,7 +5,7 @@
5
5
  height: 7px; top: 7px;
6
6
  font-size: 0;
7
7
  cursor: col-resize;
8
- background-image: #{this.getCssFilePath('hslider_tracks.png')};
8
+ background-image: #url(hslider_tracks.png);
9
9
  }
10
10
 
11
11
  .slider_track_left {
@@ -42,7 +42,7 @@
42
42
  font-size: 0;
43
43
  cursor: col-resize;
44
44
  background-position: 0 0;
45
- background-image: #{this.getCssFilePath('slider_thumbs.png')};
45
+ background-image: #url(slider_thumbs.png);
46
46
  }
47
47
 
48
48
  .slider_thumb:active {
@@ -58,7 +58,7 @@
58
58
  position: absolute;
59
59
  cursor: col-resize;
60
60
  top: 0; height: 21px; width: 21px;
61
- background-image: #{this.getCssFilePath('slider_thumbs.png')};
61
+ background-image: #url(slider_thumbs.png);
62
62
  }
63
63
 
64
64
  .slider_thumb_n {
@@ -5,7 +5,7 @@
5
5
  width: 7px; left: 7px;
6
6
  font-size: 0;
7
7
  cursor: row-resize;
8
- background-image: #{this.getCssFilePath('vslider_tracks.png')};
8
+ background-image: #url(vslider_tracks.png);
9
9
  }
10
10
 
11
11
  .vslider_track_top {
@@ -41,7 +41,7 @@
41
41
  left: 0; width: 21px; height: 21px;
42
42
  background-position: 0 0;
43
43
  cursor: row-resize;
44
- background-image: #{this.getCssFilePath('slider_thumbs.png')};
44
+ background-image: #url(slider_thumbs.png);
45
45
  }
46
46
 
47
47
  .vslider_thumb:active {
@@ -57,7 +57,7 @@
57
57
  position: absolute;
58
58
  top: 0; height: 21px; width: 21px;
59
59
  cursor: row-resize;
60
- background-image: #{this.getCssFilePath('slider_thumbs.png')};
60
+ background-image: #url(slider_thumbs.png);
61
61
  }
62
62
 
63
63
  .vslider_thumb_e,
@@ -6,7 +6,7 @@
6
6
  height: 23px;
7
7
  background-position: 0px 0px;
8
8
  background-repeat: no-repeat;
9
- background-image: #{this.getCssFilePath('stepper.png')};
9
+ background-image: #url(stepper.png);
10
10
  }
11
11
 
12
12
  .disabled .stepper_state {
@@ -22,19 +22,6 @@ var HStringView, HLabel;
22
22
 
23
23
  optimizeWidthOnRefresh: true,
24
24
 
25
- /** = Description
26
- * The setStyle method of HStringView applies only to the value
27
- * element (not the whole component).
28
- *
29
- **/
30
- setStyle: function(_name, _value, _cacheOverride) {
31
- if (!this['markupElemIds']||!this.markupElemIds['value']) {
32
- return this;
33
- }
34
- this.setStyleOfPart( 'value', _name, _value, _cacheOverride);
35
- return this;
36
- },
37
-
38
25
  /** = Description
39
26
  * The refreshLabel of HStringView sets a tool tip.
40
27
  * Applied by the setLabel method and the label attribute of options.
@@ -43,23 +30,29 @@ var HStringView, HLabel;
43
30
  refreshLabel: function() {
44
31
  if(this.markupElemIds && this.markupElemIds.value) {
45
32
  if( this.value !== undefined ){
46
- this.setAttrOfPart( 'value', 'title', this.label );
33
+ this.setAttr( 'title', this.label );
47
34
  }
48
35
  else {
49
- this.setMarkupOfPart( 'value', this.label );
36
+ this.setHTML( this.label );
50
37
  }
51
38
  }
52
39
  },
53
40
 
54
41
  labelPadding: 0,
55
42
  optimizeWidth: function(){
56
- var _labelWidth = this.stringWidth((this.value || this.label),null,this.markupElemIds.value);
43
+ var _labelWidth = this.stringWidth((this.value || this.label));
57
44
  _labelWidth += this.labelPadding;
58
45
  if( this.rect.width !== _labelWidth ){
59
46
  this.rect.setWidth(_labelWidth);
60
47
  this.drawRect();
61
48
  }
49
+ },
50
+
51
+ extDraw: function(){
52
+ this.markupElemIds.value = this.elemId;
53
+ if(this.options.noWrap){this.setCSSClass( 'nowrap' );}
62
54
  }
55
+
63
56
  };
64
57
 
65
58
  HLabel = HView.extend( _HStringViewInterface );
@@ -1,8 +1,16 @@
1
- .stringview {
1
+ .default.stringview {
2
2
  color: #333;
3
3
  padding: 1px;
4
4
  font-size: 12px;
5
5
  font-family: Helvetica, Arial, sans-serif;
6
6
  overflow-y: visible;
7
+ text-align: left;
8
+ }
9
+ .default.stringview.nowrap {
10
+ white-space: nowrap;
11
+ overflow-x: hidden;
12
+ text-overflow: ellipsis;
13
+ }
14
+ .default.disabled.stringview {
15
+ color: #666;
7
16
  }
8
-
@@ -17,7 +17,7 @@
17
17
  .tab_label .tablabel,
18
18
  .tab_label_fill_bg {
19
19
  background-repeat: no-repeat;
20
- background-image: #{this.getCssFilePath('tab_parts1.png')};
20
+ background-image: #url(tab_parts1.png);
21
21
  }
22
22
  .tab_label_fill_bg {
23
23
  position: absolute;
@@ -68,11 +68,11 @@
68
68
  position: absolute;
69
69
  top: 24px; left: 0; right: 0; bottom: 0;
70
70
  border-radius: 0 0 3px 3px;
71
- background-image: #{this.getCssFilePath('tab_border_pattern.png')};
71
+ background-image: #url(tab_border_pattern.png);
72
72
  }
73
73
  .tab_fg {
74
74
  position: absolute;
75
75
  top: 0; left: 1px; right: 1px; bottom: 1px;
76
76
  border-radius: 0 0 3px 3px;
77
- background-image: #{this.getCssFilePath('tab_bg_color.png')};
77
+ background-image: #url(tab_bg_color.png);
78
78
  }
@@ -9,8 +9,6 @@
9
9
  ***/
10
10
  var//RSence.Controls
11
11
  HTextArea = HTextControl.extend({
12
-
13
- componentName: "textarea",
12
+ multiline: true,
14
13
  defaultKey: function(){return false;} // bypass handler for return presses
15
-
16
14
  });