From f7e4257745ccd44b8d24555f0ef787429d6e472c Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 5 Jun 2012 00:11:03 -0700 Subject: adding the latest v0.10 montage Signed-off-by: Valerio Virgillito --- .../autocomplete/autocomplete.reel/autocomplete.js | 15 +- .../results-list.reel/results-list.html | 11 +- .../bluemoon/button-group.reel/button-group.html | 2 +- .../montage/ui/bluemoon/button.reel/button.html | 2 +- .../ui/bluemoon/progress.reel/progress.html | 1 - .../montage/ui/bluemoon/progress.reel/progress.js | 11 +- .../montage/ui/bluemoon/slider.reel/slider.html | 2 +- .../montage/ui/bluemoon/slider.reel/slider.js | 267 +++++++-------------- node_modules/montage/ui/button.reel/button.js | 2 +- node_modules/montage/ui/component.js | 22 +- node_modules/montage/ui/composer/composer.js | 9 +- .../montage/ui/composer/translate-composer.js | 99 +++----- .../montage/ui/condition.reel/condition.js | 13 +- .../montage/ui/controller/array-controller.js | 247 +++++++++---------- .../ui/controller/paged-array-controller.js | 260 -------------------- .../montage/ui/dynamic-text.reel/dynamic-text.js | 6 +- node_modules/montage/ui/editable-text.js | 3 +- node_modules/montage/ui/flow.reel/flow.html | 11 +- node_modules/montage/ui/flow.reel/flow.js | 44 +++- node_modules/montage/ui/list.reel/list.html | 6 +- node_modules/montage/ui/list.reel/list.js | 24 +- node_modules/montage/ui/loader.reel/loader.js | 5 + .../ui/loading-panel.reel/loading-panel.html | 11 +- node_modules/montage/ui/loading.reel/loading.html | 2 +- node_modules/montage/ui/loading.reel/loading.js | 3 +- node_modules/montage/ui/native-control.js | 50 ++-- .../montage/ui/popup/alert.reel/alert.html | 10 +- .../montage/ui/popup/confirm.reel/confirm.html | 8 +- .../montage/ui/popup/notifier.reel/notifier.html | 2 +- .../montage/ui/popup/notifier.reel/notifier.js | 6 +- .../montage/ui/popup/popup.reel/popup.html | 4 +- node_modules/montage/ui/popup/popup.reel/popup.js | 41 ++-- .../montage/ui/repetition.reel/repetition.js | 188 +++++++-------- .../rich-text-linkpopup.html | 4 +- .../rich-text-resizer.reel/rich-text-resizer.html | 4 +- .../rich-text-editor.reel/rich-text-editor-base.js | 2 +- .../rich-text-editor.reel/rich-text-editor.css | 7 +- .../rich-text-editor.reel/rich-text-editor.html | 4 +- .../rich-text-editor.reel/rich-text-editor.js | 6 +- .../montage/ui/scroll-bars.reel/scroll-bars.html | 1 - .../montage/ui/scroll-bars.reel/scroll-bars.js | 61 +++-- .../montage/ui/scroller.reel/scroller.html | 12 +- node_modules/montage/ui/scroller.reel/scroller.js | 32 ++- .../montage/ui/select-input.reel/select-input.js | 27 ++- .../ui/skeleton/range-input.reel/range-input.css | 6 +- .../ui/skeleton/range-input.reel/range-input.html | 6 +- .../ui/skeleton/range-input.reel/range-input.js | 173 ++++++++----- node_modules/montage/ui/slot.reel/slot.js | 13 +- .../montage/ui/substitution.reel/substitution.js | 10 +- node_modules/montage/ui/tabs.reel/tabs.html | 6 +- node_modules/montage/ui/tabs.reel/tabs.js | 21 +- node_modules/montage/ui/template.js | 13 +- node_modules/montage/ui/text-input.js | 43 ++-- .../montage/ui/toggle-button.reel/toggle-button.js | 50 ++-- .../token-field/token-field.reel/token-field.html | 12 +- .../ui/token-field/token-field.reel/token-field.js | 24 +- .../montage/ui/token-field/token.reel/token.html | 6 +- .../montage/ui/token-field/token.reel/token.js | 65 +++-- .../montage/ui/video-player.reel/video-player.html | 44 ++-- 59 files changed, 933 insertions(+), 1106 deletions(-) delete mode 100755 node_modules/montage/ui/controller/paged-array-controller.js (limited to 'node_modules/montage/ui') diff --git a/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js b/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js index c9cbca74..4e2dd82e 100644 --- a/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js +++ b/node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js @@ -70,7 +70,6 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { _delay: {value: null}, delay: { - distinct: true, get: function(){ return this._delay; }, @@ -81,7 +80,8 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { } this._delay = value; } - } + }, + serializable: true }, /** @@ -89,7 +89,8 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { * Default = 2 */ minLength: { - value: null + value: null, + serializable: true }, _tokens: {value: null}, @@ -104,8 +105,7 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { }, modify: function(v) { this._tokens = v; - }, - distinct: true + } }, // overridden here to get the substring/searchString @@ -241,7 +241,6 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { _suggestedValue: {value: null}, suggestedValue: { - distinct: true, enumerable: false, get: function() { return this._suggestedValue; @@ -443,7 +442,9 @@ var Autocomplete = exports.Autocomplete = Montage.create(TextInput, { fn.call(this); if (!this._valueSyncedWithInputField) { - this.value = this.tokens.join(this.separator); + if(this.tokens) { + this.value = this.tokens.join(this.separator); + } if(this.value && this.value.charAt(this.value.length-1) != this.separator) { this.value += this.separator; } diff --git a/node_modules/montage/ui/autocomplete/results-list.reel/results-list.html b/node_modules/montage/ui/autocomplete/results-list.reel/results-list.html index 2f904d62..c40d36ce 100644 --- a/node_modules/montage/ui/autocomplete/results-list.reel/results-list.html +++ b/node_modules/montage/ui/autocomplete/results-list.reel/results-list.html @@ -9,21 +9,20 @@ { "results": { - "prototype": "montage/ui/controller/array-controller", + "prototype": "ui/controller/array-controller", "properties": { "selectObjectsOnAddition": true, "automaticallyOrganizeObjects": true } }, "repetition1": { - "prototype": "montage/ui/repetition.reel", + "prototype": "ui/repetition.reel", "properties": { "element": { "#": "repetition1" }, "contentController": {"@": "results"}, - "isSelectionEnabled": true, - "orientation": "vertical" + "isSelectionEnabled": true }, "bindings": { "contentController": {"<-": "@owner.contentController"}, @@ -32,7 +31,7 @@ }, "resultItem": { - "prototype": "montage/ui/autocomplete/result-item.reel", + "prototype": "ui/autocomplete/result-item.reel", "properties": { "element": {"#": "result-item"} }, @@ -43,7 +42,7 @@ }, "owner": { - "prototype": "montage/ui/autocomplete/results-list.reel", + "prototype": "ui/autocomplete/results-list.reel", "properties": { "element": {"#": "results-list"} } diff --git a/node_modules/montage/ui/bluemoon/button-group.reel/button-group.html b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.html index 8b192be4..e56d0bab 100644 --- a/node_modules/montage/ui/bluemoon/button-group.reel/button-group.html +++ b/node_modules/montage/ui/bluemoon/button-group.reel/button-group.html @@ -11,7 +11,7 @@