dojo_src 1.4.102 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -3
- data/bin/dojofy +1 -1
- data/dojo/dijit/Calendar.js +62 -24
- data/dojo/dijit/CheckedMenuItem.js +1 -1
- data/dojo/dijit/ColorPalette.js +43 -288
- data/dojo/dijit/Dialog.js +25 -24
- data/dojo/dijit/DialogUnderlay.js +3 -1
- data/dojo/dijit/Editor.js +229 -68
- data/dojo/dijit/InlineEditBox.js +72 -35
- data/dojo/dijit/LICENSE +1 -1
- data/dojo/dijit/Menu.js +75 -76
- data/dojo/dijit/MenuBar.js +5 -10
- data/dojo/dijit/MenuItem.js +18 -11
- data/dojo/dijit/PopupMenuItem.js +1 -0
- data/dojo/dijit/ProgressBar.js +1 -1
- data/dojo/dijit/TitlePane.js +18 -38
- data/dojo/dijit/Toolbar.js +4 -1
- data/dojo/dijit/ToolbarSeparator.js +1 -1
- data/dojo/dijit/Tooltip.js +7 -14
- data/dojo/dijit/Tree.js +116 -64
- data/dojo/dijit/_Container.js +5 -11
- data/dojo/dijit/_CssStateMixin.js +252 -0
- data/dojo/dijit/_DialogMixin.js +3 -1
- data/dojo/dijit/_HasDropDown.js +48 -58
- data/dojo/dijit/_KeyNavContainer.js +4 -4
- data/dojo/dijit/_PaletteMixin.js +313 -0
- data/dojo/dijit/_Templated.js +2 -1
- data/dojo/dijit/_TimePicker.js +11 -6
- data/dojo/dijit/_Widget.js +125 -63
- data/dojo/dijit/_base/focus.js +15 -9
- data/dojo/dijit/_base/manager.js +210 -183
- data/dojo/dijit/_base/place.js +3 -52
- data/dojo/dijit/_base/popup.js +101 -89
- data/dojo/dijit/_base/scroll.js +4 -91
- data/dojo/dijit/_base/sniff.js +3 -66
- data/dojo/dijit/_base/typematic.js +31 -27
- data/dojo/dijit/_base/window.js +3 -23
- data/dojo/dijit/_editor/RichText.js +180 -74
- data/dojo/dijit/_editor/_Plugin.js +17 -16
- data/dojo/dijit/_editor/html.js +1 -1
- data/dojo/dijit/_editor/nls/FontChoice.js +2 -1
- data/dojo/dijit/_editor/nls/ar/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/ar/commands.js +12 -6
- data/dojo/dijit/_editor/nls/ca/LinkDialog.js +8 -3
- data/dojo/dijit/_editor/nls/ca/commands.js +4 -0
- data/dojo/dijit/_editor/nls/da/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/da/commands.js +6 -1
- data/dojo/dijit/_editor/nls/el/LinkDialog.js +8 -2
- data/dojo/dijit/_editor/nls/el/commands.js +7 -2
- data/dojo/dijit/_editor/nls/fi/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/fi/commands.js +7 -2
- data/dojo/dijit/_editor/nls/he/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/he/commands.js +9 -2
- data/dojo/dijit/_editor/nls/ja/commands.js +9 -10
- data/dojo/dijit/_editor/nls/nb/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/nb/commands.js +5 -0
- data/dojo/dijit/_editor/nls/nl/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/nl/commands.js +5 -0
- data/dojo/dijit/_editor/nls/pt-pt/LinkDialog.js +8 -2
- data/dojo/dijit/_editor/nls/pt-pt/commands.js +5 -0
- data/dojo/dijit/_editor/nls/ro/FontChoice.js +27 -0
- data/dojo/dijit/_editor/nls/ro/LinkDialog.js +13 -0
- data/dojo/dijit/_editor/nls/ro/commands.js +48 -0
- data/dojo/dijit/_editor/nls/sk/LinkDialog.js +9 -4
- data/dojo/dijit/_editor/nls/sk/commands.js +4 -0
- data/dojo/dijit/_editor/nls/sl/LinkDialog.js +6 -1
- data/dojo/dijit/_editor/nls/sl/commands.js +12 -8
- data/dojo/dijit/_editor/nls/sv/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/sv/commands.js +8 -2
- data/dojo/dijit/_editor/nls/th/LinkDialog.js +6 -1
- data/dojo/dijit/_editor/nls/th/commands.js +6 -2
- data/dojo/dijit/_editor/nls/tr/LinkDialog.js +7 -1
- data/dojo/dijit/_editor/nls/tr/commands.js +5 -0
- data/dojo/dijit/_editor/nls/zh-tw/LinkDialog.js +1 -1
- data/dojo/dijit/_editor/nls/zh/commands.js +3 -3
- data/dojo/dijit/_editor/plugins/AlwaysShowToolbar.js +2 -2
- data/dojo/dijit/_editor/plugins/EnterKeyHandling.js +85 -4
- data/dojo/dijit/_editor/plugins/FontChoice.js +194 -32
- data/dojo/dijit/_editor/plugins/FullScreen.js +76 -32
- data/dojo/dijit/_editor/plugins/LinkDialog.js +79 -22
- data/dojo/dijit/_editor/plugins/NewPage.js +7 -2
- data/dojo/dijit/_editor/plugins/Print.js +6 -3
- data/dojo/dijit/_editor/plugins/TabIndent.js +2 -2
- data/dojo/dijit/_editor/plugins/TextColor.js +75 -23
- data/dojo/dijit/_editor/plugins/ToggleDir.js +1 -1
- data/dojo/dijit/_editor/plugins/ViewSource.js +53 -28
- data/dojo/dijit/_editor/range.js +22 -19
- data/dojo/dijit/_editor/selection.js +56 -4
- data/dojo/dijit/dijit-all.js +5 -1
- data/dojo/dijit/form/Button.js +24 -58
- data/dojo/dijit/form/CheckBox.js +27 -19
- data/dojo/dijit/form/ComboBox.js +73 -54
- data/dojo/dijit/form/CurrencyTextBox.js +8 -5
- data/dojo/dijit/form/FilteringSelect.js +14 -6
- data/dojo/dijit/form/Form.js +26 -16
- data/dojo/dijit/form/HorizontalRuleLabels.js +2 -2
- data/dojo/dijit/form/HorizontalSlider.js +12 -1
- data/dojo/dijit/form/MultiSelect.js +3 -3
- data/dojo/dijit/form/NumberSpinner.js +4 -5
- data/dojo/dijit/form/NumberTextBox.js +25 -17
- data/dojo/dijit/form/Select.js +24 -18
- data/dojo/dijit/form/SimpleTextarea.js +2 -2
- data/dojo/dijit/form/TextBox.js +72 -12
- data/dojo/dijit/form/Textarea.js +8 -1
- data/dojo/dijit/form/TimeTextBox.js +3 -2
- data/dojo/dijit/form/ValidationTextBox.js +56 -42
- data/dojo/dijit/form/VerticalRuleLabels.js +4 -1
- data/dojo/dijit/form/VerticalSlider.js +0 -30
- data/dojo/dijit/form/_DateTimeTextBox.js +23 -17
- data/dojo/dijit/form/_FormMixin.js +23 -19
- data/dojo/dijit/form/_FormSelectWidget.js +3 -3
- data/dojo/dijit/form/_FormWidget.js +66 -164
- data/dojo/dijit/form/_Spinner.js +18 -37
- data/dojo/dijit/form/nls/ro/ComboBox.js +5 -0
- data/dojo/dijit/form/nls/ro/Textarea.js +8 -0
- data/dojo/dijit/form/nls/ro/validate.js +6 -0
- data/dojo/dijit/form/templates/Button.html +15 -16
- data/dojo/dijit/form/templates/CheckBox.html +3 -3
- data/dojo/dijit/form/templates/ComboBox.html +13 -14
- data/dojo/dijit/form/templates/ComboButton.html +13 -10
- data/dojo/dijit/form/templates/DropDownButton.html +18 -20
- data/dojo/dijit/form/templates/HorizontalSlider.html +7 -7
- data/dojo/dijit/form/templates/Select.html +7 -8
- data/dojo/dijit/form/templates/Spinner.html +23 -24
- data/dojo/dijit/form/templates/TextBox.html +6 -4
- data/dojo/dijit/form/templates/ValidationTextBox.html +8 -10
- data/dojo/dijit/form/templates/VerticalSlider.html +8 -9
- data/dojo/dijit/icons/commonIcons.css +164 -0
- data/dojo/dijit/icons/commonIcons_rtl.css +127 -0
- data/dojo/dijit/icons/editorIcons.css +78 -0
- data/dojo/dijit/icons/editorIcons_rtl.css +23 -0
- data/dojo/dijit/icons/images/commonIconsObjActDisabled.png +0 -0
- data/dojo/dijit/icons/images/commonIconsObjActDisabled_rtl.png +0 -0
- data/dojo/dijit/icons/images/commonIconsObjActEnabled.png +0 -0
- data/dojo/dijit/icons/images/commonIconsObjActEnabled8bit.png +0 -0
- data/dojo/dijit/icons/images/commonIconsObjActEnabled8bit_rtl.png +0 -0
- data/dojo/dijit/icons/images/commonIconsObjActEnabled_rtl.png +0 -0
- data/dojo/dijit/icons/images/editorIconsDisabled.png +0 -0
- data/dojo/dijit/icons/images/editorIconsDisabled_rtl.png +0 -0
- data/dojo/dijit/icons/images/editorIconsEnabled.png +0 -0
- data/dojo/dijit/icons/images/editorIconsEnabled_rtl.png +0 -0
- data/dojo/dijit/icons/images/loadingAnimation_rtl.gif +0 -0
- data/dojo/dijit/layout/AccordionContainer.js +214 -104
- data/dojo/dijit/layout/BorderContainer.js +50 -38
- data/dojo/dijit/layout/ContentPane.js +13 -11
- data/dojo/dijit/layout/ScrollingTabController.js +29 -28
- data/dojo/dijit/layout/SplitContainer.js +0 -1
- data/dojo/dijit/layout/StackContainer.js +15 -22
- data/dojo/dijit/layout/StackController.js +15 -18
- data/dojo/dijit/layout/TabContainer.js +2 -0
- data/dojo/dijit/layout/TabController.js +21 -17
- data/dojo/dijit/layout/_LayoutWidget.js +0 -1
- data/dojo/dijit/layout/templates/AccordionButton.html +5 -3
- data/dojo/dijit/layout/templates/ScrollingTabController.html +13 -8
- data/dojo/dijit/layout/templates/_ScrollingTabControllerButton.html +4 -5
- data/dojo/dijit/layout/templates/_TabButton.html +10 -9
- data/dojo/dijit/nls/ro/common.js +7 -0
- data/dojo/dijit/nls/ro/loading.js +5 -0
- data/dojo/dijit/robot.js +0 -97
- data/dojo/dijit/robotx.js +1 -1
- data/dojo/dijit/templates/Calendar.html +6 -6
- data/dojo/dijit/templates/CheckedMenuItem.html +3 -4
- data/dojo/dijit/templates/ColorPalette.html +4 -3
- data/dojo/dijit/templates/Dialog.html +1 -1
- data/dojo/dijit/templates/Menu.html +1 -1
- data/dojo/dijit/templates/MenuBarItem.html +1 -1
- data/dojo/dijit/templates/MenuItem.html +3 -3
- data/dojo/dijit/templates/MenuSeparator.html +6 -2
- data/dojo/dijit/templates/ProgressBar.html +1 -2
- data/dojo/dijit/templates/TimePicker.html +1 -1
- data/dojo/dijit/templates/TitlePane.html +8 -6
- data/dojo/dijit/templates/TreeNode.html +3 -3
- data/dojo/dijit/tests/Tree.html +16 -30
- data/dojo/dijit/tests/Tree_with_JRS.html +33 -27
- data/dojo/dijit/tests/Widget-placeAt.html +6 -6
- data/dojo/dijit/tests/_Container.html +1 -1
- data/dojo/dijit/tests/_Templated-widgetsInTemplate.html +2 -2
- data/dojo/dijit/tests/_Widget-attr.html +26 -7
- data/dojo/dijit/tests/_Widget-connect-performance.html +1 -1
- data/dojo/dijit/tests/_Widget-deferredConnect.html +1 -1
- data/dojo/dijit/tests/_Widget-lifecycle.html +1 -1
- data/dojo/dijit/tests/_Widget-ondijitclick.html +1 -1
- data/dojo/dijit/tests/_Widget-subscribe.html +1 -1
- data/dojo/dijit/tests/_altCalendar.html +12 -11
- data/dojo/dijit/tests/_base/module.js +5 -9
- data/dojo/dijit/tests/_base/place.html +2 -1
- data/dojo/dijit/tests/_base/robot/FocusManager.html +0 -2
- data/dojo/dijit/tests/_base/robot/focus_mouse.html +0 -1
- data/dojo/dijit/tests/_base/robot/popup.html +0 -1
- data/dojo/dijit/tests/_base/robot/typematic.html +72 -0
- data/dojo/dijit/tests/_base/tabindex.html +1 -1
- data/dojo/dijit/tests/_base/test_FocusManager.html +3 -2
- data/dojo/dijit/tests/_base/test_focusWidget.html +1 -1
- data/dojo/dijit/tests/_base/test_typematic.html +10 -3
- data/dojo/dijit/tests/_testCommon.js +28 -12
- data/dojo/dijit/tests/bidi.html +188 -0
- data/dojo/dijit/tests/editor/BackForwardState.html +2 -2
- data/dojo/dijit/tests/editor/EnterKeyHandling.html +31 -11
- data/dojo/dijit/tests/editor/_Editor.html +5 -4
- data/dojo/dijit/tests/editor/nls_8859-2.html +4 -4
- data/dojo/dijit/tests/editor/nls_sjis.html +5 -5
- data/dojo/dijit/tests/editor/nls_utf8.html +2 -2
- data/dojo/dijit/tests/editor/robot/BackForwardState.html +8 -9
- data/dojo/dijit/tests/editor/robot/Editor_FontChoice.html +282 -757
- data/dojo/dijit/tests/editor/robot/Editor_FullScreen.html +55 -55
- data/dojo/dijit/tests/editor/robot/Editor_LinkDialog.html +502 -123
- data/dojo/dijit/tests/editor/robot/Editor_NewPage.html +11 -11
- data/dojo/dijit/tests/editor/robot/Editor_ViewSource.html +56 -56
- data/dojo/dijit/tests/editor/robot/Editor_a11y.html +14 -14
- data/dojo/dijit/tests/editor/robot/Editor_misc.html +120 -4
- data/dojo/dijit/tests/editor/robot/Editor_mouse.html +4 -4
- data/dojo/dijit/tests/editor/robot/EnterKeyHandling.html +128 -16
- data/dojo/dijit/tests/editor/test_CustomPlugin.html +4 -4
- data/dojo/dijit/tests/editor/test_Editor.html +103 -70
- data/dojo/dijit/tests/editor/test_FontChoice.html +19 -5
- data/dojo/dijit/tests/editor/test_FullScreen.html +2 -2
- data/dojo/dijit/tests/editor/test_LinkDialog.html +2 -2
- data/dojo/dijit/tests/editor/test_NewPage.html +2 -2
- data/dojo/dijit/tests/editor/test_Print.html +2 -2
- data/dojo/dijit/tests/editor/test_TabIndent.html +2 -2
- data/dojo/dijit/tests/editor/test_ToggleDir.html +2 -2
- data/dojo/dijit/tests/editor/test_ToggleDir_rtl.html +2 -2
- data/dojo/dijit/tests/editor/test_ViewSource.html +2 -2
- data/dojo/dijit/tests/editor/test_resize.html +1 -1
- data/dojo/dijit/tests/form/Form.html +30 -16
- data/dojo/dijit/tests/form/FormInvalid.html +4 -4
- data/dojo/dijit/tests/form/TextBox_sizes.html +532 -0
- data/dojo/dijit/tests/form/TextBox_sizes.js +456 -0
- data/dojo/dijit/tests/form/_autoComplete.html +35 -15
- data/dojo/dijit/tests/form/module.js +25 -1
- data/dojo/dijit/tests/form/robot/Button_a11y.html +27 -14
- data/dojo/dijit/tests/form/robot/Button_mouse.html +429 -18
- data/dojo/dijit/tests/form/robot/DateTextBox.html +31 -34
- data/dojo/dijit/tests/form/robot/Form.html +3 -4
- data/dojo/dijit/tests/form/robot/Select.html +410 -0
- data/dojo/dijit/tests/form/robot/Slider_a11y.html +27 -28
- data/dojo/dijit/tests/form/robot/Slider_mouse.html +29 -29
- data/dojo/dijit/tests/form/robot/Spinner_a11y.html +88 -51
- data/dojo/dijit/tests/form/robot/Spinner_mouse.html +36 -37
- data/dojo/dijit/tests/form/robot/Textarea.html +178 -0
- data/dojo/dijit/tests/form/robot/TimeTextBox.html +81 -0
- data/dojo/dijit/tests/form/robot/_autoComplete_a11y.html +128 -47
- data/dojo/dijit/tests/form/robot/_autoComplete_mouse.html +171 -24
- data/dojo/dijit/tests/form/robot/test_validate.html +362 -102
- data/dojo/dijit/tests/form/robot/validationMessages.html +470 -0
- data/dojo/dijit/tests/form/runTests.html +9 -0
- data/dojo/dijit/tests/form/test_Button.html +56 -10
- data/dojo/dijit/tests/form/test_CheckBox.html +212 -61
- data/dojo/dijit/tests/form/test_ComboBox_destroy.html +2 -2
- data/dojo/dijit/tests/form/test_DateTextBox.html +17 -12
- data/dojo/dijit/tests/form/test_Form_onsubmit.html +2 -2
- data/dojo/dijit/tests/form/test_MultiSelect.html +7 -7
- data/dojo/dijit/tests/form/test_Select.html +180 -97
- data/dojo/dijit/tests/form/test_SimpleTextarea.html +16 -11
- data/dojo/dijit/tests/form/test_Slider.html +4 -4
- data/dojo/dijit/tests/form/test_Spinner.html +10 -11
- data/dojo/dijit/tests/form/test_Textarea.html +80 -76
- data/dojo/dijit/tests/form/test_TimeTextBox.html +2 -2
- data/dojo/dijit/tests/form/test_validStatePerformance.html +6 -6
- data/dojo/dijit/tests/form/test_validate.html +34 -23
- data/dojo/dijit/tests/form/test_validationState.html +8 -8
- data/dojo/dijit/tests/general-module.js +1 -0
- data/dojo/dijit/tests/helpers.js +2 -2
- data/dojo/dijit/tests/i18n/calendar.html +2 -2
- data/dojo/dijit/tests/i18n/currency.html +1 -1
- data/dojo/dijit/tests/i18n/date.html +1 -1
- data/dojo/dijit/tests/i18n/digit.html +1 -1
- data/dojo/dijit/tests/i18n/module.js +6 -6
- data/dojo/dijit/tests/i18n/number.html +1 -1
- data/dojo/dijit/tests/i18n/textbox.html +1 -1
- data/dojo/dijit/tests/i18n/time.html +1 -1
- data/dojo/dijit/tests/images/copy.gif +0 -0
- data/dojo/dijit/tests/images/cut.gif +0 -0
- data/dojo/dijit/tests/images/note.gif +0 -0
- data/dojo/dijit/tests/images/paste.gif +0 -0
- data/dojo/dijit/tests/infrastructure-module.js +7 -7
- data/dojo/dijit/tests/layout/AccordionContainer.html +81 -23
- data/dojo/dijit/tests/layout/ContentPane.html +40 -40
- data/dojo/dijit/tests/layout/ContentPaneLayout.html +6 -6
- data/dojo/dijit/tests/layout/TabContainer.html +20 -20
- data/dojo/dijit/tests/layout/getResponse.php +1 -1
- data/dojo/dijit/tests/layout/module.js +9 -2
- data/dojo/dijit/tests/layout/nestedStack.html +1 -1
- data/dojo/dijit/tests/layout/robot/AccordionContainer_a11y.html +68 -0
- data/dojo/dijit/tests/layout/robot/AccordionContainer_mouse.html +53 -0
- data/dojo/dijit/tests/layout/robot/BorderContainer.html +358 -0
- data/dojo/dijit/tests/layout/robot/TabContainer_a11y.html +29 -12
- data/dojo/dijit/tests/layout/robot/TabContainer_mouse.html +19 -13
- data/dojo/dijit/tests/layout/test_AccordionContainer.html +12 -8
- data/dojo/dijit/tests/layout/test_AccordionContainerDestroy.html +3 -3
- data/dojo/dijit/tests/layout/test_BorderContainer.html +21 -19
- data/dojo/dijit/tests/layout/test_BorderContainer_complex.html +2 -2
- data/dojo/dijit/tests/layout/test_BorderContainer_experimental.html +2 -2
- data/dojo/dijit/tests/layout/test_BorderContainer_full.html +2 -2
- data/dojo/dijit/tests/layout/test_BorderContainer_nested.html +2 -2
- data/dojo/dijit/tests/layout/test_BorderContainer_prog.html +2 -2
- data/dojo/dijit/tests/layout/test_ContentPane.html +7 -7
- data/dojo/dijit/tests/layout/test_ContentPane_prog.html +4 -4
- data/dojo/dijit/tests/layout/test_Gui.html +2 -2
- data/dojo/dijit/tests/layout/test_LayoutContainer.html +2 -2
- data/dojo/dijit/tests/layout/test_SplitContainer.html +1 -1
- data/dojo/dijit/tests/layout/test_StackContainer.html +6 -6
- data/dojo/dijit/tests/layout/test_StackContainer_code.html +2 -2
- data/dojo/dijit/tests/layout/test_TabContainer.html +10 -10
- data/dojo/dijit/tests/layout/test_TabContainerTitlePane.html +2 -2
- data/dojo/dijit/tests/layout/test_TabContainer_noLayout.html +2 -2
- data/dojo/dijit/tests/layout/test_TabContainer_prog.html +2 -2
- data/dojo/dijit/tests/layout/test_TabContainer_remote.html +2 -2
- data/dojo/dijit/tests/layout/test_refreshOnShow.html +2 -2
- data/dojo/dijit/tests/robot/Calendar_a11y.html +6 -7
- data/dojo/dijit/tests/robot/ColorPalette.html +38 -21
- data/dojo/dijit/tests/robot/Dialog_a11y.html +58 -17
- data/dojo/dijit/tests/robot/Dialog_mouse.html +0 -1
- data/dojo/dijit/tests/robot/InlineEditBox.html +135 -24
- data/dojo/dijit/tests/robot/Menu_a11y.html +7 -7
- data/dojo/dijit/tests/robot/Menu_mouse.html +2 -11
- data/dojo/dijit/tests/robot/TitlePane.html +20 -20
- data/dojo/dijit/tests/robot/Toolbar.html +3 -4
- data/dojo/dijit/tests/robot/TooltipDialog_a11y.html +233 -110
- data/dojo/dijit/tests/robot/TooltipDialog_mouse.html +121 -0
- data/dojo/dijit/tests/robot/Tooltip_a11y.html +15 -15
- data/dojo/dijit/tests/robot/Tooltip_mouse.html +0 -1
- data/dojo/dijit/tests/robot/Tree_a11y.html +74 -1
- data/dojo/dijit/tests/robot/Tree_dnd.html +5 -5
- data/dojo/dijit/tests/robot/Tree_dnd_multiParent.html +4 -4
- data/dojo/dijit/tests/robot/_Widget-deferredConnect.html +0 -1
- data/dojo/dijit/tests/robot/_Widget-ondijitclick_a11y.html +0 -1
- data/dojo/dijit/tests/robot/_Widget-ondijitclick_mouse.html +0 -1
- data/dojo/dijit/tests/test.html +1 -1
- data/dojo/dijit/tests/test_Calendar.html +4 -4
- data/dojo/dijit/tests/test_ColorPalette.html +3 -3
- data/dojo/dijit/tests/test_ColorPalette_quirks.html +5 -0
- data/dojo/dijit/tests/test_Declaration.html +2 -2
- data/dojo/dijit/tests/test_Dialog.html +65 -4
- data/dojo/dijit/tests/test_Dialog_focusDestroy.html +2 -2
- data/dojo/dijit/tests/test_InlineEditBox.html +14 -5
- data/dojo/dijit/tests/test_Menu.html +10 -8
- data/dojo/dijit/tests/test_Menu_iframe.html +1 -1
- data/dojo/dijit/tests/test_ProgressBar.html +2 -2
- data/dojo/dijit/tests/test_TitlePane.html +18 -18
- data/dojo/dijit/tests/test_Toolbar.html +2 -2
- data/dojo/dijit/tests/test_Tooltip.html +3 -3
- data/dojo/dijit/tests/test_TooltipDialog.html +20 -10
- data/dojo/dijit/tests/test_Tree.html +26 -20
- data/dojo/dijit/tests/test_Tree_Notification_API_Support.html +2 -2
- data/dojo/dijit/tests/test_bgIframe.html +2 -2
- data/dojo/dijit/tests/test_instantiate.html +2 -2
- data/dojo/dijit/tests/tree/module.js +2 -2
- data/dojo/dijit/tests/tree/test_CustomLabel.html +2 -2
- data/dojo/dijit/tests/tree/test_Tree_DnD.html +2 -2
- data/dojo/dijit/tests/tree/test_Tree_Programmatic.html +2 -2
- data/dojo/dijit/tests/tree/test_Tree_v1.html +3 -3
- data/dojo/dijit/themes/a11y/colors3x4-rtl.png +0 -0
- data/dojo/dijit/themes/a11y/colors3x4.png +0 -0
- data/dojo/dijit/themes/a11y/colors7x10-rtl.png +0 -0
- data/dojo/dijit/themes/a11y/colors7x10.png +0 -0
- data/dojo/dijit/themes/claro/Calendar.css +257 -0
- data/dojo/dijit/themes/claro/Calendar_rtl.css +19 -0
- data/dojo/dijit/themes/claro/ColorPalette.css +44 -0
- data/dojo/dijit/themes/claro/Common.css +79 -0
- data/dojo/dijit/themes/claro/Dialog.css +212 -0
- data/dojo/dijit/themes/claro/Dialog_rtl.css +10 -0
- data/dojo/dijit/themes/claro/Editor.css +56 -0
- data/dojo/dijit/themes/claro/Editor_rtl.css +7 -0
- data/dojo/dijit/themes/claro/InlineEditBox.css +23 -0
- data/dojo/dijit/themes/claro/Menu.css +182 -0
- data/dojo/dijit/themes/claro/Menu_rtl.css +9 -0
- data/dojo/dijit/themes/claro/ProgressBar.css +53 -0
- data/dojo/dijit/themes/claro/TimePicker.css +125 -0
- data/dojo/dijit/themes/claro/TimePicker_rtl.css +10 -0
- data/dojo/dijit/themes/claro/TitlePane.css +73 -0
- data/dojo/dijit/themes/claro/TitlePane_rtl.css +4 -0
- data/dojo/dijit/themes/claro/Toolbar.css +170 -0
- data/dojo/dijit/themes/claro/Tree.css +122 -0
- data/dojo/dijit/themes/claro/claro.css +29 -0
- data/dojo/dijit/themes/claro/claro_rtl.css +15 -0
- data/dojo/dijit/themes/claro/document.css +109 -0
- data/dojo/dijit/themes/claro/form/Button.css +168 -0
- data/dojo/dijit/themes/claro/form/Button_rtl.css +22 -0
- data/dojo/dijit/themes/claro/form/Checkbox.css +77 -0
- data/dojo/dijit/themes/claro/form/Common.css +176 -0
- data/dojo/dijit/themes/claro/form/Common_rtl.css +10 -0
- data/dojo/dijit/themes/claro/form/NumberSpinner.css +143 -0
- data/dojo/dijit/themes/claro/form/RadioButton.css +82 -0
- data/dojo/dijit/themes/claro/form/Select.css +124 -0
- data/dojo/dijit/themes/claro/form/Select_rtl.css +4 -0
- data/dojo/dijit/themes/claro/form/Slider.css +359 -0
- data/dojo/dijit/themes/claro/form/Slider_rtl.css +31 -0
- data/dojo/dijit/themes/claro/form/images/button.png +0 -0
- data/dojo/dijit/themes/claro/form/images/buttonArrows.png +0 -0
- data/dojo/dijit/themes/claro/form/images/button_grad_d.png +0 -0
- data/dojo/dijit/themes/claro/form/images/checkboxAndRadioButtons_IE6.png +0 -0
- data/dojo/dijit/themes/claro/form/images/checkboxRadioButtonStates.png +0 -0
- data/dojo/dijit/themes/claro/form/images/commonFormArrows.png +0 -0
- data/dojo/dijit/themes/claro/form/images/error.png +0 -0
- data/dojo/dijit/themes/claro/form/images/formHighlight.png +0 -0
- data/dojo/dijit/themes/claro/form/images/shadow.png +0 -0
- data/dojo/dijit/themes/claro/form/images/sliderHorizontal.png +0 -0
- data/dojo/dijit/themes/claro/form/images/sliderThumbs.png +0 -0
- data/dojo/dijit/themes/claro/form/images/sliderVertical.png +0 -0
- data/dojo/dijit/themes/claro/form/images/textBox_back.png +0 -0
- data/dojo/dijit/themes/claro/images/calendarArrows.png +0 -0
- data/dojo/dijit/themes/claro/images/calendarArrows8bit.png +0 -0
- data/dojo/dijit/themes/claro/images/calendarContainerImages.png +0 -0
- data/dojo/dijit/themes/claro/images/checkmarkNoBorder.gif +0 -0
- data/dojo/dijit/themes/claro/images/checkmarkNoBorder.png +0 -0
- data/dojo/dijit/themes/claro/images/commonHighlight.png +0 -0
- data/dojo/dijit/themes/claro/images/dialogCloseIcon.png +0 -0
- data/dojo/dijit/themes/claro/images/dialogCloseIcon8bit.png +0 -0
- data/dojo/dijit/themes/claro/images/dnd.png +0 -0
- data/dojo/dijit/themes/claro/images/loading.gif +0 -0
- data/dojo/dijit/themes/claro/images/loadingAnimation.gif +0 -0
- data/dojo/dijit/themes/claro/images/menuHighlight.png +0 -0
- data/dojo/dijit/themes/claro/images/progressBarAnim.gif +0 -0
- data/dojo/dijit/themes/claro/images/progressBarEmpty.png +0 -0
- data/dojo/dijit/themes/claro/images/progressBarFull.png +0 -0
- data/dojo/dijit/themes/claro/images/spriteArrows.png +0 -0
- data/dojo/dijit/themes/claro/images/titlebar.png +0 -0
- data/dojo/dijit/themes/claro/images/tooltip.png +0 -0
- data/dojo/dijit/themes/claro/images/tooltip8bit.png +0 -0
- data/dojo/dijit/themes/claro/images/treeExpandImages.png +0 -0
- data/dojo/dijit/themes/claro/images/treeExpandImages8bit.png +0 -0
- data/dojo/dijit/themes/claro/images/treeExpand_loading.gif +0 -0
- data/dojo/dijit/themes/claro/layout/AccordionContainer.css +108 -0
- data/dojo/dijit/themes/claro/layout/BorderContainer.css +134 -0
- data/dojo/dijit/themes/claro/layout/ContentPane.css +40 -0
- data/dojo/dijit/themes/claro/layout/TabContainer.css +439 -0
- data/dojo/dijit/themes/claro/layout/TabContainer_rtl.css +77 -0
- data/dojo/dijit/themes/claro/layout/images/accordion.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/splitterHorizontalHover.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/splitterVerticalHover.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/tabBottom.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/tabClose.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/tabLeft.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/tabNested.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/tabRight.png +0 -0
- data/dojo/dijit/themes/claro/layout/images/tabTop.png +0 -0
- data/dojo/dijit/themes/dijit.css +633 -452
- data/dojo/dijit/themes/dijit_rtl.css +70 -59
- data/dojo/dijit/themes/nihilo/Calendar.css +0 -14
- data/dojo/dijit/themes/nihilo/Dialog.css +2 -5
- data/dojo/dijit/themes/nihilo/Editor.css +3 -58
- data/dojo/dijit/themes/nihilo/Editor_rtl.css +2 -6
- data/dojo/dijit/themes/nihilo/TimePicker.css +1 -11
- data/dojo/dijit/themes/nihilo/TimePicker_rtl.css +4 -0
- data/dojo/dijit/themes/nihilo/TitlePane.css +3 -32
- data/dojo/dijit/themes/nihilo/Toolbar.css +2 -2
- data/dojo/dijit/themes/nihilo/Tree.css +2 -20
- data/dojo/dijit/themes/nihilo/Tree_rtl.css +10 -16
- data/dojo/dijit/themes/nihilo/form/Button.css +36 -20
- data/dojo/dijit/themes/nihilo/form/Common.css +11 -37
- data/dojo/dijit/themes/nihilo/form/Select.css +4 -11
- data/dojo/dijit/themes/nihilo/form/Slider.css +0 -8
- data/dojo/dijit/themes/nihilo/layout/AccordionContainer.css +2 -4
- data/dojo/dijit/themes/nihilo/layout/AccordionContainer_rtl.css +1 -1
- data/dojo/dijit/themes/nihilo/layout/TabContainer.css +12 -23
- data/dojo/dijit/themes/nihilo/nihilo.css +2 -1
- data/dojo/dijit/themes/nihilo/nihilo_rtl.css +3 -2
- data/dojo/dijit/themes/soria/Calendar.css +0 -14
- data/dojo/dijit/themes/soria/Dialog.css +2 -5
- data/dojo/dijit/themes/soria/Editor.css +3 -57
- data/dojo/dijit/themes/soria/Editor_rtl.css +2 -7
- data/dojo/dijit/themes/soria/TimePicker.css +0 -10
- data/dojo/dijit/themes/soria/TimePicker_rtl.css +4 -0
- data/dojo/dijit/themes/soria/TitlePane.css +4 -30
- data/dojo/dijit/themes/soria/Toolbar.css +2 -2
- data/dojo/dijit/themes/soria/Tree.css +3 -20
- data/dojo/dijit/themes/soria/Tree_rtl.css +11 -12
- data/dojo/dijit/themes/soria/form/Button.css +38 -29
- data/dojo/dijit/themes/soria/form/Common.css +10 -36
- data/dojo/dijit/themes/soria/form/Select.css +4 -11
- data/dojo/dijit/themes/soria/form/Slider.css +0 -8
- data/dojo/dijit/themes/soria/layout/AccordionContainer.css +2 -4
- data/dojo/dijit/themes/soria/layout/AccordionContainer_rtl.css +1 -1
- data/dojo/dijit/themes/soria/layout/TabContainer.css +17 -34
- data/dojo/dijit/themes/soria/soria.css +2 -2
- data/dojo/dijit/themes/soria/soria_rtl.css +3 -2
- data/dojo/dijit/themes/themeTester.html +215 -100
- data/dojo/dijit/themes/tundra/Calendar.css +9 -20
- data/dojo/dijit/themes/tundra/Calendar_rtl.css +2 -2
- data/dojo/dijit/themes/tundra/Dialog.css +6 -25
- data/dojo/dijit/themes/tundra/Dialog_rtl.css +1 -1
- data/dojo/dijit/themes/tundra/Editor.css +5 -58
- data/dojo/dijit/themes/tundra/Editor_rtl.css +4 -9
- data/dojo/dijit/themes/tundra/Menu.css +2 -2
- data/dojo/dijit/themes/tundra/Menu_rtl.css +1 -6
- data/dojo/dijit/themes/tundra/TimePicker.css +0 -10
- data/dojo/dijit/themes/tundra/TimePicker_rtl.css +4 -0
- data/dojo/dijit/themes/tundra/TitlePane.css +4 -38
- data/dojo/dijit/themes/tundra/TitlePane_rtl.css +1 -1
- data/dojo/dijit/themes/tundra/Toolbar.css +12 -2
- data/dojo/dijit/themes/tundra/Tree.css +3 -22
- data/dojo/dijit/themes/tundra/Tree_rtl.css +9 -9
- data/dojo/dijit/themes/tundra/form/Button.css +35 -59
- data/dojo/dijit/themes/tundra/form/Common.css +12 -84
- data/dojo/dijit/themes/tundra/form/RadioButton.css +11 -13
- data/dojo/dijit/themes/tundra/form/Select.css +15 -22
- data/dojo/dijit/themes/tundra/form/Slider.css +0 -7
- data/dojo/dijit/themes/tundra/form/Slider_rtl.css +12 -12
- data/dojo/dijit/themes/tundra/layout/AccordionContainer.css +2 -4
- data/dojo/dijit/themes/tundra/layout/SplitContainer.css +0 -4
- data/dojo/dijit/themes/tundra/layout/TabContainer.css +19 -44
- data/dojo/dijit/themes/tundra/layout/TabContainer_rtl.css +21 -9
- data/dojo/dijit/themes/tundra/tundra.css +2 -1
- data/dojo/dijit/themes/tundra/tundra_rtl.css +2 -1
- data/dojo/dijit/tree/TreeStoreModel.js +13 -12
- data/dojo/dojo/DeferredList.js +66 -78
- data/dojo/dojo/LICENSE +1 -1
- data/dojo/dojo/NodeList-fx.js +92 -18
- data/dojo/dojo/Stateful.js +123 -0
- data/dojo/dojo/_base.js +1 -1
- data/dojo/dojo/_base/Deferred.js +211 -301
- data/dojo/dojo/_base/NodeList.js +28 -5
- data/dojo/dojo/_base/_loader/bootstrap.js +5 -16
- data/dojo/dojo/_base/_loader/hostenv_browser.js +42 -24
- data/dojo/dojo/_base/connect.js +13 -13
- data/dojo/dojo/_base/declare.js +81 -17
- data/dojo/dojo/_base/fx.js +75 -77
- data/dojo/dojo/_base/html.js +20 -10
- data/dojo/dojo/_base/json.js +2 -1
- data/dojo/dojo/back.js +7 -0
- data/dojo/dojo/cache.js +7 -8
- data/dojo/dojo/cldr/monetary.js +7 -4
- data/dojo/dojo/cldr/nls/ar/gregorian.js +7 -3
- data/dojo/dojo/cldr/nls/ar/hebrew.js +12 -16
- data/dojo/dojo/cldr/nls/ar/islamic-civil.js +124 -49
- data/dojo/dojo/cldr/nls/ar/islamic.js +61 -70
- data/dojo/dojo/cldr/nls/buddhist.js +236 -0
- data/dojo/dojo/cldr/nls/ca/gregorian.js +152 -148
- data/dojo/dojo/cldr/nls/cs/gregorian.js +110 -100
- data/dojo/dojo/cldr/nls/cs/number.js +1 -1
- data/dojo/dojo/cldr/nls/currency.js +0 -1
- data/dojo/dojo/cldr/nls/da/gregorian.js +144 -145
- data/dojo/dojo/cldr/nls/de/gregorian.js +22 -24
- data/dojo/dojo/cldr/nls/el/gregorian.js +15 -14
- data/dojo/dojo/cldr/nls/en-au/gregorian.js +3 -0
- data/dojo/dojo/cldr/nls/en-ca/gregorian.js +10 -0
- data/dojo/dojo/cldr/nls/en/gregorian.js +12 -10
- data/dojo/dojo/cldr/nls/es/gregorian.js +19 -20
- data/dojo/dojo/cldr/nls/fi/gregorian.js +15 -14
- data/dojo/dojo/cldr/nls/fr/gregorian.js +15 -17
- data/dojo/dojo/cldr/nls/gregorian.js +14 -8
- data/dojo/dojo/cldr/nls/he/gregorian.js +48 -49
- data/dojo/dojo/cldr/nls/he/hebrew.js +23 -56
- data/dojo/dojo/cldr/nls/he/islamic.js +17 -19
- data/dojo/dojo/cldr/nls/hebrew.js +133 -124
- data/dojo/dojo/cldr/nls/hu/gregorian.js +20 -17
- data/dojo/dojo/cldr/nls/islamic.js +132 -129
- data/dojo/dojo/cldr/nls/it/gregorian.js +143 -145
- data/dojo/dojo/cldr/nls/ja/gregorian.js +17 -17
- data/dojo/dojo/cldr/nls/ko/gregorian.js +19 -19
- data/dojo/dojo/cldr/nls/nb/gregorian.js +141 -143
- data/dojo/dojo/cldr/nls/nl/gregorian.js +12 -14
- data/dojo/dojo/cldr/nls/pl/gregorian.js +149 -143
- data/dojo/dojo/cldr/nls/pt-pt/gregorian.js +83 -39
- data/dojo/dojo/cldr/nls/pt/gregorian.js +14 -16
- data/dojo/dojo/cldr/nls/ru/gregorian.js +138 -146
- data/dojo/dojo/cldr/nls/sk/gregorian.js +15 -6
- data/dojo/dojo/cldr/nls/sl/gregorian.js +12 -11
- data/dojo/dojo/cldr/nls/sv/gregorian.js +23 -17
- data/dojo/dojo/cldr/nls/th/buddhist.js +10 -13
- data/dojo/dojo/cldr/nls/th/gregorian.js +140 -136
- data/dojo/dojo/cldr/nls/tr/gregorian.js +13 -13
- data/dojo/dojo/cldr/nls/zh-tw/gregorian.js +15 -2
- data/dojo/dojo/cldr/nls/zh/gregorian.js +17 -14
- data/dojo/dojo/cldr/supplemental.js +10 -10
- data/dojo/dojo/currency.js +27 -14
- data/dojo/dojo/data/ItemFileReadStore.js +22 -21
- data/dojo/dojo/date/locale.js +9 -9
- data/dojo/dojo/date/stamp.js +3 -5
- data/dojo/dojo/dnd/Container.js +3 -1
- data/dojo/dojo/dnd/Manager.js +1 -1
- data/dojo/dojo/dnd/Moveable.js +2 -2
- data/dojo/dojo/dnd/Mover.js +5 -5
- data/dojo/dojo/dnd/Source.js +9 -8
- data/dojo/dojo/dnd/common.js +1 -1
- data/dojo/dojo/dojo.js +6 -18
- data/dojo/dojo/hash.js +20 -15
- data/dojo/dojo/html.js +7 -6
- data/dojo/dojo/nls/ro/colors.js +155 -0
- data/dojo/dojo/number.js +67 -56
- data/dojo/dojo/parser.js +167 -47
- data/dojo/dojo/resources/dojo.css +5 -6
- data/dojo/dojo/robot.js +85 -11
- data/dojo/dojo/tests/NodeList-fx.html +58 -38
- data/dojo/dojo/tests/Stateful.js +36 -0
- data/dojo/dojo/tests/_base/Deferred.js +95 -0
- data/dojo/dojo/tests/_base/NodeList.html +9 -1
- data/dojo/dojo/tests/_base/declare.js +65 -3
- data/dojo/dojo/tests/_base/fx.html +55 -49
- data/dojo/dojo/tests/_base/html.html +7 -0
- data/dojo/dojo/tests/_base/html_rtl.html +1 -0
- data/dojo/dojo/tests/cache.js +7 -0
- data/dojo/dojo/tests/currency.js +3 -2
- data/dojo/dojo/tests/date/locale.js +7 -3
- data/dojo/dojo/tests/date/stamp.js +4 -0
- data/dojo/dojo/tests/dnd/robot/test_dnd.html +1 -1
- data/dojo/dojo/tests/hash.js +26 -1
- data/dojo/dojo/tests/module.js +3 -0
- data/dojo/dojo/tests/number.js +7 -0
- data/dojo/dojo/tests/parser.html +90 -10
- data/dojo/dojo/tests/uacss.js +10 -0
- data/dojo/{dijit/tests/_base → dojo/tests/uacss}/sniffQuirks.html +5 -4
- data/dojo/{dijit/tests/_base → dojo/tests/uacss}/sniffStandards.html +4 -4
- data/dojo/dojo/tests/window.js +11 -0
- data/dojo/{dijit/tests/_base → dojo/tests/window}/test_scroll.html +155 -229
- data/dojo/{dijit/tests/_base/test_scrollStrictDTD.html → dojo/tests/window/test_scrollNoDTD.html} +30 -35
- data/dojo/{dijit/tests/_base/test_scrollNoDTD.html → dojo/tests/window/test_scrollStrictDTD.html} +30 -31
- data/dojo/{dijit/tests/_base → dojo/tests/window}/viewport.html +8 -10
- data/dojo/dojo/tests/window/viewportQuirks.html +5 -0
- data/dojo/dojo/uacss.js +63 -0
- data/dojo/dojo/window.js +132 -0
- data/dojo/dojox/LICENSE +1 -1
- data/dojo/dojox/atom/io/model.js +1 -1
- data/dojo/dojox/atom/widget/nls/ro/FeedEntryEditor.js +7 -0
- data/dojo/dojox/atom/widget/nls/ro/FeedEntryViewer.js +12 -0
- data/dojo/dojox/atom/widget/nls/ro/FeedViewerEntry.js +4 -0
- data/dojo/dojox/atom/widget/nls/ro/PeopleEditor.js +6 -0
- data/dojo/dojox/av/FLAudio.js +62 -49
- data/dojo/dojox/av/resources/audio.swf +0 -0
- data/dojo/dojox/av/tests/test_FLAudio.html +15 -9
- data/dojo/dojox/charting/Chart2D.js +609 -51
- data/dojo/dojox/charting/DataChart.js +72 -63
- data/dojo/dojox/charting/DataSeries.js +183 -0
- data/dojo/dojox/charting/Element.js +201 -3
- data/dojo/dojox/charting/Series.js +47 -4
- data/dojo/dojox/charting/Theme.js +590 -189
- data/dojo/dojox/charting/action2d/Base.js +31 -5
- data/dojo/dojox/charting/action2d/Highlight.js +37 -12
- data/dojo/dojox/charting/action2d/Magnify.js +39 -13
- data/dojo/dojox/charting/action2d/MoveSlice.js +42 -13
- data/dojo/dojox/charting/action2d/Shake.js +36 -12
- data/dojo/dojox/charting/action2d/Tooltip.js +205 -7
- data/dojo/dojox/charting/axis2d/Base.js +46 -7
- data/dojo/dojox/charting/axis2d/Default.js +414 -238
- data/dojo/dojox/charting/axis2d/Invisible.js +290 -0
- data/dojo/dojox/charting/axis2d/common.js +53 -7
- data/dojo/dojox/charting/plot2d/Areas.js +2 -0
- data/dojo/dojox/charting/plot2d/Bars.js +94 -63
- data/dojo/dojox/charting/plot2d/Base.js +143 -53
- data/dojo/dojox/charting/plot2d/Bubble.js +139 -65
- data/dojo/dojox/charting/plot2d/Candlesticks.js +143 -80
- data/dojo/dojox/charting/plot2d/ClusteredBars.js +60 -58
- data/dojo/dojox/charting/plot2d/ClusteredColumns.js +59 -57
- data/dojo/dojox/charting/plot2d/Columns.js +78 -60
- data/dojo/dojox/charting/plot2d/Default.js +280 -121
- data/dojo/dojox/charting/plot2d/Grid.js +181 -19
- data/dojo/dojox/charting/plot2d/Lines.js +4 -0
- data/dojo/dojox/charting/plot2d/Markers.js +4 -0
- data/dojo/dojox/charting/plot2d/MarkersOnly.js +4 -0
- data/dojo/dojox/charting/plot2d/OHLC.js +127 -69
- data/dojo/dojox/charting/plot2d/Pie.js +200 -105
- data/dojo/dojox/charting/plot2d/Scatter.js +194 -8
- data/dojo/dojox/charting/plot2d/Stacked.js +71 -46
- data/dojo/dojox/charting/plot2d/StackedAreas.js +4 -0
- data/dojo/dojox/charting/plot2d/StackedBars.js +75 -64
- data/dojo/dojox/charting/plot2d/StackedColumns.js +75 -64
- data/dojo/dojox/charting/plot2d/StackedLines.js +4 -0
- data/dojo/dojox/charting/plot2d/_PlotEvents.js +123 -0
- data/dojo/dojox/charting/plot2d/common.js +44 -35
- data/dojo/dojox/charting/scaler/primitive.js +6 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bars1.html +85 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bars2.html +79 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bars3.html +79 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bars4.html +79 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bars5.html +82 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bubble1.html +71 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bubble2.html +65 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bubble3.html +66 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bubble4.html +65 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_bubble6.html +71 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_columns1.html +85 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_columns2.html +79 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_columns3.html +79 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_columns4.html +79 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_columns5.html +82 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pie1.html +58 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pie2.html +52 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pie3.html +53 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pie4.html +52 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pie7.html +52 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pie8.html +52 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pie9.html +52 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_pieA.html +52 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_scatter1.html +71 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_scatter2.html +65 -0
- data/dojo/dojox/charting/tests/gradients/test_grad_scatterB.html +54 -0
- data/dojo/dojox/charting/tests/stock.json +0 -1
- data/dojo/dojox/charting/tests/test_DataChart.html +3 -1
- data/dojo/dojox/charting/tests/test_DataSeries.html +216 -0
- data/dojo/dojox/charting/tests/test_anim2d.html +2 -0
- data/dojo/dojox/charting/tests/test_axes.html +81 -0
- data/dojo/dojox/charting/tests/test_axisZoomControl.html +91 -0
- data/dojo/dojox/charting/tests/test_bars.html +4 -2
- data/dojo/dojox/charting/tests/test_chart2d.html +14 -8
- data/dojo/dojox/charting/tests/test_chart2d_dynamics.html +4 -2
- data/dojo/dojox/charting/tests/test_chart2d_updating.html +2 -0
- data/dojo/dojox/charting/tests/test_cylinders.html +4 -2
- data/dojo/dojox/charting/tests/test_event2d.html +6 -3
- data/dojo/dojox/charting/tests/test_fireEvent.html +204 -0
- data/dojo/dojox/charting/tests/test_labels2d.html +57 -3
- data/dojo/dojox/charting/tests/test_nulls.html +89 -0
- data/dojo/dojox/charting/tests/test_pie2d.html +7 -4
- data/dojo/dojox/charting/tests/test_plot_order.html +96 -0
- data/dojo/dojox/charting/tests/test_rotatedLabels.html +85 -0
- data/dojo/dojox/charting/tests/test_scaler.html +4 -2
- data/dojo/dojox/charting/tests/test_series_order.html +88 -0
- data/dojo/dojox/charting/tests/test_sparklines.html +2 -0
- data/dojo/dojox/charting/tests/test_tension.html +55 -0
- data/dojo/dojox/charting/tests/test_themes.html +270 -115
- data/dojo/dojox/charting/tests/test_widget2d.html +3 -1
- data/dojo/dojox/charting/tests/test_win2d.html +6 -4
- data/dojo/dojox/charting/tests/theme_preview.html +69 -0
- data/dojo/dojox/charting/themes/Charged.js +91 -0
- data/dojo/dojox/charting/themes/Chris.js +77 -0
- data/dojo/dojox/charting/themes/Electric.js +92 -0
- data/dojo/dojox/charting/themes/Ireland.js +2 -2
- data/dojo/dojox/charting/themes/Julie.js +70 -0
- data/dojo/dojox/charting/themes/PlotKit/base.js +53 -0
- data/dojo/dojox/charting/themes/PlotKit/blue.js +6 -35
- data/dojo/dojox/charting/themes/PlotKit/cyan.js +6 -35
- data/dojo/dojox/charting/themes/PlotKit/green.js +6 -35
- data/dojo/dojox/charting/themes/PlotKit/orange.js +6 -35
- data/dojo/dojox/charting/themes/PlotKit/purple.js +6 -35
- data/dojo/dojox/charting/themes/PlotKit/red.js +6 -35
- data/dojo/dojox/charting/themes/PrimaryColors.js +14 -0
- data/dojo/dojox/charting/themes/Renkoo.js +85 -0
- data/dojo/dojox/charting/themes/ThreeD.js +49 -0
- data/dojo/dojox/charting/themes/Tom.js +87 -0
- data/dojo/dojox/charting/themes/Tufte.js +45 -50
- data/dojo/dojox/charting/themes/gradientGenerator.js +83 -0
- data/dojo/dojox/charting/widget/Chart2D.js +21 -1
- data/dojo/dojox/charting/widget/Legend.js +10 -1
- data/dojo/dojox/color/Palette.js +124 -17
- data/dojo/dojox/css3/fx.js +183 -0
- data/dojo/dojox/data/AndOrReadStore.js +4 -2
- data/dojo/dojox/data/ClientFilter.js +1 -1
- data/dojo/dojox/data/FlickrRestStore.js +86 -88
- data/dojo/dojox/data/HtmlStore.js +1 -1
- data/dojo/dojox/data/ItemExplorer.js +3 -3
- data/dojo/dojox/data/PersevereStore.js +1 -1
- data/dojo/dojox/data/QueryReadStore.js +6 -9
- data/dojo/dojox/data/ServiceStore.js +9 -2
- data/dojo/dojox/data/StoreExplorer.js +2 -2
- data/dojo/dojox/data/XmlStore.js +1 -1
- data/dojo/dojox/data/demos/stores/LazyLoadJSIStore.js +1 -1
- data/dojo/dojox/data/s3/proxy.example-php +73 -73
- data/dojo/dojox/data/tests/stores/FlickrRestStore.js +1 -1
- data/dojo/dojox/data/util/JsonQuery.js +0 -3
- data/dojo/dojox/date/README +7 -1
- data/dojo/dojox/date/buddhist/locale.js +5 -5
- data/dojo/dojox/date/hebrew/locale.js +41 -18
- data/dojo/dojox/date/hebrew/numerals.js +17 -13
- data/dojo/dojox/date/islamic.js +0 -1
- data/dojo/dojox/date/islamic/Date.js +17 -19
- data/dojo/dojox/date/islamic/locale.js +37 -16
- data/dojo/dojox/date/posix.js +1 -1
- data/dojo/dojox/date/tests/hebrew/Date.js +2 -2
- data/dojo/dojox/date/tests/islamic/Date.js +200 -17
- data/dojo/dojox/date/timezone.js +59 -62
- data/dojo/dojox/dnd/BoundingBoxController.js +130 -0
- data/dojo/dojox/dnd/README +22 -0
- data/dojo/dojox/dnd/Selector.js +159 -0
- data/dojo/dojox/dnd/tests/robot/test_selector.html +71 -0
- data/dojo/dojox/dnd/tests/test_selector.html +57 -0
- data/dojo/dojox/drawing/Drawing.js +24 -17
- data/dojo/dojox/drawing/_base.js +0 -1
- data/dojo/dojox/drawing/annotations/Angle.js +17 -10
- data/dojo/dojox/drawing/annotations/BoxShadow.js +92 -4
- data/dojo/dojox/drawing/annotations/Label.js +6 -6
- data/dojo/dojox/drawing/defaults.js +44 -27
- data/dojo/dojox/drawing/library/icons.js +7 -0
- data/dojo/dojox/drawing/manager/Anchors.js +22 -10
- data/dojo/dojox/drawing/manager/Canvas.js +6 -5
- data/dojo/dojox/drawing/manager/Mouse.js +45 -19
- data/dojo/dojox/drawing/manager/Stencil.js +29 -26
- data/dojo/dojox/drawing/manager/_registry.js +4 -1
- data/dojo/dojox/drawing/manager/keys.js +1 -1
- data/dojo/dojox/drawing/plugins/_Plugin.js +1 -1
- data/dojo/dojox/drawing/plugins/drawing/Grid.js +15 -4
- data/dojo/dojox/drawing/plugins/drawing/Silverlight.js +1 -1
- data/dojo/dojox/drawing/plugins/tools/Pan.js +29 -5
- data/dojo/dojox/drawing/plugins/tools/Zoom.js +4 -4
- data/dojo/dojox/drawing/stencil/Ellipse.js +1 -1
- data/dojo/dojox/drawing/stencil/Line.js +0 -17
- data/dojo/dojox/drawing/stencil/Path.js +17 -13
- data/dojo/dojox/drawing/stencil/Text.js +26 -7
- data/dojo/dojox/drawing/stencil/_Base.js +163 -159
- data/dojo/dojox/drawing/tests/drawing.html +34 -35
- data/dojo/dojox/drawing/tests/test_drawing.html +20 -21
- data/dojo/dojox/drawing/tests/test_shadows.html +18 -18
- data/dojo/dojox/drawing/tools/Ellipse.js +20 -6
- data/dojo/dojox/drawing/tools/Line.js +19 -9
- data/dojo/dojox/drawing/tools/Rect.js +21 -7
- data/dojo/dojox/drawing/tools/TextBlock.js +37 -29
- data/dojo/dojox/drawing/tools/custom/Axes.js +249 -97
- data/dojo/dojox/drawing/tools/custom/Vector.js +298 -6
- data/dojo/dojox/drawing/ui/Button.js +45 -20
- data/dojo/dojox/drawing/ui/Toolbar.js +94 -29
- data/dojo/dojox/drawing/ui/Tooltip.js +3 -3
- data/dojo/dojox/drawing/ui/dom/Pan.js +2 -2
- data/dojo/dojox/drawing/ui/dom/Toolbar.js +4 -4
- data/dojo/dojox/drawing/util/common.js +20 -14
- data/dojo/dojox/drawing/util/oo.js +1 -1
- data/dojo/dojox/dtl/Context.js +8 -7
- data/dojo/dojox/dtl/_DomTemplated.js +5 -1
- data/dojo/dojox/dtl/_Templated.js +38 -3
- data/dojo/dojox/dtl/_base.js +17 -8
- data/dojo/dojox/dtl/tests/context.js +11 -2
- data/dojo/dojox/editor/README +95 -2
- data/dojo/dojox/editor/plugins/Blockquote.js +506 -0
- data/dojo/dojox/editor/plugins/Breadcrumb.js +31 -25
- data/dojo/dojox/editor/plugins/CollapsibleToolbar.js +174 -0
- data/dojo/dojox/editor/plugins/EntityPalette.js +112 -290
- data/dojo/dojox/editor/plugins/FindReplace.js +490 -163
- data/dojo/dojox/editor/plugins/InsertAnchor.js +430 -0
- data/dojo/dojox/editor/plugins/NormalizeIndentOutdent.js +3 -51
- data/dojo/dojox/editor/plugins/NormalizeStyle.js +551 -0
- data/dojo/dojox/editor/plugins/PasteFromWord.js +206 -0
- data/dojo/dojox/editor/plugins/Preview.js +1 -1
- data/dojo/dojox/editor/plugins/Save.js +4 -4
- data/dojo/dojox/editor/plugins/ShowBlockNodes.js +1 -1
- data/dojo/dojox/editor/plugins/Smiley.js +48 -22
- data/dojo/dojox/editor/plugins/StatusBar.js +172 -0
- data/dojo/dojox/editor/plugins/TablePlugins.js +454 -394
- data/dojo/dojox/editor/plugins/TextColor.js +191 -0
- data/dojo/dojox/editor/plugins/ToolbarLineBreak.js +6 -1
- data/dojo/dojox/editor/plugins/_SmileyPalette.js +113 -333
- data/dojo/dojox/editor/plugins/nls/Blockquote.js +3 -0
- data/dojo/dojox/editor/plugins/nls/CollapsibleToolbar.js +4 -0
- data/dojo/dojox/editor/plugins/nls/FindReplace.js +15 -5
- data/dojo/dojox/editor/plugins/nls/InsertAnchor.js +8 -0
- data/dojo/dojox/editor/plugins/nls/PasteFromWord.js +6 -0
- data/dojo/dojox/editor/plugins/nls/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/TextColor.js +4 -0
- data/dojo/dojox/editor/plugins/nls/ar/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/ca/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/cs/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/da/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/de/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/el/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/es/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/fi/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/fr/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/he/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/hu/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/it/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/ja/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/ko/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/nb/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/nl/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/pl/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/pt-pt/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/pt/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/ro/Blockquote.js +4 -0
- data/dojo/dojox/editor/plugins/nls/ro/Breadcrumb.js +10 -0
- data/dojo/dojox/editor/plugins/nls/ro/CollapsibleToolbar.js +5 -0
- data/dojo/dojox/editor/plugins/nls/ro/FindReplace.js +22 -0
- data/dojo/dojox/editor/plugins/nls/ro/InsertAnchor.js +9 -0
- data/dojo/dojox/editor/plugins/nls/ro/InsertEntity.js +4 -0
- data/dojo/dojox/editor/plugins/nls/ro/PageBreak.js +4 -0
- data/dojo/dojox/editor/plugins/nls/ro/PasteFromWord.js +7 -0
- data/dojo/dojox/editor/plugins/nls/ro/Preview.js +4 -0
- data/dojo/dojox/editor/plugins/nls/ro/Save.js +4 -0
- data/dojo/dojox/editor/plugins/nls/ro/ShowBlockNodes.js +4 -0
- data/dojo/dojox/editor/plugins/nls/ro/Smiley.js +22 -0
- data/dojo/dojox/editor/plugins/nls/ro/TableDialog.js +30 -0
- data/dojo/dojox/editor/plugins/nls/ro/TextColor.js +5 -0
- data/dojo/dojox/editor/plugins/nls/ro/latinEntities.js +257 -0
- data/dojo/dojox/editor/plugins/nls/ru/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/sk/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/sl/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/sv/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/th/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/tr/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/zh-tw/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/nls/zh/FindReplace.js +14 -4
- data/dojo/dojox/editor/plugins/nls/zh/TableDialog.js +0 -1
- data/dojo/dojox/editor/plugins/resources/css/Blockquote.css +17 -0
- data/dojo/dojox/editor/plugins/resources/css/CollapsibleToolbar.css +173 -0
- data/dojo/dojox/editor/plugins/resources/css/FindReplace.css +56 -51
- data/dojo/dojox/editor/plugins/resources/css/InsertAnchor.css +17 -0
- data/dojo/dojox/editor/plugins/resources/css/InsertEntity.css +15 -37
- data/dojo/dojox/editor/plugins/resources/css/PasteFromWord.css +30 -0
- data/dojo/dojox/editor/plugins/resources/css/Smiley.css +20 -59
- data/dojo/dojox/editor/plugins/resources/css/StatusBar.css +75 -0
- data/dojo/dojox/editor/plugins/resources/css/TextColor.css +7 -0
- data/dojo/dojox/editor/plugins/resources/editorPlugins.css +1 -1
- data/dojo/dojox/editor/plugins/resources/icons/anchor.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/{findIconDisabled.gif → anchorDisabled.gif} +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/blockquote.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/blockquoteDisabled.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/{replaceIconDisabled.gif → claro/close.gif} +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/editorIconsFindReplaceDisabled.png +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/editorIconsFindReplaceEnabled.png +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/nihilo/close.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/pasteFromWord.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/pasteFromWordDisabled.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/smileyDisabled.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/soria/close.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/tundra/close.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/anchor.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/claro/collapse.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/claro/expand.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/nihilo/collapse.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/nihilo/expand.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/nihilo/sidebar.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/soria/collapse.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/soria/expand.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/soria/sidebar.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/tundra/collapse.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/tundra/expand.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/images/tundra/sidebar.gif +0 -0
- data/dojo/dojox/editor/tests/editorBlockquote.html +118 -0
- data/dojo/dojox/editor/tests/editorCollapsibleToolbar.html +131 -0
- data/dojo/dojox/editor/tests/editorFindReplace.html +7 -3
- data/dojo/dojox/editor/tests/editorInsertAnchor.html +119 -0
- data/dojo/dojox/editor/tests/editorNormalizeStyle.html +163 -0
- data/dojo/dojox/editor/tests/editorPasteFromWord.html +98 -0
- data/dojo/dojox/editor/tests/editorSmileyPlugin.html +66 -8
- data/dojo/dojox/editor/tests/editorStatusBar.html +232 -0
- data/dojo/dojox/editor/tests/editorTablePlugs.html +80 -74
- data/dojo/dojox/editor/tests/editorTextColor.html +97 -0
- data/dojo/dojox/editor/tests/module.js +15 -0
- data/dojo/dojox/editor/tests/robot/Editor_Smiley.html +60 -0
- data/dojo/dojox/editor/tests/runTests.html +9 -0
- data/dojo/dojox/editor/tests/testPluginsAll.html +206 -0
- data/dojo/dojox/embed/Flash.js +94 -77
- data/dojo/dojox/flash/_base.js +3 -3
- data/dojo/dojox/form/BusyButton.js +2 -2
- data/dojo/dojox/form/CheckedMultiSelect.js +3 -16
- data/dojo/dojox/form/FileInput.js +4 -0
- data/dojo/dojox/form/FileInputAuto.js +12 -4
- data/dojo/dojox/form/FilePickerTextBox.js +5 -8
- data/dojo/dojox/form/FileUploader.js +1378 -1331
- data/dojo/dojox/form/ListInput.js +5 -5
- data/dojo/dojox/form/PasswordValidator.js +3 -3
- data/dojo/dojox/form/RangeSlider.js +3 -2
- data/dojo/dojox/form/Rating.js +0 -1
- data/dojo/dojox/form/TimeSpinner.js +1 -2
- data/dojo/dojox/form/manager/_Mixin.js +21 -11
- data/dojo/dojox/form/nls/ro/PasswordValidator.js +5 -0
- data/dojo/dojox/form/resources/CheckedMultiSelect.css +30 -0
- data/dojo/dojox/form/resources/CheckedMultiSelect.html +1 -1
- data/dojo/dojox/form/resources/FileInput.css +30 -0
- data/dojo/dojox/form/resources/FilePickerTextBox.html +2 -2
- data/dojo/dojox/form/resources/FileUploader.css +0 -24
- data/dojo/dojox/form/resources/HorizontalRangeSlider.html +38 -38
- data/dojo/dojox/form/resources/RangeSlider.css +9 -1
- data/dojo/dojox/form/resources/VerticalRangeSlider.html +49 -50
- data/dojo/dojox/form/resources/_CheckedMultiSelectItem.html +1 -1
- data/dojo/dojox/form/resources/uploader.swf +0 -0
- data/dojo/dojox/form/tests/UploadFile.php.disabled +25 -19
- data/dojo/dojox/form/tests/test_FileUploader.html +38 -38
- data/dojo/dojox/form/tests/test_FileUploaderDialog.html +0 -1
- data/dojo/dojox/form/tests/test_FileUploaderForm.html +5 -3
- data/dojo/dojox/form/tests/test_FileUploaderTabs.html +147 -0
- data/dojo/dojox/form/tests/test_MultiComboBox.html +1 -1
- data/dojo/dojox/form/tests/test_RangeSlider.html +1 -2
- data/dojo/dojox/form/tests/test_TimeSpinner.html +3 -30
- data/dojo/dojox/fx/Timeline.js +210 -0
- data/dojo/dojox/fx/ext-dojo/complex.js +169 -0
- data/dojo/dojox/fx/ext-dojo/reverse.js +98 -0
- data/dojo/dojox/fx/scroll.js +13 -6
- data/dojo/dojox/fx/tests/test_Timeline.html +173 -0
- data/dojo/dojox/fx/tests/test_complex.html +87 -0
- data/dojo/dojox/fx/tests/test_reverse.html +100 -0
- data/dojo/dojox/fx/tests/test_transform.html +210 -0
- data/dojo/dojox/fx/text.js +3 -3
- data/dojo/dojox/geo/README +37 -0
- data/dojo/dojox/geo/charting/Map.js +140 -0
- data/dojo/dojox/geo/charting/_Feature.js +169 -0
- data/dojo/dojox/geo/charting/_Marker.js +52 -0
- data/dojo/dojox/geo/charting/_base.js +53 -0
- data/dojo/dojox/geo/charting/resources/Map.css +30 -0
- data/dojo/dojox/geo/charting/resources/data/NOTICES +63 -0
- data/dojo/dojox/geo/charting/resources/data/USStates.json +261 -0
- data/dojo/dojox/geo/charting/resources/img/zoomin.gif +0 -0
- data/dojo/dojox/geo/charting/resources/img/zoomin.png +0 -0
- data/dojo/dojox/geo/charting/resources/img/zoomout.gif +0 -0
- data/dojo/dojox/geo/charting/resources/img/zoomout.png +0 -0
- data/dojo/dojox/geo/charting/resources/markers/USStates.json +1 -0
- data/dojo/dojox/geo/charting/tests/datastore/dataStore.json +1 -0
- data/dojo/dojox/geo/charting/tests/test_mapWithCharting.html +72 -0
- data/dojo/dojox/geo/charting/tests/test_mapWithLegend.html +63 -0
- data/dojo/dojox/geo/charting/tests/test_maps.html +37 -0
- data/dojo/dojox/geo/charting/widget/Legend.js +62 -0
- data/dojo/dojox/gfx/README +9 -2
- data/dojo/dojox/gfx/README-svgweb +98 -0
- data/dojo/dojox/gfx/VectorText.js +3 -3
- data/dojo/dojox/gfx/_base.js +2 -2
- data/dojo/dojox/gfx/arc.js +1 -1
- data/dojo/dojox/gfx/gradient.js +160 -0
- data/dojo/dojox/gfx/gradutils.js +91 -0
- data/dojo/dojox/gfx/path.js +89 -24
- data/dojo/dojox/gfx/resources/svg2gfx.xsl +53 -14
- data/dojo/dojox/gfx/shape.js +14 -7
- data/dojo/dojox/gfx/svg.js +135 -16
- data/dojo/dojox/gfx/tests/svgweb/README +15 -0
- data/dojo/dojox/gfx/tests/svgweb/sample.html +171 -0
- data/dojo/dojox/gfx/tests/svgweb/svgweb/COPYING.txt +65 -0
- data/dojo/dojox/gfx/tests/svgweb/svgweb/src/svg.htc +1 -0
- data/dojo/dojox/gfx/tests/svgweb/svgweb/src/svg.js +1 -0
- data/dojo/dojox/gfx/tests/svgweb/svgweb/src/svg.swf +0 -0
- data/dojo/dojox/gfx/tests/svgweb/test.roundrect.html +39 -0
- data/dojo/dojox/gfx/tests/svgweb/test_arc.html +66 -0
- data/dojo/dojox/gfx/tests/svgweb/test_bezier.html +81 -0
- data/dojo/dojox/gfx/tests/svgweb/test_destroy.html +58 -0
- data/dojo/dojox/gfx/tests/svgweb/test_fill.html +45 -0
- data/dojo/dojox/gfx/tests/svgweb/test_fx.html +104 -0
- data/dojo/dojox/gfx/tests/svgweb/test_fx_shapes.html +123 -0
- data/dojo/dojox/gfx/tests/svgweb/test_gfx.html +565 -0
- data/dojo/dojox/gfx/tests/svgweb/test_gradient.html +77 -0
- data/dojo/dojox/gfx/tests/svgweb/test_group1.html +70 -0
- data/dojo/dojox/gfx/tests/svgweb/test_group2.html +54 -0
- data/dojo/dojox/gfx/tests/svgweb/test_image1.html +80 -0
- data/dojo/dojox/gfx/tests/svgweb/test_image2.html +52 -0
- data/dojo/dojox/gfx/tests/svgweb/test_image3.html +77 -0
- data/dojo/dojox/gfx/tests/svgweb/test_image4.html +58 -0
- data/dojo/dojox/gfx/tests/svgweb/test_image5.html +67 -0
- data/dojo/dojox/gfx/tests/svgweb/test_linearGradient.html +75 -0
- data/dojo/dojox/gfx/tests/svgweb/test_linestyle.html +43 -0
- data/dojo/dojox/gfx/tests/svgweb/test_pattern.html +43 -0
- data/dojo/dojox/gfx/tests/svgweb/test_poly.html +49 -0
- data/dojo/dojox/gfx/tests/svgweb/test_resize.html +57 -0
- data/dojo/dojox/gfx/tests/svgweb/test_setPath.html +86 -0
- data/dojo/dojox/gfx/tests/svgweb/test_tbbox.html +113 -0
- data/dojo/dojox/gfx/tests/svgweb/test_text.html +80 -0
- data/dojo/dojox/gfx/tests/svgweb/test_textpath.html +77 -0
- data/dojo/dojox/gfx/tests/svgweb/test_transform.html +99 -0
- data/dojo/dojox/gfx/tests/svgweb/test_utils.html +234 -0
- data/dojo/dojox/gfx/tests/svgweb/test_vectortext_draw.html +64 -0
- data/dojo/dojox/gfx/tests/svgweb/test_vectortext_load.html +97 -0
- data/dojo/dojox/gfx/tests/test_image1.html +1 -4
- data/dojo/dojox/gfx/tests/test_image2.html +5 -5
- data/dojo/dojox/gfx/tests/test_image3.html +2 -2
- data/dojo/dojox/gfx/tests/test_image4.html +2 -2
- data/dojo/dojox/gfx/tests/test_linearGradient.html +2 -1
- data/dojo/dojox/gfx/tests/test_pattern.html +4 -3
- data/dojo/dojox/gfx/tests/test_refproj.html +109 -0
- data/dojo/dojox/gfx/vml.js +52 -57
- data/dojo/dojox/grid/DataGrid.js +17 -6
- data/dojo/dojox/grid/EnhancedGrid.js +24 -6
- data/dojo/dojox/grid/README +57 -0
- data/dojo/dojox/grid/_Builder.js +18 -8
- data/dojo/dojox/grid/_Grid.js +10 -20
- data/dojo/dojox/grid/_View.js +5 -2
- data/dojo/dojox/grid/cells/dijit.js +11 -4
- data/dojo/dojox/grid/enhanced/_Events.js +16 -6
- data/dojo/dojox/grid/enhanced/_Plugin.js +15 -20
- data/dojo/dojox/grid/enhanced/dnd/_DndEvents.js +6 -0
- data/dojo/dojox/grid/enhanced/dnd/_DndMovingManager.js +3 -1
- data/dojo/dojox/grid/enhanced/nls/ar/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/ca/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/da/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/el/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/fi/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/he/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/nb/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/nl/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/pt-pt/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/ro/EnhancedGrid.js +9 -0
- data/dojo/dojox/grid/enhanced/nls/sk/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/sl/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/sv/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/th/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/nls/tr/EnhancedGrid.js +8 -0
- data/dojo/dojox/grid/enhanced/plugins/IndirectSelection.js +5 -5
- data/dojo/dojox/grid/enhanced/plugins/Menu.js +22 -6
- data/dojo/dojox/grid/enhanced/plugins/NestedSorting.js +26 -42
- data/dojo/dojox/grid/enhanced/resources/EnhancedGrid.css +31 -32
- data/dojo/dojox/grid/enhanced/resources/EnhancedGrid_rtl.css +16 -7
- data/dojo/dojox/grid/enhanced/resources/claroEnhancedGrid.css +104 -0
- data/dojo/dojox/grid/enhanced/resources/tundraEnhancedGrid.css +8 -17
- data/dojo/dojox/grid/resources/Grid.css +6 -0
- data/dojo/dojox/grid/resources/Grid_rtl.css +10 -2
- data/dojo/dojox/grid/resources/_Grid.html +1 -1
- data/dojo/dojox/grid/resources/claroGrid.css +216 -0
- data/dojo/dojox/grid/resources/images/header.png +0 -0
- data/dojo/dojox/grid/resources/images/header_shadow.png +0 -0
- data/dojo/dojox/grid/resources/images/row_back.png +0 -0
- data/dojo/dojox/grid/resources/images/td_button_down.png +0 -0
- data/dojo/dojox/grid/tests/enhanced/test_enhanced_grid_claro.html +70 -0
- data/dojo/dojox/grid/tests/robot/7815.html +0 -1
- data/dojo/dojox/grid/tests/robot/DataGrid_a11y.html +6 -1
- data/dojo/dojox/grid/tests/robot/DataGrid_mouse.html +50 -18
- data/dojo/dojox/grid/tests/robot/_DataGrid.html +0 -1
- data/dojo/dojox/grid/tests/robot/stores.js +3 -1
- data/dojo/dojox/grid/tests/test_grid_themes.html +27 -2
- data/dojo/dojox/grid/tests/test_treegrid_model.html +6 -6
- data/dojo/dojox/highlight/languages/_dynamic.js +2 -0
- data/dojo/dojox/highlight/languages/_static.js +1 -1
- data/dojo/dojox/highlight/languages/groovy.js +67 -0
- data/dojo/dojox/highlight/languages/java.js +58 -0
- data/dojo/dojox/highlight/languages/xquery.js +56 -0
- data/dojo/dojox/highlight/tests/test_highlight.html +147 -0
- data/dojo/dojox/html/entities.js +7 -7
- data/dojo/dojox/html/ext-dojo/style.js +460 -0
- data/dojo/dojox/html/format.js +5 -0
- data/dojo/dojox/html/metrics.js +31 -12
- data/dojo/dojox/html/tests/test_style-html.html +310 -0
- data/dojo/dojox/html/tests/test_themes.html +2 -2
- data/dojo/dojox/image/Lightbox.js +70 -28
- data/dojo/dojox/image/resources/Lightbox.css +11 -4
- data/dojo/dojox/image/resources/Lightbox.html +3 -3
- data/dojo/dojox/image/tests/Lightbox.html +2 -2
- data/dojo/dojox/image/tests/test_Lightbox.html +36 -2
- data/dojo/dojox/io/proxy/xip_client.html +1 -1
- data/dojo/dojox/io/proxy/xip_server.html +1 -1
- data/dojo/dojox/jq.js +1 -1
- data/dojo/dojox/json/query.js +7 -7
- data/dojo/dojox/json/ref.js +4 -2
- data/dojo/dojox/lang/README +13 -2
- data/dojo/dojox/lang/async.js +199 -0
- data/dojo/dojox/lang/async/event.js +41 -0
- data/dojo/dojox/lang/async/timeout.js +41 -0
- data/dojo/dojox/lang/async/topic.js +41 -0
- data/dojo/dojox/lang/oo/rearrange.js +1 -1
- data/dojo/dojox/lang/tests/async.js +216 -0
- data/dojo/dojox/lang/tests/docs.js +2 -2
- data/dojo/dojox/lang/tests/main.js +1 -1
- data/dojo/dojox/lang/tests/test_oo_decl.html +52 -3
- data/dojo/dojox/lang/utils.js +52 -9
- data/dojo/dojox/layout/ExpandoPane.js +71 -21
- data/dojo/dojox/layout/FloatingPane.js +7 -4
- data/dojo/dojox/layout/GridContainer.js +453 -920
- data/dojo/dojox/layout/GridContainerLite.js +811 -0
- data/dojo/dojox/layout/README +1 -1
- data/dojo/dojox/layout/ResizeHandle.js +6 -3
- data/dojo/dojox/layout/RotatorContainer.js +1 -1
- data/dojo/dojox/layout/TableContainer.js +7 -0
- data/dojo/dojox/layout/ToggleSplitter.js +2 -2
- data/dojo/dojox/layout/resources/ExpandoPane.css +52 -0
- data/dojo/dojox/layout/resources/ExpandoPane.html +2 -2
- data/dojo/dojox/layout/resources/GridContainer.css +49 -69
- data/dojo/dojox/layout/resources/GridContainer.html +9 -5
- data/dojo/dojox/layout/resources/ResizeHandle.css +18 -0
- data/dojo/dojox/layout/resources/icons/gridcontainer_grip.gif +0 -0
- data/dojo/dojox/layout/resources/icons/resizeRtl.png +0 -0
- data/dojo/dojox/layout/tests/resources/script_dnd.js +158 -0
- data/dojo/dojox/layout/tests/resources/set_complete_dnd.css +61 -0
- data/dojo/dojox/layout/tests/test_ExpandoPane.html +7 -1
- data/dojo/dojox/layout/tests/test_ExpandoPane_prog.html +1 -1
- data/dojo/dojox/layout/tests/test_GridContainer.html +24 -76
- data/dojo/dojox/layout/tests/test_GridContainerColWidths.html +31 -19
- data/dojo/dojox/layout/tests/test_GridContainerLite.html +122 -0
- data/dojo/dojox/layout/tests/test_GridContainerLite_doLayout.html +112 -0
- data/dojo/dojox/layout/tests/test_GridContainerLite_dragRestriction.html +148 -0
- data/dojo/dojox/layout/tests/test_GridContainer_ResizableCol.html +93 -0
- data/dojo/dojox/layout/tests/test_GridContainer_TitlePanes.html +85 -0
- data/dojo/dojox/layout/tests/test_GridContainer_complete_solution.html +103 -0
- data/dojo/dojox/layout/tests/test_GridContainer_dragHandle.html +107 -0
- data/dojo/dojox/layout/tests/{test_GridContainerBC.html → test_GridContainer_in_BorderContainer.html} +27 -61
- data/dojo/dojox/layout/tests/{test_GridContainerBC_prog.html → test_GridContainer_in_BorderContainer_prog.html} +142 -50
- data/dojo/dojox/layout/tests/test_TableContainer.html +2 -2
- data/dojo/dojox/math/BigInteger-ext.js +1 -3
- data/dojo/dojox/math/BigInteger.js +3 -3
- data/dojo/dojox/math/README +0 -3
- data/dojo/dojox/math/_base.js +48 -11
- data/dojo/dojox/math/tests/math.js +19 -1
- data/dojo/dojox/mdnd/AreaManager.js +707 -0
- data/dojo/dojox/mdnd/AutoScroll.js +195 -0
- data/dojo/dojox/mdnd/DropIndicator.js +86 -0
- data/dojo/dojox/mdnd/LazyManager.js +68 -0
- data/dojo/dojox/mdnd/Moveable.js +251 -0
- data/dojo/dojox/mdnd/PureSource.js +208 -0
- data/dojo/dojox/mdnd/README +94 -0
- data/dojo/dojox/mdnd/adapter/DndFromDojo.js +366 -0
- data/dojo/dojox/mdnd/adapter/DndToDojo.js +484 -0
- data/dojo/dojox/mdnd/dropMode/DefaultDropMode.js +333 -0
- data/dojo/dojox/mdnd/dropMode/OverDropMode.js +308 -0
- data/dojo/dojox/mdnd/dropMode/VerticalDropMode.js +343 -0
- data/dojo/dojox/mdnd/resources/dnd.css +93 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_acceptance.html +71 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_autoScroll.html +52 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_defaultDropMode.html +55 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_dndFromDojo.html +73 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_dndToDojo.html +93 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_dndToDojo_dndFromDojo.html +70 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_overDropMode.html +57 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_stress.html +83 -0
- data/dojo/dojox/mdnd/tests/functionalTests/test_dnd_verticalDropMode.html +55 -0
- data/dojo/dojox/mdnd/tests/module.js +16 -0
- data/dojo/dojox/mdnd/tests/resources/test_dnd.css +68 -0
- data/dojo/dojox/mdnd/tests/robot/module.js +16 -0
- data/dojo/dojox/mdnd/tests/robot/test_dnd_acceptance.html +284 -0
- data/dojo/dojox/mdnd/tests/robot/test_dnd_defaultDropMode.html +101 -0
- data/dojo/dojox/mdnd/tests/robot/test_dnd_dndFromDojo.html +322 -0
- data/dojo/dojox/mdnd/tests/robot/test_dnd_dndToDojo.html +198 -0
- data/dojo/dojox/mdnd/tests/robot/test_dnd_overDropMode.html +272 -0
- data/dojo/dojox/mdnd/tests/robot/test_dnd_verticalDropMode.html +101 -0
- data/dojo/dojox/mdnd/tests/runTests.html +9 -0
- data/dojo/dojox/mdnd/tests/unitTests/areaManager/AreaManagerCoverPresence.html +110 -0
- data/dojo/dojox/mdnd/tests/unitTests/areaManager/AreaManagerManagingDragItems.html +149 -0
- data/dojo/dojox/mdnd/tests/unitTests/areaManager/AreaManagerRegistering.html +124 -0
- data/dojo/dojox/mdnd/tests/unitTests/areaManager/module.js +12 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropIndicator/DropIndicatorTest.html +187 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropIndicator/module.js +8 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropMode/DefaultDropModeTest.html +241 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropMode/FixtureLib.js +87 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropMode/OverDropModeTest.html +195 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropMode/VerticalDropModeTest.html +241 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropMode/module.js +10 -0
- data/dojo/dojox/mdnd/tests/unitTests/dropMode/resources/domElement.html +130 -0
- data/dojo/dojox/mdnd/tests/unitTests/module.js +9 -0
- data/dojo/dojox/mobile.js +4 -0
- data/dojo/dojox/mobile/README +55 -0
- data/dojo/dojox/mobile/_base.js +1451 -0
- data/dojo/dojox/mobile/app.js +3 -0
- data/dojo/dojox/mobile/app/AlertDialog.js +182 -0
- data/dojo/dojox/mobile/app/ImageThumbView.js +254 -0
- data/dojo/dojox/mobile/app/ImageView.js +716 -0
- data/dojo/dojox/mobile/app/List.js +577 -0
- data/dojo/dojox/mobile/app/ListSelector.js +218 -0
- data/dojo/dojox/mobile/app/SceneAssistant.js +56 -0
- data/dojo/dojox/mobile/app/SceneController.js +157 -0
- data/dojo/dojox/mobile/app/StageController.js +137 -0
- data/dojo/dojox/mobile/app/TextBox.js +321 -0
- data/dojo/dojox/mobile/app/_FormWidget.js +294 -0
- data/dojo/dojox/mobile/app/_Widget.js +30 -0
- data/dojo/dojox/mobile/app/_base.js +226 -0
- data/dojo/dojox/mobile/app/_event.js +119 -0
- data/dojo/dojox/mobile/app/compat.js +109 -0
- data/dojo/dojox/mobile/build/build.bat +47 -0
- data/dojo/dojox/mobile/build/build.sh +50 -0
- data/dojo/dojox/mobile/build/profiles/mobile-all.profile.js +36 -0
- data/dojo/dojox/mobile/build/profiles/mobile.profile.js +40 -0
- data/dojo/dojox/mobile/compat.js +399 -0
- data/dojo/dojox/mobile/parser.js +80 -0
- data/dojo/dojox/mobile/tests/complexListApp/app/assistants/main-assistant.js +123 -0
- data/dojo/dojox/mobile/tests/complexListApp/app/views/main/emptyTemplate.html +3 -0
- data/dojo/dojox/mobile/tests/complexListApp/app/views/main/main-scene.html +23 -0
- data/dojo/dojox/mobile/tests/complexListApp/app/views/main/rowTemplate.html +15 -0
- data/dojo/dojox/mobile/tests/complexListApp/images/i-icon-1.png +0 -0
- data/dojo/dojox/mobile/tests/complexListApp/images/i-icon-2.png +0 -0
- data/dojo/dojox/mobile/tests/complexListApp/images/i-icon-3.png +0 -0
- data/dojo/dojox/mobile/tests/complexListApp/images/i-icon-4.png +0 -0
- data/dojo/dojox/mobile/tests/complexListApp/index.html +37 -0
- data/dojo/dojox/mobile/tests/complexListApp/styles/style.css +38 -0
- data/dojo/dojox/mobile/tests/dialogApp/app/assistants/main-assistant.js +75 -0
- data/dojo/dojox/mobile/tests/dialogApp/app/views/main/main-scene.html +10 -0
- data/dojo/dojox/mobile/tests/dialogApp/index.html +37 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/assistants/flickr-image-thumb-view-assistant.js +198 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/assistants/flickr-image-view-assistant.js +170 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/assistants/flickr-search-group-assistant.js +123 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/assistants/flickr-search-selection-assistant.js +54 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/assistants/flickr-search-text-assistant.js +119 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/assistants/image-view-assistant.js +92 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/assistants/main-assistant.js +40 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-image-thumb-view/flickr-image-thumb-view-scene.html +17 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-image-view/flickr-image-view-scene.html +10 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-group/emptyTemplate.html +3 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-group/flickr-search-group-scene.html +19 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-group/rowTemplate.html +8 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-selection/flickr-search-selection-scene.html +7 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-selection/rowTemplate.html +8 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-text/emptyTemplate.html +3 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-text/flickr-search-group-scene.html +19 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/flickr-search-text/rowTemplate.html +15 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/image-view/image-view-scene.html +23 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/main/main-scene.html +6 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/app/views/main/rowTemplate.html +8 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/images/chris1_lg.jpg +0 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/images/chris2_lg.jpg +0 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/images/imageHoriz.jpg +0 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/images/imageVert.jpg +0 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/images/square.jpg +0 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/index.html +39 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/styles/styles.css +13 -0
- data/dojo/dojox/mobile/tests/imageControlsApp/view-resources.json +14 -0
- data/dojo/dojox/mobile/tests/images/a-icon-1-41x41.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-1.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-10.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-11.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-12.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-13.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-14.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-15.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-16.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-17.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-18.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-2-41x41.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-2.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-3.png +0 -0
- data/dojo/dojox/mobile/tests/images/a-icon-4.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-1.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-10.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-2.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-3.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-4.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-5.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-6.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-7.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-8.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-9.png +0 -0
- data/dojo/dojox/mobile/tests/images/i-icon-all.png +0 -0
- data/dojo/dojox/mobile/tests/images/icon-1.png +0 -0
- data/dojo/dojox/mobile/tests/images/not-images.png +0 -0
- data/dojo/dojox/mobile/tests/images/red-button-bg.png +0 -0
- data/dojo/dojox/mobile/tests/images/red-button-sel-bg.png +0 -0
- data/dojo/dojox/mobile/tests/images/widget-bg.png +0 -0
- data/dojo/dojox/mobile/tests/index.html +55 -0
- data/dojo/dojox/mobile/tests/inputApp/app/assistants/text-input-assistant.js +21 -0
- data/dojo/dojox/mobile/tests/inputApp/app/views/text-input/text-input-scene.html +50 -0
- data/dojo/dojox/mobile/tests/inputApp/index.html +37 -0
- data/dojo/dojox/mobile/tests/multiSceneApp/app/assistants/main-assistant.js +41 -0
- data/dojo/dojox/mobile/tests/multiSceneApp/app/assistants/second-assistant.js +32 -0
- data/dojo/dojox/mobile/tests/multiSceneApp/app/assistants/third-assistant.js +33 -0
- data/dojo/dojox/mobile/tests/multiSceneApp/app/views/main/main-scene.html +16 -0
- data/dojo/dojox/mobile/tests/multiSceneApp/app/views/second/second-scene.html +12 -0
- data/dojo/dojox/mobile/tests/multiSceneApp/app/views/third/third-scene.html +13 -0
- data/dojo/dojox/mobile/tests/multiSceneApp/index.html +37 -0
- data/dojo/dojox/mobile/tests/simpleApp/app/assistants/main-assistant.js +23 -0
- data/dojo/dojox/mobile/tests/simpleApp/app/views/main/main-scene.html +3 -0
- data/dojo/dojox/mobile/tests/simpleApp/index.html +36 -0
- data/dojo/dojox/mobile/tests/simpleListApp/app/assistants/main-assistant.js +66 -0
- data/dojo/dojox/mobile/tests/simpleListApp/app/views/main/main-scene.html +14 -0
- data/dojo/dojox/mobile/tests/simpleListApp/app/views/main/rowTemplate.html +3 -0
- data/dojo/dojox/mobile/tests/simpleListApp/index.html +36 -0
- data/dojo/dojox/mobile/tests/test_Android-ButtonList.html +68 -0
- data/dojo/dojox/mobile/tests/test_Android-EdgeToEdge.html +50 -0
- data/dojo/dojox/mobile/tests/test_Android-EdgeToEdgeCategory.html +46 -0
- data/dojo/dojox/mobile/tests/test_Android-Icon.html +58 -0
- data/dojo/dojox/mobile/tests/test_Android-RoundRectList.html +60 -0
- data/dojo/dojox/mobile/tests/test_Android-Settings.html +104 -0
- data/dojo/dojox/mobile/tests/test_Android-Switch.html +23 -0
- data/dojo/dojox/mobile/tests/test_Android-TabContainer.html +139 -0
- data/dojo/dojox/mobile/tests/test_Android-VariableHeightList.html +100 -0
- data/dojo/dojox/mobile/tests/test_ajax-html.html +34 -0
- data/dojo/dojox/mobile/tests/test_ajax-json.html +34 -0
- data/dojo/dojox/mobile/tests/test_anchor-label.html +74 -0
- data/dojo/dojox/mobile/tests/test_bookmarkable.html +112 -0
- data/dojo/dojox/mobile/tests/test_buttons.html +21 -0
- data/dojo/dojox/mobile/tests/test_dynamic-icons.html +53 -0
- data/dojo/dojox/mobile/tests/test_dynamic-items.html +98 -0
- data/dojo/dojox/mobile/tests/test_dynamic-view.html +58 -0
- data/dojo/dojox/mobile/tests/test_hash-parameter.html +71 -0
- data/dojo/dojox/mobile/tests/test_iPhone-Animation.html +81 -0
- data/dojo/dojox/mobile/tests/test_iPhone-Button.html +41 -0
- data/dojo/dojox/mobile/tests/test_iPhone-ButtonList.html +50 -0
- data/dojo/dojox/mobile/tests/test_iPhone-EdgeToEdge.html +47 -0
- data/dojo/dojox/mobile/tests/test_iPhone-EdgeToEdgeCategory.html +46 -0
- data/dojo/dojox/mobile/tests/test_iPhone-Heading.html +24 -0
- data/dojo/dojox/mobile/tests/test_iPhone-Icon.html +58 -0
- data/dojo/dojox/mobile/tests/test_iPhone-IconMulti.html +36 -0
- data/dojo/dojox/mobile/tests/test_iPhone-IconSingle.html +35 -0
- data/dojo/dojox/mobile/tests/test_iPhone-IconSingleBelow.html +35 -0
- data/dojo/dojox/mobile/tests/test_iPhone-ResultList.html +65 -0
- data/dojo/dojox/mobile/tests/test_iPhone-RoundRect.html +27 -0
- data/dojo/dojox/mobile/tests/test_iPhone-RoundRectList.html +54 -0
- data/dojo/dojox/mobile/tests/test_iPhone-Settings.html +168 -0
- data/dojo/dojox/mobile/tests/test_iPhone-Switch.html +23 -0
- data/dojo/dojox/mobile/tests/test_iPhone-TabContainer.html +169 -0
- data/dojo/dojox/mobile/tests/test_iPhone-VariableHeightList.html +99 -0
- data/dojo/dojox/mobile/tests/test_progress-indicator.html +83 -0
- data/dojo/dojox/mobile/tests/view-sample.html +38 -0
- data/dojo/dojox/mobile/tests/view1.html +14 -0
- data/dojo/dojox/mobile/tests/view1.json +18 -0
- data/dojo/dojox/mobile/tests/view2.html +9 -0
- data/dojo/dojox/mobile/tests/view2.json +31 -0
- data/dojo/dojox/mobile/tests/view3.html +16 -0
- data/dojo/dojox/mobile/tests/view3.json +44 -0
- data/dojo/dojox/mobile/themes/android/android-compat.css +284 -0
- data/dojo/dojox/mobile/themes/android/android.css +738 -0
- data/dojo/dojox/mobile/themes/android/compat/arrow-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/arrow-button-head.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/blue-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/blue-button-sel-bg.png +0 -0
- data/dojo/dojox/{editor/plugins/resources/icons/findReplaceDisabled.gif → mobile/themes/android/compat/gray-arrow.png} +0 -0
- data/dojo/dojox/mobile/themes/android/compat/icon-content-heading-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/switch-blue-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/switch-gray-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/switch-green-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/switch-knob-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/tab-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/tab-orange-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/android/compat/tab-sel-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/buttons-compat.css +30 -0
- data/dojo/dojox/mobile/themes/buttons.css +191 -0
- data/dojo/dojox/mobile/themes/compat/check-off-button.png +0 -0
- data/dojo/dojox/mobile/themes/compat/check-on-button.png +0 -0
- data/dojo/dojox/mobile/themes/compat/small-blue-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/compat/small-darkblue-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/compat/small-red-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/arrow-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/arrow-button-head.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/blue-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/blue-button-sel-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/edge-categ-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/gray-arrow.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/heading-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/icon-content-heading-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/switch-blue-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/switch-gray-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/switch-knob-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/tab-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/tab-sel-button-bg.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/compat/white-arrow.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/images/thumb-overlay.png +0 -0
- data/dojo/dojox/mobile/themes/iphone/iphone-app-compat.css +24 -0
- data/dojo/dojox/mobile/themes/iphone/iphone-app.css +281 -0
- data/dojo/dojox/mobile/themes/iphone/iphone-compat.css +290 -0
- data/dojo/dojox/mobile/themes/iphone/iphone.css +751 -0
- data/dojo/dojox/rails.js +143 -0
- data/dojo/dojox/rails/README +41 -0
- data/dojo/dojox/rails/tests/module.js +7 -0
- data/dojo/dojox/rails/tests/plugd/trigger.js +187 -0
- data/dojo/dojox/rails/tests/runTests.html +9 -0
- data/dojo/dojox/rails/tests/success_response.html +1 -0
- data/dojo/dojox/rails/tests/test_rails.html +320 -0
- data/dojo/dojox/robot/recorder.js +3 -3
- data/dojo/dojox/rpc/SMDLibrary/wikipedia.smd +49 -49
- data/dojo/dojox/rpc/tests/resources/query +5 -5
- data/dojo/dojox/sketch/Figure.js +2 -2
- data/dojo/dojox/sketch/UndoStack.js +2 -2
- data/dojo/dojox/validate/creditCard.js +1 -1
- data/dojo/dojox/widget/Calendar.js +18 -18
- data/dojo/dojox/widget/CalendarViews.js +2 -2
- data/dojo/dojox/widget/ColorPicker.js +248 -73
- data/dojo/dojox/widget/ColorPicker/ColorPicker.css +32 -19
- data/dojo/dojox/widget/ColorPicker/ColorPicker.html +71 -30
- data/dojo/dojox/widget/ColorPicker/images/hueHandleA11y.png +0 -0
- data/dojo/dojox/widget/DataPresentation.js +126 -60
- data/dojo/dojox/widget/Dialog.js +2 -1
- data/dojo/dojox/widget/Dialog/Dialog.css +7 -0
- data/dojo/dojox/widget/DynamicTooltip.js +3 -3
- data/dojo/dojox/widget/FeedPortlet.js +9 -9
- data/dojo/dojox/widget/FilePicker.js +2 -2
- data/dojo/dojox/widget/Portlet.js +8 -0
- data/dojo/dojox/widget/Portlet/Portlet.css +2 -2
- data/dojo/dojox/widget/RollingList.js +11 -8
- data/dojo/dojox/widget/Rotator.js +7 -1
- data/dojo/dojox/widget/Standby.js +32 -5
- data/dojo/dojox/widget/Toaster.js +3 -1
- data/dojo/dojox/widget/UpgradeBar.js +20 -20
- data/dojo/dojox/widget/Wizard.js +2 -2
- data/dojo/dojox/widget/Wizard/Wizard.css +5 -0
- data/dojo/dojox/widget/gauge/_Gauge.js +2 -2
- data/dojo/dojox/widget/nls/ColorPicker.js +4 -2
- data/dojo/dojox/widget/nls/ar/ColorPicker.js +3 -0
- data/dojo/dojox/widget/nls/ca/ColorPicker.js +6 -0
- data/dojo/dojox/widget/nls/da/ColorPicker.js +3 -0
- data/dojo/dojox/widget/nls/el/ColorPicker.js +10 -0
- data/dojo/dojox/widget/nls/fi/ColorPicker.js +3 -0
- data/dojo/dojox/widget/nls/he/ColorPicker.js +10 -0
- data/dojo/dojox/widget/nls/ko/ColorPicker.js +7 -1
- data/dojo/dojox/widget/nls/nb/ColorPicker.js +3 -0
- data/dojo/dojox/widget/nls/nl/ColorPicker.js +6 -0
- data/dojo/dojox/widget/nls/pt-pt/ColorPicker.js +8 -0
- data/dojo/dojox/widget/nls/ro/ColorPicker.js +5 -0
- data/dojo/dojox/widget/nls/ro/FilePicker.js +6 -0
- data/dojo/dojox/widget/nls/ro/Wizard.js +6 -0
- data/dojo/dojox/widget/nls/sk/ColorPicker.js +3 -0
- data/dojo/dojox/widget/nls/sl/ColorPicker.js +3 -0
- data/dojo/dojox/widget/nls/sv/ColorPicker.js +6 -0
- data/dojo/dojox/widget/nls/tr/ColorPicker.js +10 -0
- data/dojo/dojox/widget/rotator/ThumbnailController.js +96 -0
- data/dojo/dojox/widget/tests/test_ColorPicker.html +10 -1
- data/dojo/dojox/widget/tests/test_DataPresentation.html +7 -3
- data/dojo/dojox/widget/tests/test_PortletInGridContainer.html +27 -37
- data/dojo/dojox/widget/tests/test_PortletInGridContainer.js +2 -1
- data/dojo/dojox/widget/tests/test_PortletInGridContainerColumns.html +10 -8
- data/dojo/dojox/widget/tests/test_Rotator.html +2 -0
- data/dojo/dojox/widget/tests/test_Rotator_ThumbnailController.html +63 -0
- data/dojo/dojox/widget/tests/test_Standby.html +4 -4
- data/dojo/dojox/wire/Wire.js +32 -4
- data/dojo/dojox/wire/demos/markup/demo_ActionChaining.html +1 -1
- data/dojo/dojox/wire/demos/markup/demo_ConditionalActions.html +6 -6
- data/dojo/dojox/wire/demos/markup/demo_TopicWiring.html +1 -1
- data/dojo/dojox/xml/parser.js +2 -2
- data/dojo/util/LICENSE +1 -1
- data/dojo/util/buildscripts/build.bat +3 -3
- data/dojo/util/buildscripts/build.js +4 -2
- data/dojo/util/buildscripts/build_notice.txt +2 -4
- data/dojo/util/buildscripts/build_release.sh +6 -6
- data/dojo/util/buildscripts/cdnBuild.sh +39 -0
- data/dojo/util/buildscripts/cdnBuild.txt +13 -13
- data/dojo/util/buildscripts/cldr/README +1 -1
- data/dojo/util/buildscripts/cldr/build.xml +1 -1
- data/dojo/util/buildscripts/cldr/calendar.xsl +98 -74
- data/dojo/util/buildscripts/cldr/ldml/CatalogManager.properties +16 -16
- data/dojo/util/buildscripts/cldr/ldml/catalog +1 -1
- data/dojo/util/buildscripts/cldr/ldml/core.zip +0 -0
- data/dojo/util/buildscripts/copyright.txt +1 -1
- data/dojo/util/buildscripts/jslib/buildUtil.js +9 -0
- data/dojo/util/buildscripts/jslib/dojoGuardEnd.jsfrag +8 -7
- data/dojo/util/buildscripts/profiles/baseplus.profile.js +21 -0
- data/dojo/util/buildscripts/profiles/demos-all.profile.js +7 -0
- data/dojo/util/buildscripts/tests/conditionalTest.js +1 -1
- data/dojo/util/checkstyle/checkstyle.bat +3 -3
- data/dojo/util/checkstyle/checkstyleUtil.js +68 -4
- data/dojo/util/checkstyle/runCheckstyle.js +24 -2
- data/dojo/util/docscripts/LICENSE +1 -1
- data/dojo/util/docscripts/cheat/lib.js +1 -1
- data/dojo/util/docscripts/lib/parser2/JavaScriptArray.php +2 -2
- data/dojo/util/docscripts/makeCix.php +1 -1
- data/dojo/util/doh/_browserRunner.js +25 -4
- data/dojo/util/doh/_rhinoRunner.js +1 -0
- data/dojo/util/doh/robot/DOHRobot.jar +0 -0
- data/dojo/util/doh/robot/DOHRobot.java +32 -7
- data/dojo/util/doh/runner.html +2 -2
- data/dojo/util/doh/runner.js +14 -5
- data/dojo/util/jsdoc/LICENSE +1 -1
- data/dojo/util/migration/dijitCss14to15.sed +67 -0
- data/dojo/util/shrinksafe/shrinksafe.jar +0 -0
- data/dojo/util/shrinksafe/src/org/dojotoolkit/shrinksafe/resources/Messages.properties +1 -1
- data/dojo/util/shrinksafe/tests/escapeunicode.js +1 -0
- data/dojo/util/shrinksafe/tests/module.js +14 -5
- data/lib/dojo_src.rb +2 -5
- metadata +4940 -4373
- data/dojo/dijit/tests/_base/viewportQuirks.html +0 -5
- data/dojo/dijit/themes/nihilo/form/ComboBox.css +0 -12
- data/dojo/dijit/themes/nihilo/form/Common_rtl.css +0 -7
- data/dojo/dijit/themes/nihilo/images/editor.gif +0 -0
- data/dojo/dijit/themes/nihilo/images/editorDisabled.gif +0 -0
- data/dojo/dijit/themes/nihilo/images/editorDisabled_rtl.gif +0 -0
- data/dojo/dijit/themes/nihilo/images/editor_rtl.gif +0 -0
- data/dojo/dijit/themes/soria/form/ComboBox.css +0 -12
- data/dojo/dijit/themes/soria/form/Common_rtl.css +0 -7
- data/dojo/dijit/themes/soria/images/editor.gif +0 -0
- data/dojo/dijit/themes/soria/images/editorDisabled.gif +0 -0
- data/dojo/dijit/themes/soria/images/editorDisabled_rtl.gif +0 -0
- data/dojo/dijit/themes/soria/images/editor_rtl.gif +0 -0
- data/dojo/dijit/themes/templateThemeTest.html +0 -178
- data/dojo/dijit/themes/tundra/form/Common_rtl.css +0 -6
- data/dojo/dijit/themes/tundra/images/editor.gif +0 -0
- data/dojo/dijit/themes/tundra/images/editorDisabled.gif +0 -0
- data/dojo/dijit/themes/tundra/images/editorDisabled_rtl.gif +0 -0
- data/dojo/dijit/themes/tundra/images/editorMaster.png +0 -0
- data/dojo/dijit/themes/tundra/images/editor_rtl.gif +0 -0
- data/dojo/dojo/cldr/nls/de-de/number.js +0 -4
- data/dojo/dojo/cldr/nls/en-us/currency.js +0 -5
- data/dojo/dojo/cldr/nls/en-us/number.js +0 -4
- data/dojo/dojo/cldr/nls/es-es/gregorian.js +0 -7
- data/dojo/dojo/cldr/nls/es-es/number.js +0 -4
- data/dojo/dojo/cldr/nls/islamic-civil.js +0 -96
- data/dojo/dojo/cldr/nls/it-it/gregorian.js +0 -5
- data/dojo/dojo/cldr/nls/ja-jp/number.js +0 -4
- data/dojo/dojo/cldr/nls/ko-kr/gregorian.js +0 -6
- data/dojo/dojo/cldr/nls/ko-kr/number.js +0 -4
- data/dojo/dojo/cldr/nls/pt-br/gregorian.js +0 -18
- data/dojo/dojo/cldr/nls/zh-cn/gregorian.js +0 -12
- data/dojo/dojo/cldr/nls/zh-cn/number.js +0 -4
- data/dojo/dojo/cldr/nls/zh-tw/number.js +0 -6
- data/dojo/dojox/editor/plugins/resources/icons/findIcon.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/findReplace.gif +0 -0
- data/dojo/dojox/editor/plugins/resources/icons/replaceIcon.gif +0 -0
- data/dojo/dojox/math/LICENSE-BigInteger +0 -40
- data/dojo/util/buildscripts/cldr/ldml/ldml.dtd +0 -1166
- data/dojo/util/docscripts/api.json +0 -202488
- data/dojo/util/docscripts/api.xml +0 -54976
- data/dojo/util/resources/LICENSE +0 -195
- data/dojo/util/resources/api/api.xml +0 -0
- data/dojo/util/resources/api/dojo.cix +0 -0
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/dojo-styles.css +0 -114
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/images/bg-content-left.png +0 -0
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/images/bg-content-right.png +0 -0
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/images/body.png +0 -0
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/images/logo.png +0 -0
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/mini-dtk.css +0 -34
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/mini-dtk.psd +0 -0
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/style.css +0 -1092
- data/dojo/util/resources/dojotoolkit.org/mini-dtk/template.html +0 -115
- data/dojo/util/resources/logo/negative/dijit.logo.neg.ai +15 -4118
- data/dojo/util/resources/logo/negative/dijit.logo.neg.eps +0 -5557
- data/dojo/util/resources/logo/negative/dijit.logo.neg.png +0 -0
- data/dojo/util/resources/logo/negative/dijit.logo.neg.svg +0 -987
- data/dojo/util/resources/logo/negative/dojo.logo.neg.ai +0 -0
- data/dojo/util/resources/logo/negative/dojo.logo.neg.big.png +0 -0
- data/dojo/util/resources/logo/negative/dojo.logo.neg.eps +0 -64
- data/dojo/util/resources/logo/negative/dojo.logo.neg.png +0 -0
- data/dojo/util/resources/logo/negative/dojo.logo.neg.svg +0 -36
- data/dojo/util/resources/logo/negative/dojox.logo.neg.ai +8 -4003
- data/dojo/util/resources/logo/negative/dojox.logo.neg.eps +0 -5357
- data/dojo/util/resources/logo/negative/dojox.logo.neg.png +0 -0
- data/dojo/util/resources/logo/negative/dojox.logo.neg.svg +0 -41
- data/dojo/util/resources/logo/positive/dijit.logo.ai +10 -4169
- data/dojo/util/resources/logo/positive/dijit.logo.eps +0 -5562
- data/dojo/util/resources/logo/positive/dijit.logo.png +0 -0
- data/dojo/util/resources/logo/positive/dijit.logo.svg +0 -987
- data/dojo/util/resources/logo/positive/dojo.logo.ai +15 -3719
- data/dojo/util/resources/logo/positive/dojo.logo.big.png +0 -0
- data/dojo/util/resources/logo/positive/dojo.logo.eps +0 -64
- data/dojo/util/resources/logo/positive/dojo.logo.png +0 -0
- data/dojo/util/resources/logo/positive/dojo.logo.svg +0 -36
- data/dojo/util/resources/logo/positive/dojox.logo.ai +13 -4068
- data/dojo/util/resources/logo/positive/dojox.logo.eps +0 -5362
- data/dojo/util/resources/logo/positive/dojox.logo.png +0 -0
- data/dojo/util/resources/logo/positive/dojox.logo.svg +0 -41
- data/dojo/util/resources/themes/nihilo/nihilo.psd +0 -0
- data/dojo/util/resources/themes/soria/soria.psd +0 -0
@@ -0,0 +1,182 @@
|
|
1
|
+
dojo.provide("dojox.mobile.app.AlertDialog");
|
2
|
+
dojo.experimental("dojox.mobile.app.AlertDialog");
|
3
|
+
dojo.require("dijit._Widget");
|
4
|
+
|
5
|
+
dojo.declare("dojox.mobile.app.AlertDialog", dijit._Widget, {
|
6
|
+
|
7
|
+
// title: String
|
8
|
+
// The title of the AlertDialog
|
9
|
+
title: "",
|
10
|
+
|
11
|
+
// text: String
|
12
|
+
// The text message displayed in the AlertDialog
|
13
|
+
text: "",
|
14
|
+
|
15
|
+
// controller: Object
|
16
|
+
// The SceneController for the currently active scene
|
17
|
+
controller: null,
|
18
|
+
|
19
|
+
// buttons: Array
|
20
|
+
buttons: null,
|
21
|
+
|
22
|
+
defaultButtonLabel: "OK",
|
23
|
+
|
24
|
+
// onChoose: Function
|
25
|
+
// The callback function that is invoked when a button is tapped.
|
26
|
+
// If the dialog is cancelled, no parameter is passed to this function.
|
27
|
+
onChoose: null,
|
28
|
+
|
29
|
+
constructor: function(){
|
30
|
+
this.onClick = dojo.hitch(this, this.onClick);
|
31
|
+
this._handleSelect = dojo.hitch(this, this._handleSelect);
|
32
|
+
},
|
33
|
+
|
34
|
+
buildRendering: function(){
|
35
|
+
this.domNode = dojo.create("div",{
|
36
|
+
"class": "alertDialog"
|
37
|
+
});
|
38
|
+
|
39
|
+
// Create the outer dialog body
|
40
|
+
var dlgBody = dojo.create("div", {"class": "alertDialogBody"}, this.domNode);
|
41
|
+
|
42
|
+
// Create the title
|
43
|
+
dojo.create("div", {"class": "alertTitle", innerHTML: this.title || ""}, dlgBody);
|
44
|
+
|
45
|
+
// Create the text
|
46
|
+
dojo.create("div", {"class": "alertText", innerHTML: this.text || ""}, dlgBody);
|
47
|
+
|
48
|
+
// Create the node that encapsulates all the buttons
|
49
|
+
var btnContainer = dojo.create("div", {"class": "alertBtns"}, dlgBody);
|
50
|
+
|
51
|
+
// If no buttons have been defined, default to a single button saying OK
|
52
|
+
if(!this.buttons || this.buttons.length == 0){
|
53
|
+
this.buttons = [{
|
54
|
+
label: this.defaultButtonLabel,
|
55
|
+
value: "ok",
|
56
|
+
"class": "affirmative"
|
57
|
+
}];
|
58
|
+
}
|
59
|
+
|
60
|
+
var _this = this;
|
61
|
+
|
62
|
+
// Create each of the buttons
|
63
|
+
dojo.forEach(this.buttons, function(btnInfo){
|
64
|
+
var btn = new dojox.mobile.Button({
|
65
|
+
btnClass: btnInfo["class"] || "",
|
66
|
+
label: btnInfo.label
|
67
|
+
});
|
68
|
+
btn._dialogValue = btnInfo.value;
|
69
|
+
dojo.place(btn.domNode, btnContainer);
|
70
|
+
_this.connect(btn, "onClick", _this._handleSelect);
|
71
|
+
});
|
72
|
+
|
73
|
+
var viewportSize = this.controller.getWindowSize();
|
74
|
+
|
75
|
+
// Create the mask that blocks out the rest of the screen
|
76
|
+
this.mask = dojo.create("div", {"class": "dialogUnderlayWrapper",
|
77
|
+
innerHTML: "<div class=\"dialogUnderlay\"></div>",
|
78
|
+
style: {
|
79
|
+
width: viewportSize.w + "px",
|
80
|
+
height: viewportSize.h + "px"
|
81
|
+
}
|
82
|
+
}, this.controller.assistant.domNode);
|
83
|
+
|
84
|
+
this.connect(this.mask, "onclick", function(){
|
85
|
+
_this.onChoose && _this.onChoose();
|
86
|
+
_this.hide();
|
87
|
+
});
|
88
|
+
},
|
89
|
+
|
90
|
+
postCreate: function(){
|
91
|
+
this.subscribe("/dojox/mobile/app/goback", this._handleSelect);
|
92
|
+
},
|
93
|
+
|
94
|
+
_handleSelect: function(event){
|
95
|
+
// summary:
|
96
|
+
// Handle the selection of a value
|
97
|
+
var node;
|
98
|
+
console.log("handleSelect");
|
99
|
+
if(event && event.target){
|
100
|
+
node = event.target;
|
101
|
+
|
102
|
+
// Find the widget that was tapped.
|
103
|
+
while(!dijit.byNode(node)){
|
104
|
+
node - node.parentNode;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// If an onChoose function was provided, tell it what button
|
109
|
+
// value was chosen
|
110
|
+
if(this.onChoose){
|
111
|
+
this.onChoose(node ? dijit.byNode(node)._dialogValue: undefined);
|
112
|
+
}
|
113
|
+
// Hide the dialog
|
114
|
+
this.hide();
|
115
|
+
},
|
116
|
+
|
117
|
+
show: function(){
|
118
|
+
// summary:
|
119
|
+
// Show the dialog
|
120
|
+
this._doTransition(1);
|
121
|
+
},
|
122
|
+
|
123
|
+
hide: function(){
|
124
|
+
// summary:
|
125
|
+
// Hide the dialog
|
126
|
+
this._doTransition(-1);
|
127
|
+
},
|
128
|
+
|
129
|
+
_doTransition: function(dir){
|
130
|
+
// summary:
|
131
|
+
// Either shows or hides the dialog.
|
132
|
+
// dir:
|
133
|
+
// An integer. If positive, the dialog is shown. If negative,
|
134
|
+
// the dialog is hidden.
|
135
|
+
|
136
|
+
// TODO: replace this with CSS transitions
|
137
|
+
|
138
|
+
var anim;
|
139
|
+
var h = dojo.marginBox(this.domNode.firstChild).h;
|
140
|
+
|
141
|
+
|
142
|
+
var bodyHeight = this.controller.getWindowSize().h;
|
143
|
+
console.log("dialog height = " + h, " body height = " + bodyHeight);
|
144
|
+
|
145
|
+
var high = bodyHeight - h;
|
146
|
+
var low = bodyHeight;
|
147
|
+
|
148
|
+
var anim1 = dojo.fx.slideTo({
|
149
|
+
node: this.domNode,
|
150
|
+
duration: 400,
|
151
|
+
top: {start: dir < 0 ? high : low, end: dir < 0 ? low: high}
|
152
|
+
});
|
153
|
+
|
154
|
+
var anim2 = dojo[dir < 0 ? "fadeOut" : "fadeIn"]({
|
155
|
+
node: this.mask,
|
156
|
+
duration: 400
|
157
|
+
});
|
158
|
+
|
159
|
+
var anim = dojo.fx.combine([anim1, anim2]);
|
160
|
+
|
161
|
+
var _this = this;
|
162
|
+
|
163
|
+
dojo.connect(anim, "onEnd", this, function(){
|
164
|
+
if(dir < 0){
|
165
|
+
_this.domNode.style.display = "none";
|
166
|
+
dojo.destroy(_this.domNode);
|
167
|
+
dojo.destroy(_this.mask);
|
168
|
+
}
|
169
|
+
});
|
170
|
+
anim.play();
|
171
|
+
},
|
172
|
+
|
173
|
+
destroy: function(){
|
174
|
+
this.inherited(arguments);
|
175
|
+
dojo.destroy(this.mask);
|
176
|
+
},
|
177
|
+
|
178
|
+
|
179
|
+
onClick: function(){
|
180
|
+
|
181
|
+
}
|
182
|
+
});
|
@@ -0,0 +1,254 @@
|
|
1
|
+
dojo.provide("dojox.mobile.app.ImageThumbView");
|
2
|
+
dojo.experimental("dojox.mobile.app.ImageThumbView");
|
3
|
+
|
4
|
+
dojo.require("dijit._Widget");
|
5
|
+
dojo.require("dojo.string");
|
6
|
+
|
7
|
+
dojo.declare("dojox.mobile.app.ImageThumbView", dijit._Widget, {
|
8
|
+
// summary:
|
9
|
+
// An image thumbnail gallery
|
10
|
+
|
11
|
+
// items: Array
|
12
|
+
// The data items from which the image urls are retrieved.
|
13
|
+
// If an item is a string, it is expected to be a URL. Otherwise
|
14
|
+
// by default it is expected to have a 'url' member. This can
|
15
|
+
// be configured using the 'urlParam' attribute on this widget.
|
16
|
+
items: null,
|
17
|
+
|
18
|
+
// urlParam: String
|
19
|
+
// The paramter name used to retrieve an image url from a JSON object
|
20
|
+
urlParam: "url",
|
21
|
+
|
22
|
+
itemTemplate: '<div class="mblThumbInner">' +
|
23
|
+
'<div class="mblThumbOverlay"></div>' +
|
24
|
+
'<div class="mblThumbMask">' +
|
25
|
+
'<div class="mblThumbSrc" style="background-image:url(${url})"></div>' +
|
26
|
+
'</div>' +
|
27
|
+
'</div>',
|
28
|
+
|
29
|
+
minPadding: 5,
|
30
|
+
|
31
|
+
maxPerRow: 3,
|
32
|
+
|
33
|
+
baseClass: "mblImageThumbView",
|
34
|
+
|
35
|
+
selectedIndex: -1,
|
36
|
+
|
37
|
+
cache: null,
|
38
|
+
|
39
|
+
postCreate: function(){
|
40
|
+
this.inherited(arguments);
|
41
|
+
var _this = this;
|
42
|
+
|
43
|
+
var hoverCls = "mblThumbHover";
|
44
|
+
|
45
|
+
this.addThumb = dojo.hitch(this, this.addThumb);
|
46
|
+
this.handleImgLoad = dojo.hitch(this, this.handleImgLoad);
|
47
|
+
|
48
|
+
this._onLoadImages = {};
|
49
|
+
|
50
|
+
this.cache = [];
|
51
|
+
this.visibleImages = [];
|
52
|
+
|
53
|
+
this.connect(this.domNode, "onclick", function(event){
|
54
|
+
var itemNode = _this._getItemNodeFromEvent(event);
|
55
|
+
|
56
|
+
if(itemNode){
|
57
|
+
_this.onSelect(itemNode._item, itemNode._index, _this.items);
|
58
|
+
dojo.query(".selected", this.domNode).removeClass("selected");
|
59
|
+
dojo.addClass(itemNode, "selected");
|
60
|
+
}
|
61
|
+
});
|
62
|
+
|
63
|
+
this.resize();
|
64
|
+
this.render();
|
65
|
+
},
|
66
|
+
|
67
|
+
onSelect: function(item, index, items){
|
68
|
+
// summary:
|
69
|
+
// Dummy function that is triggered when an image is selected.
|
70
|
+
},
|
71
|
+
|
72
|
+
_setItemsAttr: function(items){
|
73
|
+
this.items = items || [];
|
74
|
+
|
75
|
+
this.render();
|
76
|
+
},
|
77
|
+
|
78
|
+
_getItemNode: function(node){
|
79
|
+
while(node && !dojo.hasClass(node, "mblThumb") && node != this.domNode){
|
80
|
+
node = node.parentNode;
|
81
|
+
}
|
82
|
+
|
83
|
+
return (node == this.domNode) ? null : node;
|
84
|
+
},
|
85
|
+
|
86
|
+
_getItemNodeFromEvent: function(event){
|
87
|
+
if(event.touches && event.touches.length > 0){
|
88
|
+
event = event.touches[0];
|
89
|
+
}
|
90
|
+
return this._getItemNode(event.target);
|
91
|
+
},
|
92
|
+
|
93
|
+
resize: function(){
|
94
|
+
this._thumbSize = null;
|
95
|
+
|
96
|
+
this._size = dojo.marginBox(this.domNode);
|
97
|
+
|
98
|
+
this.render();
|
99
|
+
},
|
100
|
+
|
101
|
+
render: function(){
|
102
|
+
var i;
|
103
|
+
var url;
|
104
|
+
var item;
|
105
|
+
|
106
|
+
var thumb;
|
107
|
+
while(this.visibleImages.length > 0){
|
108
|
+
thumb = this.visibleImages.pop();
|
109
|
+
this.cache.push(thumb);
|
110
|
+
|
111
|
+
dojo.addClass(thumb, "hidden");
|
112
|
+
thumb._cached = true;
|
113
|
+
}
|
114
|
+
if(!this.items || this.items.length == 0){
|
115
|
+
//dojo.empty(this.domNode);
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
for(i = 0; i < this.items.length; i++){
|
121
|
+
item = this.items[i];
|
122
|
+
url = (dojo.isString(item) ? item : item[this.urlParam]);
|
123
|
+
|
124
|
+
this.addThumb(item, url, i);
|
125
|
+
}
|
126
|
+
|
127
|
+
if(!this._thumbSize){
|
128
|
+
return;
|
129
|
+
}
|
130
|
+
|
131
|
+
var column = 0;
|
132
|
+
var row = -1;
|
133
|
+
|
134
|
+
var totalThumbWidth = this._thumbSize.w + (this.padding * 2);
|
135
|
+
var totalThumbHeight = this._thumbSize.h + (this.padding * 2);
|
136
|
+
|
137
|
+
var nodes = this.thumbNodes =
|
138
|
+
dojo.query(".mblThumb", this.domNode);
|
139
|
+
|
140
|
+
var pos = 0;
|
141
|
+
for(i = 0; i < nodes.length; i++){
|
142
|
+
if(nodes[i]._cached){
|
143
|
+
continue;
|
144
|
+
}
|
145
|
+
|
146
|
+
if(pos % this.maxPerRow == 0){
|
147
|
+
row ++;
|
148
|
+
}
|
149
|
+
column = pos % this.maxPerRow;
|
150
|
+
|
151
|
+
this.place(
|
152
|
+
nodes[i],
|
153
|
+
(column * totalThumbWidth) + this.padding, // x position
|
154
|
+
(row * totalThumbHeight) + this.padding // y position
|
155
|
+
);
|
156
|
+
|
157
|
+
if(!nodes[i]._loading){
|
158
|
+
dojo.removeClass(nodes[i], "hidden");
|
159
|
+
}
|
160
|
+
|
161
|
+
if(pos == this.selectedIndex){
|
162
|
+
dojo[pos == this.selectedIndex ? "addClass" : "removeClass"]
|
163
|
+
(nodes[i], "selected");
|
164
|
+
}
|
165
|
+
pos++;
|
166
|
+
}
|
167
|
+
|
168
|
+
var numRows = Math.ceil(pos / this.maxPerRow);
|
169
|
+
|
170
|
+
if(this._numRows != numRows){
|
171
|
+
this._numRows = numRows;
|
172
|
+
dojo.style(this.domNode, "height",
|
173
|
+
(numRows * (this._thumbSize.h + this.padding * 2)) + "px");
|
174
|
+
}
|
175
|
+
|
176
|
+
},
|
177
|
+
|
178
|
+
addThumb: function(item, url, index){
|
179
|
+
|
180
|
+
var thumbDiv;
|
181
|
+
if(this.cache.length > 0){
|
182
|
+
// Reuse a previously created node if possible
|
183
|
+
thumbDiv = this.cache.pop();
|
184
|
+
}else{
|
185
|
+
// Create a new thumb
|
186
|
+
thumbDiv = dojo.create("div", {
|
187
|
+
"class": "mblThumb hidden",
|
188
|
+
innerHTML: dojo.string.substitute(this.itemTemplate, {
|
189
|
+
url: url
|
190
|
+
}, null, this)
|
191
|
+
}, this.domNode);
|
192
|
+
}
|
193
|
+
dojo.addClass(thumbDiv, "hidden");
|
194
|
+
var loader = dojo.create("img",{});
|
195
|
+
loader._thumbDiv = thumbDiv;
|
196
|
+
loader._conn = dojo.connect(loader, "onload", this.handleImgLoad);
|
197
|
+
loader._url = url;
|
198
|
+
thumbDiv._loading = true;
|
199
|
+
|
200
|
+
this._onLoadImages[url] = loader;
|
201
|
+
loader.src = url;
|
202
|
+
|
203
|
+
this.visibleImages.push(thumbDiv);
|
204
|
+
|
205
|
+
thumbDiv._index = index;
|
206
|
+
thumbDiv._item = item;
|
207
|
+
thumbDiv._url = url;
|
208
|
+
thumbDiv._cached = false;
|
209
|
+
|
210
|
+
if(!this._thumbSize){
|
211
|
+
this._thumbSize = dojo.marginBox(thumbDiv);
|
212
|
+
this.calcPadding();
|
213
|
+
}
|
214
|
+
},
|
215
|
+
|
216
|
+
handleImgLoad: function(event){
|
217
|
+
var img = event.target;
|
218
|
+
dojo.disconnect(img._conn);
|
219
|
+
dojo.removeClass(img._thumbDiv, "hidden");
|
220
|
+
img._thumbDiv._loading = false;
|
221
|
+
|
222
|
+
dojo.query(".mblThumbSrc", img._thumbDiv)
|
223
|
+
.style("backgroundImage", "url(" + img._url + ")");
|
224
|
+
|
225
|
+
delete this._onLoadImages[img._url];
|
226
|
+
},
|
227
|
+
|
228
|
+
calcPadding: function(){
|
229
|
+
var width = this._size.w;
|
230
|
+
|
231
|
+
var thumbWidth = this._thumbSize.w;
|
232
|
+
|
233
|
+
var imgBounds = thumbWidth + this.minPadding;
|
234
|
+
|
235
|
+
this.maxPerRow = Math.floor(width / imgBounds);
|
236
|
+
|
237
|
+
this.padding = (width - (thumbWidth * this.maxPerRow)) / (this.maxPerRow * 2);
|
238
|
+
},
|
239
|
+
|
240
|
+
place: function(node, x, y){
|
241
|
+
// TODO: replace this with webkit transforms
|
242
|
+
|
243
|
+
|
244
|
+
dojo.style(node, {
|
245
|
+
"-webkit-transform" :"translate(" + x + "px," + y + "px)"
|
246
|
+
});
|
247
|
+
// dojo.style(node, {
|
248
|
+
// top: y + "px",
|
249
|
+
// left: x + "px",
|
250
|
+
// visibility: "visible"
|
251
|
+
// });
|
252
|
+
}
|
253
|
+
|
254
|
+
});
|
@@ -0,0 +1,716 @@
|
|
1
|
+
dojo.provide("dojox.mobile.app.ImageView");
|
2
|
+
dojo.experimental("dojox.mobile.app.ImageView");
|
3
|
+
dojo.require("dojox.mobile.app._Widget");
|
4
|
+
|
5
|
+
dojo.require("dojo.fx.easing");
|
6
|
+
|
7
|
+
dojo.declare("dojox.mobile.app.ImageView", dojox.mobile.app._Widget, {
|
8
|
+
|
9
|
+
// zoom: Number
|
10
|
+
// The current level of zoom. This should not be set manually.
|
11
|
+
zoom: 1,
|
12
|
+
|
13
|
+
// zoomCenterX: Number
|
14
|
+
// The X coordinate in the image where the zoom is focused
|
15
|
+
zoomCenterX: 0,
|
16
|
+
|
17
|
+
// zoomCenterY: Number
|
18
|
+
// The Y coordinate in the image where the zoom is focused
|
19
|
+
zoomCenterY: 0,
|
20
|
+
|
21
|
+
// maxZoom: Number
|
22
|
+
// The highest degree to which an image can be zoomed. For example,
|
23
|
+
// a maxZoom of 5 means that the image will be 5 times larger than normal
|
24
|
+
maxZoom: 5,
|
25
|
+
|
26
|
+
// autoZoomLevel: Number
|
27
|
+
// The degree to which the image is zoomed when auto zoom is invoked.
|
28
|
+
// The higher the number, the more the image is zoomed in.
|
29
|
+
autoZoomLevel: 3,
|
30
|
+
|
31
|
+
// disableAutoZoom: Boolean
|
32
|
+
// Disables auto zoom
|
33
|
+
disableAutoZoom: false,
|
34
|
+
|
35
|
+
// disableSwipe: Boolean
|
36
|
+
// Disables the users ability to swipe from one image to the next.
|
37
|
+
disableSwipe: false,
|
38
|
+
|
39
|
+
// autoZoomEvent: String
|
40
|
+
// Overrides the default event listened to which invokes auto zoom
|
41
|
+
autoZoomEvent: null,
|
42
|
+
|
43
|
+
// _leftImg: Node
|
44
|
+
// The full sized image to the left
|
45
|
+
_leftImg: null,
|
46
|
+
|
47
|
+
// _centerImg: Node
|
48
|
+
// The full sized image in the center
|
49
|
+
_centerImg: null,
|
50
|
+
|
51
|
+
// _rightImg: Node
|
52
|
+
// The full sized image to the right
|
53
|
+
_rightImg: null,
|
54
|
+
|
55
|
+
// _leftImg: Node
|
56
|
+
// The small sized image to the left
|
57
|
+
_leftSmallImg: null,
|
58
|
+
|
59
|
+
// _centerImg: Node
|
60
|
+
// The small sized image in the center
|
61
|
+
_centerSmallImg: null,
|
62
|
+
|
63
|
+
// _rightImg: Node
|
64
|
+
// The small sized image to the right
|
65
|
+
_rightSmallImg: null,
|
66
|
+
|
67
|
+
constructor: function(){
|
68
|
+
|
69
|
+
this.panX = 0;
|
70
|
+
this.panY = 0;
|
71
|
+
|
72
|
+
this.handleLoad = dojo.hitch(this, this.handleLoad);
|
73
|
+
this._updateAnimatedZoom = dojo.hitch(this, this._updateAnimatedZoom);
|
74
|
+
this._updateAnimatedPan = dojo.hitch(this, this._updateAnimatedPan);
|
75
|
+
this._onAnimPanEnd = dojo.hitch(this, this._onAnimPanEnd);
|
76
|
+
},
|
77
|
+
|
78
|
+
buildRendering: function(){
|
79
|
+
this.inherited(arguments);
|
80
|
+
|
81
|
+
this.canvas = dojo.create("canvas", {}, this.domNode);
|
82
|
+
|
83
|
+
dojo.addClass(this.domNode, "mblImageView");
|
84
|
+
},
|
85
|
+
|
86
|
+
postCreate: function(){
|
87
|
+
this.inherited(arguments);
|
88
|
+
|
89
|
+
this.size = dojo.marginBox(this.domNode);
|
90
|
+
|
91
|
+
dojo.style(this.canvas, {
|
92
|
+
width: this.size.w + "px",
|
93
|
+
height: this.size.h + "px"
|
94
|
+
});
|
95
|
+
this.canvas.height = this.size.h;
|
96
|
+
this.canvas.width = this.size.w;
|
97
|
+
|
98
|
+
var _this = this;
|
99
|
+
|
100
|
+
// Listen to the mousedown/touchstart event. Record the position
|
101
|
+
// so we can use it to pan the image.
|
102
|
+
this.connect(this.domNode, "onmousedown", function(event){
|
103
|
+
if(_this.isAnimating()){
|
104
|
+
return;
|
105
|
+
}
|
106
|
+
if(_this.panX){
|
107
|
+
_this.handleDragEnd();
|
108
|
+
}
|
109
|
+
|
110
|
+
_this.downX = event.targetTouches ? event.targetTouches[0].clientX : event.clientX;
|
111
|
+
_this.downY = event.targetTouches ? event.targetTouches[0].clientY : event.clientY;
|
112
|
+
});
|
113
|
+
|
114
|
+
// record the movement of the mouse.
|
115
|
+
this.connect(this.domNode, "onmousemove", function(event){
|
116
|
+
if(_this.isAnimating()){
|
117
|
+
return;
|
118
|
+
}
|
119
|
+
if((!_this.downX && _this.downX !== 0) || (!_this.downY && _this.downY !== 0)){
|
120
|
+
// If the touch didn't begin on this widget, ignore the movement
|
121
|
+
return;
|
122
|
+
}
|
123
|
+
|
124
|
+
if((!_this.disableSwipe && _this.zoom == 1)
|
125
|
+
|| (!_this.disableAutoZoom && _this.zoom != 1)){
|
126
|
+
var x = event.targetTouches ?
|
127
|
+
event.targetTouches[0].clientX : event.pageX;
|
128
|
+
var y = event.targetTouches ?
|
129
|
+
event.targetTouches[0].clientY : event.pageY;
|
130
|
+
|
131
|
+
_this.panX = x - _this.downX;
|
132
|
+
_this.panY = y - _this.downY;
|
133
|
+
|
134
|
+
if(_this.zoom == 1){
|
135
|
+
// If not zoomed in, then try to move to the next or prev image
|
136
|
+
// but only if the mouse has moved more than 10 pixels
|
137
|
+
// in the X direction
|
138
|
+
if(Math.abs(_this.panX) > 10){
|
139
|
+
_this.render();
|
140
|
+
}
|
141
|
+
}else{
|
142
|
+
// If zoomed in, pan the image if the mouse has moved more
|
143
|
+
// than 10 pixels in either direction.
|
144
|
+
if(Math.abs(_this.panX) > 10 || Math.abs(_this.panY) > 10){
|
145
|
+
_this.render();
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
});
|
150
|
+
|
151
|
+
this.connect(this.domNode, "onmouseout", function(event){
|
152
|
+
if(!_this.isAnimating() && _this.panX){
|
153
|
+
_this.handleDragEnd();
|
154
|
+
}
|
155
|
+
});
|
156
|
+
|
157
|
+
this.connect(this.domNode, "onmouseover", function(event){
|
158
|
+
_this.downX = _this.downY = null;
|
159
|
+
});
|
160
|
+
|
161
|
+
// Set up AutoZoom, which zooms in a fixed amount when the user taps
|
162
|
+
// a part of the canvas
|
163
|
+
this.connect(this.domNode, "onclick", function(event){
|
164
|
+
if(_this.isAnimating()){
|
165
|
+
return;
|
166
|
+
}
|
167
|
+
if(_this.downX == null || _this.downY == null){
|
168
|
+
return;
|
169
|
+
}
|
170
|
+
|
171
|
+
var x = (event.targetTouches ?
|
172
|
+
event.targetTouches[0].clientX : event.pageX);
|
173
|
+
var y = (event.targetTouches ?
|
174
|
+
event.targetTouches[0].clientY : event.pageY);
|
175
|
+
|
176
|
+
// If the mouse/finger has moved more than 14 pixels from where it
|
177
|
+
// started, do not treat it as a click. It is a drag.
|
178
|
+
if(Math.abs(_this.panX) > 14 || Math.abs(_this.panY) > 14){
|
179
|
+
_this.downX = _this.downY = null;
|
180
|
+
_this.handleDragEnd();
|
181
|
+
return;
|
182
|
+
}
|
183
|
+
_this.downX = _this.downY = null;
|
184
|
+
|
185
|
+
if(!_this.disableAutoZoom){
|
186
|
+
|
187
|
+
if(!_this._centerImg || !_this._centerImg._loaded){
|
188
|
+
// Do nothing until the image is loaded
|
189
|
+
return;
|
190
|
+
}
|
191
|
+
if(_this.zoom != 1){
|
192
|
+
_this.set("animatedZoom", 1);
|
193
|
+
return;
|
194
|
+
}
|
195
|
+
|
196
|
+
var pos = dojo._abs(_this.domNode);
|
197
|
+
|
198
|
+
// Translate the clicked point to a point on the source image
|
199
|
+
var xRatio = _this.size.w / _this._centerImg.width;
|
200
|
+
var yRatio = _this.size.h / _this._centerImg.height;
|
201
|
+
|
202
|
+
// Do an animated zoom to the point which was clicked.
|
203
|
+
_this.zoomTo(
|
204
|
+
((x - pos.x) / xRatio) - _this.panX,
|
205
|
+
((y - pos.y) / yRatio) - _this.panY,
|
206
|
+
_this.autoZoomLevel);
|
207
|
+
}
|
208
|
+
});
|
209
|
+
|
210
|
+
// Listen for Flick events
|
211
|
+
dojo.connect(this.domNode, "flick", this, "handleFlick");
|
212
|
+
},
|
213
|
+
|
214
|
+
isAnimating: function(){
|
215
|
+
// summary:
|
216
|
+
// Returns true if an animation is in progress, false otherwise.
|
217
|
+
return this._anim && this._anim.status() == "playing";
|
218
|
+
},
|
219
|
+
|
220
|
+
handleDragEnd: function(){
|
221
|
+
// summary:
|
222
|
+
// Handles the end of a dragging event. If not zoomed in, it
|
223
|
+
// determines if the next or previous image should be transitioned
|
224
|
+
// to.
|
225
|
+
this.downX = this.downY = null;
|
226
|
+
console.log("handleDragEnd");
|
227
|
+
|
228
|
+
if(this.zoom == 1){
|
229
|
+
if(!this.panX){
|
230
|
+
return;
|
231
|
+
}
|
232
|
+
|
233
|
+
var leftLoaded = (this._leftImg && this._leftImg._loaded)
|
234
|
+
|| (this._leftSmallImg && this._leftSmallImg._loaded);
|
235
|
+
var rightLoaded = (this._rightImg && this._rightImg._loaded)
|
236
|
+
|| (this._rightSmallImg && this._rightSmallImg._loaded);
|
237
|
+
|
238
|
+
// Check if the drag has moved the image more than half its length.
|
239
|
+
// If so, move to either the previous or next image.
|
240
|
+
var doMove =
|
241
|
+
!(Math.abs(this.panX) < this._centerImg._baseWidth / 2) &&
|
242
|
+
(
|
243
|
+
(this.panX > 0 && leftLoaded ? 1 : 0) ||
|
244
|
+
(this.panX < 0 && rightLoaded ? 1 : 0)
|
245
|
+
);
|
246
|
+
|
247
|
+
|
248
|
+
if(!doMove){
|
249
|
+
// If not moving to another image, animate the sliding of the
|
250
|
+
// image back into place.
|
251
|
+
this._animPanTo(0, dojo.fx.easing.expoOut, 700);
|
252
|
+
}else{
|
253
|
+
// Move to another image.
|
254
|
+
this.moveTo(this.panX);
|
255
|
+
}
|
256
|
+
}else{
|
257
|
+
if(!this.panX && !this.panY){
|
258
|
+
return;
|
259
|
+
}
|
260
|
+
// Recenter the zoomed image based on where it was panned to
|
261
|
+
// previously
|
262
|
+
this.zoomCenterX -= (this.panX / this.zoom);
|
263
|
+
this.zoomCenterY -= (this.panY / this.zoom);
|
264
|
+
|
265
|
+
this.panX = this.panY = 0;
|
266
|
+
}
|
267
|
+
|
268
|
+
},
|
269
|
+
|
270
|
+
handleFlick: function(event){
|
271
|
+
// summary:
|
272
|
+
// Handle a flick event.
|
273
|
+
if(this.zoom == 1 && event.duration < 500){
|
274
|
+
// Only handle quick flicks here, less than 0.5 seconds
|
275
|
+
|
276
|
+
// If not zoomed in, then check if we should move to the next photo
|
277
|
+
// or not
|
278
|
+
if(event.direction == "ltr"){
|
279
|
+
this.moveTo(1);
|
280
|
+
}else if(event.direction == "rtl"){
|
281
|
+
this.moveTo(-1);
|
282
|
+
}
|
283
|
+
// If an up or down flick occurs, it means nothing so ignore it
|
284
|
+
this.downX = this.downY = null;
|
285
|
+
}
|
286
|
+
},
|
287
|
+
|
288
|
+
moveTo: function(direction){
|
289
|
+
direction = direction > 0 ? 1 : -1;
|
290
|
+
var toImg;
|
291
|
+
|
292
|
+
if(direction < 1){
|
293
|
+
if(this._rightImg && this._rightImg._loaded){
|
294
|
+
toImg = this._rightImg;
|
295
|
+
}else if(this._rightSmallImg && this._rightSmallImg._loaded){
|
296
|
+
toImg = this._rightSmallImg;
|
297
|
+
}
|
298
|
+
}else{
|
299
|
+
if(this._leftImg && this._leftImg._loaded){
|
300
|
+
toImg = this._leftImg;
|
301
|
+
}else if(this._leftSmallImg && this._leftSmallImg._loaded){
|
302
|
+
toImg = this._leftSmallImg;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
|
306
|
+
this._moveDir = direction;
|
307
|
+
var _this = this;
|
308
|
+
|
309
|
+
if(toImg && toImg._loaded){
|
310
|
+
// If the image is loaded, make a linear animation to show it
|
311
|
+
this._animPanTo(this.size.w * direction, null, 500, function(){
|
312
|
+
_this.panX = 0;
|
313
|
+
_this.panY = 0;
|
314
|
+
|
315
|
+
if(direction < 0){
|
316
|
+
// Moving to show the right image
|
317
|
+
_this._switchImage("left", "right");
|
318
|
+
}else{
|
319
|
+
// Moving to show the left image
|
320
|
+
_this._switchImage("right", "left");
|
321
|
+
}
|
322
|
+
|
323
|
+
_this.render();
|
324
|
+
_this.onChange(direction * -1);
|
325
|
+
});
|
326
|
+
|
327
|
+
}else{
|
328
|
+
// If the next image is not loaded, make an animation to
|
329
|
+
// move the center image to half the width of the widget and back
|
330
|
+
// again
|
331
|
+
|
332
|
+
console.log("moveTo image not loaded!", toImg);
|
333
|
+
|
334
|
+
this._animPanTo(0, dojo.fx.easing.expoOut, 700);
|
335
|
+
}
|
336
|
+
},
|
337
|
+
|
338
|
+
_switchImage: function(toImg, fromImg){
|
339
|
+
var toSmallImgName = "_" + toImg + "SmallImg";
|
340
|
+
var toImgName = "_" + toImg + "Img";
|
341
|
+
|
342
|
+
var fromSmallImgName = "_" + fromImg + "SmallImg";
|
343
|
+
var fromImgName = "_" + fromImg + "Img";
|
344
|
+
|
345
|
+
this[toImgName] = this._centerImg;
|
346
|
+
this[toSmallImgName] = this._centerSmallImg;
|
347
|
+
|
348
|
+
this[toImgName]._type = toImg;
|
349
|
+
|
350
|
+
if(this[toSmallImgName]){
|
351
|
+
this[toSmallImgName]._type = toImg;
|
352
|
+
}
|
353
|
+
|
354
|
+
this._centerImg = this[fromImgName];
|
355
|
+
this._centerSmallImg = this[fromSmallImgName];
|
356
|
+
this._centerImg._type = "center";
|
357
|
+
|
358
|
+
if(this._centerSmallImg){
|
359
|
+
this._centerSmallImg._type = "center";
|
360
|
+
}
|
361
|
+
this[fromImgName] = this[fromSmallImgName] = null;
|
362
|
+
},
|
363
|
+
|
364
|
+
_animPanTo: function(to, easing, duration, callback){
|
365
|
+
this._animCallback = callback;
|
366
|
+
this._anim = new dojo.Animation({
|
367
|
+
curve: [this.panX, to],
|
368
|
+
onAnimate: this._updateAnimatedPan,
|
369
|
+
duration: duration || 500,
|
370
|
+
easing: easing,
|
371
|
+
onEnd: this._onAnimPanEnd
|
372
|
+
});
|
373
|
+
|
374
|
+
this._anim.play();
|
375
|
+
return this._anim;
|
376
|
+
},
|
377
|
+
|
378
|
+
onChange: function(direction){
|
379
|
+
// summary:
|
380
|
+
// Stub function that can be listened to in order to provide
|
381
|
+
// new images when the displayed image changes
|
382
|
+
},
|
383
|
+
|
384
|
+
_updateAnimatedPan: function(amount){
|
385
|
+
this.panX = amount;
|
386
|
+
this.render();
|
387
|
+
},
|
388
|
+
|
389
|
+
_onAnimPanEnd: function(){
|
390
|
+
this.panX = this.panY = 0;
|
391
|
+
|
392
|
+
if(this._animCallback){
|
393
|
+
this._animCallback();
|
394
|
+
}
|
395
|
+
},
|
396
|
+
|
397
|
+
zoomTo: function(centerX, centerY, zoom){
|
398
|
+
this.set("zoomCenterX", centerX);
|
399
|
+
this.set("zoomCenterY", centerY);
|
400
|
+
|
401
|
+
this.set("animatedZoom", zoom);
|
402
|
+
},
|
403
|
+
|
404
|
+
render: function(){
|
405
|
+
var cxt = this.canvas.getContext('2d');
|
406
|
+
|
407
|
+
cxt.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
408
|
+
|
409
|
+
// Render the center image
|
410
|
+
this._renderImg(
|
411
|
+
this._centerSmallImg,
|
412
|
+
this._centerImg,
|
413
|
+
this.zoom == 1 ? (this.panX < 0 ? 1 : this.panX > 0 ? -1 : 0) : 0);
|
414
|
+
|
415
|
+
if(this.zoom == 1 && this.panX != 0){
|
416
|
+
if(this.panX > 0){
|
417
|
+
// Render the left image, showing the right side of it
|
418
|
+
this._renderImg(this._leftSmallImg, this._leftImg, 1);
|
419
|
+
}else{
|
420
|
+
// Render the right image, showing the left side of it
|
421
|
+
this._renderImg(this._rightSmallImg, this._rightImg, -1);
|
422
|
+
}
|
423
|
+
}
|
424
|
+
},
|
425
|
+
|
426
|
+
_renderImg: function(smallImg, largeImg, panDir){
|
427
|
+
// summary:
|
428
|
+
// Renders a single image
|
429
|
+
|
430
|
+
|
431
|
+
// If zoomed, we just display the center img
|
432
|
+
var img = (largeImg && largeImg._loaded) ? largeImg : smallImg;
|
433
|
+
|
434
|
+
if(!img || !img._loaded){
|
435
|
+
// If neither the large or small image is loaded, display nothing
|
436
|
+
return;
|
437
|
+
}
|
438
|
+
var cxt = this.canvas.getContext('2d');
|
439
|
+
|
440
|
+
var baseWidth = img._baseWidth;
|
441
|
+
var baseHeight = img._baseHeight;
|
442
|
+
|
443
|
+
// Calculate the size the image would be if there were no bounds
|
444
|
+
var desiredWidth = baseWidth * this.zoom;
|
445
|
+
var desiredHeight = baseHeight * this.zoom;
|
446
|
+
|
447
|
+
// Calculate the actual size of the viewable image
|
448
|
+
var destWidth = Math.min(this.size.w, desiredWidth);
|
449
|
+
var destHeight = Math.min(this.size.h, desiredHeight);
|
450
|
+
|
451
|
+
|
452
|
+
// Calculate the size of the window on the original image to use
|
453
|
+
var sourceWidth = this.dispWidth = img.width * (destWidth / desiredWidth);
|
454
|
+
var sourceHeight = this.dispHeight = img.height * (destHeight / desiredHeight);
|
455
|
+
|
456
|
+
var zoomCenterX = this.zoomCenterX - (this.panX / this.zoom);
|
457
|
+
var zoomCenterY = this.zoomCenterY - (this.panY / this.zoom);
|
458
|
+
|
459
|
+
// Calculate where the center of the view should be
|
460
|
+
var centerX = Math.floor(Math.max(sourceWidth / 2,
|
461
|
+
Math.min(img.width - sourceWidth / 2, zoomCenterX)));
|
462
|
+
var centerY = Math.floor(Math.max(sourceHeight / 2,
|
463
|
+
Math.min(img.height - sourceHeight / 2, zoomCenterY)));
|
464
|
+
|
465
|
+
|
466
|
+
var sourceX = Math.max(0,
|
467
|
+
Math.round((img.width - sourceWidth)/2 + (centerX - img._centerX)) );
|
468
|
+
var sourceY = Math.max(0,
|
469
|
+
Math.round((img.height - sourceHeight) / 2 + (centerY - img._centerY))
|
470
|
+
);
|
471
|
+
|
472
|
+
var destX = Math.round(Math.max(0, this.canvas.width - destWidth)/2);
|
473
|
+
var destY = Math.round(Math.max(0, this.canvas.height - destHeight)/2);
|
474
|
+
|
475
|
+
var oldDestWidth = destWidth;
|
476
|
+
var oldSourceWidth = sourceWidth;
|
477
|
+
|
478
|
+
if(this.zoom == 1 && panDir && this.panX){
|
479
|
+
|
480
|
+
if(this.panX < 0){
|
481
|
+
if(panDir > 0){
|
482
|
+
// If the touch is moving left, and the right side of the
|
483
|
+
// image should be shown, then reduce the destination width
|
484
|
+
// by the absolute value of panX
|
485
|
+
destWidth -= Math.abs(this.panX);
|
486
|
+
destX = 0;
|
487
|
+
}else if(panDir < 0){
|
488
|
+
// If the touch is moving left, and the left side of the
|
489
|
+
// image should be shown, then set the displayed width
|
490
|
+
// to the absolute value of panX, less some pixels for
|
491
|
+
// a padding between images
|
492
|
+
destWidth = Math.max(1, Math.abs(this.panX) - 5);
|
493
|
+
destX = this.size.w - destWidth;
|
494
|
+
}
|
495
|
+
}else{
|
496
|
+
if(panDir > 0){
|
497
|
+
// If the touch is moving right, and the right side of the
|
498
|
+
// image should be shown, then set the destination width
|
499
|
+
// to the absolute value of the pan, less some pixels for
|
500
|
+
// padding
|
501
|
+
destWidth = Math.max(1, Math.abs(this.panX) - 5);
|
502
|
+
destX = 0;
|
503
|
+
}else if(panDir < 0){
|
504
|
+
// If the touch is moving right, and the left side of the
|
505
|
+
// image should be shown, then reduce the destination width
|
506
|
+
// by the widget width minus the absolute value of panX
|
507
|
+
destWidth -= Math.abs(this.panX);
|
508
|
+
destX = this.size.w - destWidth;
|
509
|
+
}
|
510
|
+
}
|
511
|
+
|
512
|
+
sourceWidth = Math.max(1,
|
513
|
+
Math.floor(sourceWidth * (destWidth / oldDestWidth)));
|
514
|
+
|
515
|
+
if(panDir > 0){
|
516
|
+
// If the right side of the image should be displayed, move
|
517
|
+
// the sourceX to be the width of the image minus the difference
|
518
|
+
// between the original sourceWidth and the new sourceWidth
|
519
|
+
sourceX = (sourceX + oldSourceWidth) - (sourceWidth);
|
520
|
+
}
|
521
|
+
sourceX = Math.floor(sourceX);
|
522
|
+
}
|
523
|
+
|
524
|
+
try{
|
525
|
+
|
526
|
+
// See https://developer.mozilla.org/en/Canvas_tutorial/Using_images
|
527
|
+
cxt.drawImage(
|
528
|
+
img,
|
529
|
+
Math.max(0, sourceX),
|
530
|
+
sourceY,
|
531
|
+
Math.min(oldSourceWidth, sourceWidth),
|
532
|
+
sourceHeight,
|
533
|
+
destX, // Xpos
|
534
|
+
destY, // Ypos
|
535
|
+
Math.min(oldDestWidth, destWidth),
|
536
|
+
destHeight
|
537
|
+
);
|
538
|
+
}catch(e){
|
539
|
+
console.log("Caught Error",e,
|
540
|
+
|
541
|
+
"type=", img._type,
|
542
|
+
"oldDestWidth = ", oldDestWidth,
|
543
|
+
"destWidth", destWidth,
|
544
|
+
"destX", destX
|
545
|
+
, "oldSourceWidth=",oldSourceWidth,
|
546
|
+
"sourceWidth=", sourceWidth,
|
547
|
+
"sourceX = " + sourceX
|
548
|
+
);
|
549
|
+
}
|
550
|
+
},
|
551
|
+
|
552
|
+
_setZoomAttr: function(amount){
|
553
|
+
this.zoom = Math.min(this.maxZoom, Math.max(1, amount));
|
554
|
+
|
555
|
+
if(this.zoom == 1
|
556
|
+
&& this._centerImg
|
557
|
+
&& this._centerImg._loaded){
|
558
|
+
|
559
|
+
if(!this.isAnimating()){
|
560
|
+
this.zoomCenterX = this._centerImg.width / 2;
|
561
|
+
this.zoomCenterY = this._centerImg.height / 2;
|
562
|
+
}
|
563
|
+
this.panX = this.panY = 0;
|
564
|
+
}
|
565
|
+
|
566
|
+
this.render();
|
567
|
+
},
|
568
|
+
|
569
|
+
_setZoomCenterXAttr: function(value){
|
570
|
+
if(value != this.zoomCenterX){
|
571
|
+
if(this._centerImg && this._centerImg._loaded){
|
572
|
+
value = Math.min(this._centerImg.width, value);
|
573
|
+
}
|
574
|
+
this.zoomCenterX = Math.max(0, Math.round(value));
|
575
|
+
}
|
576
|
+
},
|
577
|
+
|
578
|
+
_setZoomCenterYAttr: function(value){
|
579
|
+
if(value != this.zoomCenterY){
|
580
|
+
if(this._centerImg && this._centerImg._loaded){
|
581
|
+
value = Math.min(this._centerImg.height, value);
|
582
|
+
}
|
583
|
+
this.zoomCenterY = Math.max(0, Math.round(value));
|
584
|
+
}
|
585
|
+
},
|
586
|
+
|
587
|
+
_setZoomCenterAttr: function(value){
|
588
|
+
if(value.x != this.zoomCenterX || value.y != this.zoomCenterY){
|
589
|
+
this.set("zoomCenterX", value.x);
|
590
|
+
this.set("zoomCenterY", value.y);
|
591
|
+
this.render();
|
592
|
+
}
|
593
|
+
},
|
594
|
+
|
595
|
+
_setAnimatedZoomAttr: function(amount){
|
596
|
+
if(this._anim && this._anim.status() == "playing"){
|
597
|
+
return;
|
598
|
+
}
|
599
|
+
|
600
|
+
this._anim = new dojo.Animation({
|
601
|
+
curve: [this.zoom, amount],
|
602
|
+
onAnimate: this._updateAnimatedZoom,
|
603
|
+
onEnd: this._onAnimEnd
|
604
|
+
});
|
605
|
+
|
606
|
+
this._anim.play();
|
607
|
+
},
|
608
|
+
|
609
|
+
_updateAnimatedZoom: function(amount){
|
610
|
+
this._setZoomAttr(amount);
|
611
|
+
},
|
612
|
+
|
613
|
+
_setCenterUrlAttr: function(urlOrObj){
|
614
|
+
this._setImage("center", urlOrObj);
|
615
|
+
},
|
616
|
+
_setLeftUrlAttr: function(urlOrObj){
|
617
|
+
this._setImage("left", urlOrObj);
|
618
|
+
},
|
619
|
+
_setRightUrlAttr: function(urlOrObj){
|
620
|
+
this._setImage("right", urlOrObj);
|
621
|
+
},
|
622
|
+
|
623
|
+
_setImage: function(name, urlOrObj){
|
624
|
+
var smallUrl = null;
|
625
|
+
|
626
|
+
var largeUrl = null;
|
627
|
+
|
628
|
+
if(dojo.isString(urlOrObj)){
|
629
|
+
// If the argument is a string, then just load the large url
|
630
|
+
largeUrl = urlOrObj;
|
631
|
+
}else{
|
632
|
+
largeUrl = urlOrObj.large;
|
633
|
+
smallUrl = urlOrObj.small;
|
634
|
+
}
|
635
|
+
|
636
|
+
if(this["_" + name + "Img"] && this["_" + name + "Img"]._src == largeUrl){
|
637
|
+
// Identical URL, ignore it
|
638
|
+
return;
|
639
|
+
}
|
640
|
+
|
641
|
+
// Just do the large image for now
|
642
|
+
var largeImg = this["_" + name + "Img"] = new Image();
|
643
|
+
largeImg._type = name;
|
644
|
+
largeImg._loaded = false;
|
645
|
+
largeImg._src = largeUrl;
|
646
|
+
largeImg._conn = dojo.connect(largeImg, "onload", this.handleLoad);
|
647
|
+
|
648
|
+
if(smallUrl){
|
649
|
+
// If a url to a small version of the image has been provided,
|
650
|
+
// load that image first.
|
651
|
+
var smallImg = this["_" + name + "SmallImg"] = new Image();
|
652
|
+
smallImg._type = name;
|
653
|
+
smallImg._loaded = false;
|
654
|
+
smallImg._conn = dojo.connect(smallImg, "onload", this.handleLoad);
|
655
|
+
smallImg._isSmall = true;
|
656
|
+
smallImg._src = smallUrl;
|
657
|
+
smallImg.src = smallUrl;
|
658
|
+
}
|
659
|
+
|
660
|
+
// It's important that the large url's src is set after the small image
|
661
|
+
// to ensure it's loaded second.
|
662
|
+
largeImg.src = largeUrl;
|
663
|
+
},
|
664
|
+
|
665
|
+
handleLoad: function(evt){
|
666
|
+
// summary:
|
667
|
+
// Handles the loading of an image, both the large and small
|
668
|
+
// versions. A render is triggered as a result of each image load.
|
669
|
+
|
670
|
+
var img = evt.target;
|
671
|
+
img._loaded = true;
|
672
|
+
|
673
|
+
dojo.disconnect(img._conn);
|
674
|
+
|
675
|
+
var type = img._type;
|
676
|
+
|
677
|
+
switch(type){
|
678
|
+
case "center":
|
679
|
+
this.zoomCenterX = img.width / 2;
|
680
|
+
this.zoomCenterY = img.height / 2;
|
681
|
+
break;
|
682
|
+
}
|
683
|
+
|
684
|
+
var height = img.height;
|
685
|
+
var width = img.width;
|
686
|
+
|
687
|
+
if(width / this.size.w < height / this.size.h){
|
688
|
+
// Fit the height to the height of the canvas
|
689
|
+
img._baseHeight = this.canvas.height;
|
690
|
+
img._baseWidth = width / (height / this.size.h);
|
691
|
+
}else{
|
692
|
+
// Fix the width to the width of the canvas
|
693
|
+
img._baseWidth = this.canvas.width;
|
694
|
+
img._baseHeight = height / (width / this.size.w);
|
695
|
+
}
|
696
|
+
img._centerX = width / 2;
|
697
|
+
img._centerY = height / 2;
|
698
|
+
|
699
|
+
this.render();
|
700
|
+
|
701
|
+
this.onLoad(img._type, img._src, img._isSmall);
|
702
|
+
},
|
703
|
+
|
704
|
+
onLoad: function(type, url, isSmall){
|
705
|
+
// summary:
|
706
|
+
// Dummy function that is called whenever an image loads.
|
707
|
+
// type: String
|
708
|
+
// The position of the image that has loaded, either
|
709
|
+
// "center", "left" or "right"
|
710
|
+
// url: String
|
711
|
+
// The src of the image
|
712
|
+
// isSmall: Boolean
|
713
|
+
// True if it is a small version of the image that has loaded,
|
714
|
+
// false otherwise.
|
715
|
+
}
|
716
|
+
});
|