From f0cfe83e3725f9a3928da97a6e3085e79cb25309 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 10:26:24 +0400 Subject: upgrade dojo to 1.8.3 (refs #570) --- lib/dijit/form/Button.js | 2 +- lib/dijit/form/Button.js.uncompressed.js | 121 ++++ lib/dijit/form/CheckBox.js | 2 +- lib/dijit/form/CheckBox.js.uncompressed.js | 116 ++++ lib/dijit/form/ComboBox.js.uncompressed.js | 27 + lib/dijit/form/ComboBoxMixin.js | 2 +- lib/dijit/form/ComboBoxMixin.js.uncompressed.js | 143 +++++ lib/dijit/form/ComboButton.js | 2 +- lib/dijit/form/ComboButton.js.uncompressed.js | 85 +++ lib/dijit/form/CurrencyTextBox.js | 2 +- lib/dijit/form/CurrencyTextBox.js.uncompressed.js | 85 +++ lib/dijit/form/DataList.js.uncompressed.js | 70 ++ lib/dijit/form/DateTextBox.js.uncompressed.js | 28 + lib/dijit/form/DropDownButton.js | 2 +- lib/dijit/form/DropDownButton.js.uncompressed.js | 99 +++ lib/dijit/form/FilteringSelect.js | 2 +- lib/dijit/form/FilteringSelect.js.uncompressed.js | 234 +++++++ lib/dijit/form/Form.js | 2 +- lib/dijit/form/Form.js.uncompressed.js | 163 +++++ lib/dijit/form/HorizontalRule.js.uncompressed.js | 69 ++ lib/dijit/form/HorizontalRuleLabels.js | 2 +- .../form/HorizontalRuleLabels.js.uncompressed.js | 92 +++ lib/dijit/form/HorizontalSlider.js | 2 +- lib/dijit/form/HorizontalSlider.js.uncompressed.js | 349 ++++++++++ lib/dijit/form/MappedTextBox.js | 2 +- lib/dijit/form/MappedTextBox.js.uncompressed.js | 81 +++ lib/dijit/form/MultiSelect.js | 2 +- lib/dijit/form/MultiSelect.js.uncompressed.js | 134 ++++ lib/dijit/form/NumberSpinner.js | 2 +- lib/dijit/form/NumberSpinner.js.uncompressed.js | 69 ++ lib/dijit/form/NumberTextBox.js | 2 +- lib/dijit/form/NumberTextBox.js.uncompressed.js | 275 ++++++++ lib/dijit/form/RadioButton.js.uncompressed.js | 16 + lib/dijit/form/RangeBoundTextBox.js | 2 +- .../form/RangeBoundTextBox.js.uncompressed.js | 110 ++++ lib/dijit/form/Select.js | 2 +- lib/dijit/form/Select.js.uncompressed.js | 406 ++++++++++++ lib/dijit/form/SimpleTextarea.js | 2 +- lib/dijit/form/SimpleTextarea.js.uncompressed.js | 92 +++ lib/dijit/form/Slider.js.uncompressed.js | 23 + lib/dijit/form/TextBox.js | 2 +- lib/dijit/form/TextBox.js.uncompressed.js | 157 +++++ lib/dijit/form/Textarea.js.uncompressed.js | 42 ++ lib/dijit/form/TimeTextBox.js | 2 +- lib/dijit/form/TimeTextBox.js.uncompressed.js | 79 +++ lib/dijit/form/ToggleButton.js.uncompressed.js | 26 + lib/dijit/form/ValidationTextBox.js | 2 +- .../form/ValidationTextBox.js.uncompressed.js | 332 ++++++++++ lib/dijit/form/VerticalRule.js.uncompressed.js | 28 + .../form/VerticalRuleLabels.js.uncompressed.js | 26 + lib/dijit/form/VerticalSlider.js | 2 +- lib/dijit/form/VerticalSlider.js.uncompressed.js | 35 + lib/dijit/form/_AutoCompleterMixin.js | 2 +- .../form/_AutoCompleterMixin.js.uncompressed.js | 581 +++++++++++++++++ lib/dijit/form/_ButtonMixin.js.uncompressed.js | 84 +++ lib/dijit/form/_CheckBoxMixin.js | 2 +- lib/dijit/form/_CheckBoxMixin.js.uncompressed.js | 77 +++ lib/dijit/form/_ComboBoxMenu.js | 2 +- lib/dijit/form/_ComboBoxMenu.js.uncompressed.js | 131 ++++ lib/dijit/form/_ComboBoxMenuMixin.js | 2 +- .../form/_ComboBoxMenuMixin.js.uncompressed.js | 189 ++++++ lib/dijit/form/_DateTimeTextBox.js | 2 +- lib/dijit/form/_DateTimeTextBox.js.uncompressed.js | 260 ++++++++ lib/dijit/form/_ExpandingTextAreaMixin.js | 2 +- .../_ExpandingTextAreaMixin.js.uncompressed.js | 130 ++++ lib/dijit/form/_FormMixin.js | 2 +- lib/dijit/form/_FormMixin.js.uncompressed.js | 456 +++++++++++++ lib/dijit/form/_FormSelectWidget.js | 2 +- .../form/_FormSelectWidget.js.uncompressed.js | 707 +++++++++++++++++++++ lib/dijit/form/_FormValueMixin.js | 2 +- lib/dijit/form/_FormValueMixin.js.uncompressed.js | 89 +++ lib/dijit/form/_FormValueWidget.js | 2 +- lib/dijit/form/_FormValueWidget.js.uncompressed.js | 51 ++ lib/dijit/form/_FormWidget.js | 2 +- lib/dijit/form/_FormWidget.js.uncompressed.js | 71 +++ lib/dijit/form/_FormWidgetMixin.js | 2 +- lib/dijit/form/_FormWidgetMixin.js.uncompressed.js | 227 +++++++ lib/dijit/form/_ListBase.js | 2 +- lib/dijit/form/_ListBase.js.uncompressed.js | 135 ++++ lib/dijit/form/_ListMouseMixin.js | 2 +- lib/dijit/form/_ListMouseMixin.js.uncompressed.js | 79 +++ lib/dijit/form/_RadioButtonMixin.js | 2 +- .../form/_RadioButtonMixin.js.uncompressed.js | 71 +++ lib/dijit/form/_SearchMixin.js | 2 + lib/dijit/form/_SearchMixin.js.uncompressed.js | 264 ++++++++ lib/dijit/form/_Spinner.js | 2 +- lib/dijit/form/_Spinner.js.uncompressed.js | 160 +++++ lib/dijit/form/_TextBoxMixin.js | 2 +- lib/dijit/form/_TextBoxMixin.js.uncompressed.js | 474 ++++++++++++++ lib/dijit/form/_ToggleButtonMixin.js | 2 +- .../form/_ToggleButtonMixin.js.uncompressed.js | 55 ++ lib/dijit/form/nls/ComboBox.js.uncompressed.js | 40 ++ lib/dijit/form/nls/Textarea.js.uncompressed.js | 43 ++ lib/dijit/form/nls/ar/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/ar/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/ar/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/az/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/az/Textarea.js.uncompressed.js | 7 + lib/dijit/form/nls/az/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/ca/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/ca/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/ca/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/cs/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/cs/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/cs/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/da/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/da/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/da/validate.js | 2 +- lib/dijit/form/nls/da/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/de/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/de/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/de/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/el/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/el/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/el/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/es/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/es/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/es/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/fi/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/fi/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/fi/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/fr/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/fr/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/fr/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/he/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/he/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/he/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/hr/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/hr/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/hr/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/hu/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/hu/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/hu/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/it/ComboBox.js | 2 +- lib/dijit/form/nls/it/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/it/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/it/validate.js | 2 +- lib/dijit/form/nls/it/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/ja/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/ja/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/ja/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/kk/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/kk/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/kk/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/ko/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/ko/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/ko/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/nb/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/nb/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/nb/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/nl/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/nl/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/nl/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/pl/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/pl/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/pl/validate.js | 2 +- lib/dijit/form/nls/pl/validate.js.uncompressed.js | 7 + .../form/nls/pt-pt/ComboBox.js.uncompressed.js | 6 + .../form/nls/pt-pt/Textarea.js.uncompressed.js | 9 + .../form/nls/pt-pt/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/pt/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/pt/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/pt/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/ro/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/ro/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/ro/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/ru/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/ru/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/ru/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/sk/ComboBox.js | 2 +- lib/dijit/form/nls/sk/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/sk/Textarea.js | 2 +- lib/dijit/form/nls/sk/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/sk/validate.js | 2 +- lib/dijit/form/nls/sk/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/sl/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/sl/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/sl/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/sv/ComboBox.js | 2 +- lib/dijit/form/nls/sv/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/sv/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/sv/validate.js | 2 +- lib/dijit/form/nls/sv/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/th/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/th/Textarea.js | 2 +- lib/dijit/form/nls/th/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/th/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/tr/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/tr/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/tr/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/validate.js.uncompressed.js | 41 ++ .../form/nls/zh-tw/ComboBox.js.uncompressed.js | 6 + .../form/nls/zh-tw/Textarea.js.uncompressed.js | 9 + .../form/nls/zh-tw/validate.js.uncompressed.js | 7 + lib/dijit/form/nls/zh/ComboBox.js.uncompressed.js | 6 + lib/dijit/form/nls/zh/Textarea.js | 2 +- lib/dijit/form/nls/zh/Textarea.js.uncompressed.js | 9 + lib/dijit/form/nls/zh/validate.js | 2 +- lib/dijit/form/nls/zh/validate.js.uncompressed.js | 7 + lib/dijit/form/templates/CheckBox.html | 2 +- lib/dijit/form/templates/ComboButton.html | 2 +- lib/dijit/form/templates/DropDownBox.html | 2 +- lib/dijit/form/templates/DropDownButton.html | 2 +- lib/dijit/form/templates/HorizontalSlider.html | 3 +- lib/dijit/form/templates/Select.html | 20 +- lib/dijit/form/templates/Spinner.html | 6 +- lib/dijit/form/templates/VerticalSlider.html | 7 +- 207 files changed, 8785 insertions(+), 70 deletions(-) create mode 100644 lib/dijit/form/Button.js.uncompressed.js create mode 100644 lib/dijit/form/CheckBox.js.uncompressed.js create mode 100644 lib/dijit/form/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/ComboBoxMixin.js.uncompressed.js create mode 100644 lib/dijit/form/ComboButton.js.uncompressed.js create mode 100644 lib/dijit/form/CurrencyTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/DataList.js.uncompressed.js create mode 100644 lib/dijit/form/DateTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/DropDownButton.js.uncompressed.js create mode 100644 lib/dijit/form/FilteringSelect.js.uncompressed.js create mode 100644 lib/dijit/form/Form.js.uncompressed.js create mode 100644 lib/dijit/form/HorizontalRule.js.uncompressed.js create mode 100644 lib/dijit/form/HorizontalRuleLabels.js.uncompressed.js create mode 100644 lib/dijit/form/HorizontalSlider.js.uncompressed.js create mode 100644 lib/dijit/form/MappedTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/MultiSelect.js.uncompressed.js create mode 100644 lib/dijit/form/NumberSpinner.js.uncompressed.js create mode 100644 lib/dijit/form/NumberTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/RadioButton.js.uncompressed.js create mode 100644 lib/dijit/form/RangeBoundTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/Select.js.uncompressed.js create mode 100644 lib/dijit/form/SimpleTextarea.js.uncompressed.js create mode 100644 lib/dijit/form/Slider.js.uncompressed.js create mode 100644 lib/dijit/form/TextBox.js.uncompressed.js create mode 100644 lib/dijit/form/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/TimeTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/ToggleButton.js.uncompressed.js create mode 100644 lib/dijit/form/ValidationTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/VerticalRule.js.uncompressed.js create mode 100644 lib/dijit/form/VerticalRuleLabels.js.uncompressed.js create mode 100644 lib/dijit/form/VerticalSlider.js.uncompressed.js create mode 100644 lib/dijit/form/_AutoCompleterMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_ButtonMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_CheckBoxMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_ComboBoxMenu.js.uncompressed.js create mode 100644 lib/dijit/form/_ComboBoxMenuMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_DateTimeTextBox.js.uncompressed.js create mode 100644 lib/dijit/form/_ExpandingTextAreaMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_FormMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_FormSelectWidget.js.uncompressed.js create mode 100644 lib/dijit/form/_FormValueMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_FormValueWidget.js.uncompressed.js create mode 100644 lib/dijit/form/_FormWidget.js.uncompressed.js create mode 100644 lib/dijit/form/_FormWidgetMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_ListBase.js.uncompressed.js create mode 100644 lib/dijit/form/_ListMouseMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_RadioButtonMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_SearchMixin.js create mode 100644 lib/dijit/form/_SearchMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_Spinner.js.uncompressed.js create mode 100644 lib/dijit/form/_TextBoxMixin.js.uncompressed.js create mode 100644 lib/dijit/form/_ToggleButtonMixin.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ar/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ar/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ar/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/az/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/az/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/az/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ca/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ca/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ca/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/cs/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/cs/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/cs/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/da/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/da/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/da/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/de/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/de/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/de/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/el/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/el/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/el/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/es/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/es/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/es/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/fi/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/fi/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/fi/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/fr/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/fr/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/fr/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/he/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/he/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/he/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/hr/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/hr/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/hr/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/hu/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/hu/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/hu/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/it/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/it/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/it/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ja/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ja/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ja/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/kk/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/kk/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/kk/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ko/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ko/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ko/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/nb/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/nb/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/nb/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/nl/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/nl/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/nl/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pl/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pl/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pl/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pt-pt/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pt-pt/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pt-pt/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pt/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pt/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/pt/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ro/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ro/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ro/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ru/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ru/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/ru/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sk/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sk/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sk/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sl/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sl/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sl/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sv/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sv/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/sv/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/th/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/th/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/th/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/tr/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/tr/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/tr/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/zh-tw/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/zh-tw/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/zh-tw/validate.js.uncompressed.js create mode 100644 lib/dijit/form/nls/zh/ComboBox.js.uncompressed.js create mode 100644 lib/dijit/form/nls/zh/Textarea.js.uncompressed.js create mode 100644 lib/dijit/form/nls/zh/validate.js.uncompressed.js (limited to 'lib/dijit/form') diff --git a/lib/dijit/form/Button.js b/lib/dijit/form/Button.js index a0db441a4..0f2bb158c 100644 --- a/lib/dijit/form/Button.js +++ b/lib/dijit/form/Button.js @@ -1,2 +1,2 @@ //>>built -require({cache:{"url:dijit/form/templates/Button.html":"\n"}});define("dijit/form/Button",["require","dojo/_base/declare","dojo/dom-class","dojo/_base/kernel","dojo/_base/lang","dojo/ready","./_FormWidget","./_ButtonMixin","dojo/text!./templates/Button.html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){if(!_4.isAsync){_6(0,function(){var _a=["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"];_1(_a);});}return _2("dijit.form.Button",[_7,_8],{showLabel:true,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:_9,_setValueAttr:"valueNode",_onClick:function(e){var ok=this.inherited(arguments);if(ok){if(this.valueNode){this.valueNode.click();e.preventDefault();}}return ok;},_fillContent:function(_b){if(_b&&(!this.params||!("label" in this.params))){var _c=_5.trim(_b.innerHTML);if(_c){this.label=_c;}}},_setShowLabelAttr:function(_d){if(this.containerNode){_3.toggle(this.containerNode,"dijitDisplayNone",!_d);}this._set("showLabel",_d);},setLabel:function(_e){_4.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",_e);},_setLabelAttr:function(_f){this.inherited(arguments);if(!this.showLabel&&!("title" in this.params)){this.titleNode.title=_5.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});}); \ No newline at end of file +require({cache:{"url:dijit/form/templates/Button.html":"\n"}});define("dijit/form/Button",["require","dojo/_base/declare","dojo/dom-class","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/ready","./_FormWidget","./_ButtonMixin","dojo/text!./templates/Button.html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){if(_4("dijit-legacy-requires")){_7(0,function(){var _b=["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"];_1(_b);});}return _2("dijit.form.Button",[_8,_9],{showLabel:true,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:_a,_setValueAttr:"valueNode",_onClick:function(e){var ok=this.inherited(arguments);if(ok){if(this.valueNode){this.valueNode.click();e.preventDefault();e.stopPropagation();}}return ok;},_fillContent:function(_c){if(_c&&(!this.params||!("label" in this.params))){var _d=_6.trim(_c.innerHTML);if(_d){this.label=_d;}}},_setShowLabelAttr:function(_e){if(this.containerNode){_3.toggle(this.containerNode,"dijitDisplayNone",!_e);}this._set("showLabel",_e);},setLabel:function(_f){_5.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",_f);},_setLabelAttr:function(_10){this.inherited(arguments);if(!this.showLabel&&!("title" in this.params)){this.titleNode.title=_6.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});}); \ No newline at end of file diff --git a/lib/dijit/form/Button.js.uncompressed.js b/lib/dijit/form/Button.js.uncompressed.js new file mode 100644 index 000000000..40bbbcf39 --- /dev/null +++ b/lib/dijit/form/Button.js.uncompressed.js @@ -0,0 +1,121 @@ +require({cache:{ +'url:dijit/form/templates/Button.html':"\n"}}); +define("dijit/form/Button", [ + "require", + "dojo/_base/declare", // declare + "dojo/dom-class", // domClass.toggle + "dojo/has", // has("dijit-legacy-requires") + "dojo/_base/kernel", // kernel.deprecated + "dojo/_base/lang", // lang.trim + "dojo/ready", + "./_FormWidget", + "./_ButtonMixin", + "dojo/text!./templates/Button.html" +], function(require, declare, domClass, has, kernel, lang, ready, _FormWidget, _ButtonMixin, template){ + +// module: +// dijit/form/Button + +// Back compat w/1.6, remove for 2.0 +if(has("dijit-legacy-requires")){ + ready(0, function(){ + var requires = ["dijit/form/DropDownButton", "dijit/form/ComboButton", "dijit/form/ToggleButton"]; + require(requires); // use indirection so modules not rolled into a build + }); +} + +return declare("dijit.form.Button", [_FormWidget, _ButtonMixin], { + // summary: + // Basically the same thing as a normal HTML button, but with special styling. + // description: + // Buttons can display a label, an icon, or both. + // A label should always be specified (through innerHTML) or the label + // attribute. It can be hidden via showLabel=false. + // example: + // | + // + // example: + // | var button1 = new Button({label: "hello world", onClick: foo}); + // | dojo.body().appendChild(button1.domNode); + + // showLabel: Boolean + // Set this to true to hide the label text and display only the icon. + // (If showLabel=false then iconClass must be specified.) + // Especially useful for toolbars. + // If showLabel=true, the label will become the title (a.k.a. tooltip/hint) of the icon. + // + // The exception case is for computers in high-contrast mode, where the label + // will still be displayed, since the icon doesn't appear. + showLabel: true, + + // iconClass: String + // Class to apply to DOMNode in button to make it display an icon + iconClass: "dijitNoIcon", + _setIconClassAttr: { node: "iconNode", type: "class" }, + + baseClass: "dijitButton", + + templateString: template, + + // Map widget attributes to DOMNode attributes. + _setValueAttr: "valueNode", + + _onClick: function(/*Event*/ e){ + // summary: + // Internal function to handle click actions + var ok = this.inherited(arguments); + if(ok){ + if(this.valueNode){ + this.valueNode.click(); + e.preventDefault(); // cancel BUTTON click and continue with hidden INPUT click + e.stopPropagation(); // avoid two events bubbling from Button widget + // leave ok = true so that subclasses can do what they need to do + } + } + return ok; + }, + + _fillContent: function(/*DomNode*/ source){ + // Overrides _Templated._fillContent(). + // If button label is specified as srcNodeRef.innerHTML rather than + // this.params.label, handle it here. + // TODO: remove the method in 2.0, parser will do it all for me + if(source && (!this.params || !("label" in this.params))){ + var sourceLabel = lang.trim(source.innerHTML); + if(sourceLabel){ + this.label = sourceLabel; // _applyAttributes will be called after buildRendering completes to update the DOM + } + } + }, + + _setShowLabelAttr: function(val){ + if(this.containerNode){ + domClass.toggle(this.containerNode, "dijitDisplayNone", !val); + } + this._set("showLabel", val); + }, + + setLabel: function(/*String*/ content){ + // summary: + // Deprecated. Use set('label', ...) instead. + kernel.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.", "", "2.0"); + this.set("label", content); + }, + + _setLabelAttr: function(/*String*/ content){ + // summary: + // Hook for set('label', ...) to work. + // description: + // Set the label (text) of the button; takes an HTML string. + // If the label is hidden (showLabel=false) then and no title has + // been specified, then label is also set as title attribute of icon. + this.inherited(arguments); + if(!this.showLabel && !("title" in this.params)){ + this.titleNode.title = lang.trim(this.containerNode.innerText || this.containerNode.textContent || ''); + } + } +}); + + +}); + diff --git a/lib/dijit/form/CheckBox.js b/lib/dijit/form/CheckBox.js index 1d0bcceaf..7f3924e54 100644 --- a/lib/dijit/form/CheckBox.js +++ b/lib/dijit/form/CheckBox.js @@ -1,2 +1,2 @@ //>>built -require({cache:{"url:dijit/form/templates/CheckBox.html":"
\n"}});define("dijit/form/CheckBox",["require","dojo/_base/declare","dojo/dom-attr","dojo/_base/kernel","dojo/query","dojo/ready","./ToggleButton","./_CheckBoxMixin","dojo/text!./templates/CheckBox.html","dojo/NodeList-dom"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){if(!_4.isAsync){_6(0,function(){var _a=["dijit/form/RadioButton"];_1(_a);});}return _2("dijit.form.CheckBox",[_7,_8],{templateString:_9,baseClass:"dijitCheckBox",_setValueAttr:function(_b,_c){if(typeof _b=="string"){this._set("value",_b);_3.set(this.focusNode,"value",_b);_b=true;}if(this._created){this.set("checked",_b,_c);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setIconClassAttr:null,postMixInProperties:function(){this.inherited(arguments);this.checkedAttrSetting=this.checked?"checked":"";},_fillContent:function(){},_onFocus:function(){if(this.id){_5("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){_5("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);}});}); \ No newline at end of file +require({cache:{"url:dijit/form/templates/CheckBox.html":"
\n"}});define("dijit/form/CheckBox",["require","dojo/_base/declare","dojo/dom-attr","dojo/has","dojo/query","dojo/ready","./ToggleButton","./_CheckBoxMixin","dojo/text!./templates/CheckBox.html","dojo/NodeList-dom"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){if(_4("dijit-legacy-requires")){_6(0,function(){var _a=["dijit/form/RadioButton"];_1(_a);});}return _2("dijit.form.CheckBox",[_7,_8],{templateString:_9,baseClass:"dijitCheckBox",_setValueAttr:function(_b,_c){if(typeof _b=="string"){this.inherited(arguments);_b=true;}if(this._created){this.set("checked",_b,_c);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setIconClassAttr:null,postMixInProperties:function(){this.inherited(arguments);this.checkedAttrSetting=this.checked?"checked":"";},_fillContent:function(){},_onFocus:function(){if(this.id){_5("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){_5("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);}});}); \ No newline at end of file diff --git a/lib/dijit/form/CheckBox.js.uncompressed.js b/lib/dijit/form/CheckBox.js.uncompressed.js new file mode 100644 index 000000000..4e65ca30a --- /dev/null +++ b/lib/dijit/form/CheckBox.js.uncompressed.js @@ -0,0 +1,116 @@ +require({cache:{ +'url:dijit/form/templates/CheckBox.html':"
\n"}}); +define("dijit/form/CheckBox", [ + "require", + "dojo/_base/declare", // declare + "dojo/dom-attr", // domAttr.set + "dojo/has", // has("dijit-legacy-requires") + "dojo/query", // query + "dojo/ready", + "./ToggleButton", + "./_CheckBoxMixin", + "dojo/text!./templates/CheckBox.html", + "dojo/NodeList-dom" // NodeList.addClass/removeClass +], function(require, declare, domAttr, has, query, ready, ToggleButton, _CheckBoxMixin, template){ + + // module: + // dijit/form/CheckBox + + // Back compat w/1.6, remove for 2.0 + if(has("dijit-legacy-requires")){ + ready(0, function(){ + var requires = ["dijit/form/RadioButton"]; + require(requires); // use indirection so modules not rolled into a build + }); + } + + return declare("dijit.form.CheckBox", [ToggleButton, _CheckBoxMixin], { + // summary: + // Same as an HTML checkbox, but with fancy styling. + // + // description: + // User interacts with real html inputs. + // On onclick (which occurs by mouse click, space-bar, or + // using the arrow keys to switch the selected radio button), + // we update the state of the checkbox/radio. + // + // There are two modes: + // + // 1. High contrast mode + // 2. Normal mode + // + // In case 1, the regular html inputs are shown and used by the user. + // In case 2, the regular html inputs are invisible but still used by + // the user. They are turned quasi-invisible and overlay the background-image. + + templateString: template, + + baseClass: "dijitCheckBox", + + _setValueAttr: function(/*String|Boolean*/ newValue, /*Boolean*/ priorityChange){ + // summary: + // Handler for value= attribute to constructor, and also calls to + // set('value', val). + // description: + // During initialization, just saves as attribute to the ``. + // + // After initialization, + // when passed a boolean, controls whether or not the CheckBox is checked. + // If passed a string, changes the value attribute of the CheckBox (the one + // specified as "value" when the CheckBox was constructed + // (ex: ``). + // + // `widget.set('value', string)` will check the checkbox and change the value to the + // specified string. + // + // `widget.set('value', boolean)` will change the checked state. + + if(typeof newValue == "string"){ + this.inherited(arguments); + newValue = true; + } + if(this._created){ + this.set('checked', newValue, priorityChange); + } + }, + _getValueAttr: function(){ + // summary: + // Hook so get('value') works. + // description: + // If the CheckBox is checked, returns the value attribute. + // Otherwise returns false. + return (this.checked ? this.value : false); + }, + + // Override behavior from Button, since we don't have an iconNode + _setIconClassAttr: null, + + postMixInProperties: function(){ + this.inherited(arguments); + + // Need to set initial checked state as part of template, so that form submit works. + // domAttr.set(node, "checked", bool) doesn't work on IE until node has been attached + // to , see #8666 + this.checkedAttrSetting = this.checked ? "checked" : ""; + }, + + _fillContent: function(){ + // Override Button::_fillContent() since it doesn't make sense for CheckBox, + // since CheckBox doesn't even have a container + }, + + _onFocus: function(){ + if(this.id){ + query("label[for='"+this.id+"']").addClass("dijitFocusedLabel"); + } + this.inherited(arguments); + }, + + _onBlur: function(){ + if(this.id){ + query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel"); + } + this.inherited(arguments); + } + }); +}); diff --git a/lib/dijit/form/ComboBox.js.uncompressed.js b/lib/dijit/form/ComboBox.js.uncompressed.js new file mode 100644 index 000000000..b883af242 --- /dev/null +++ b/lib/dijit/form/ComboBox.js.uncompressed.js @@ -0,0 +1,27 @@ +define("dijit/form/ComboBox", [ + "dojo/_base/declare", // declare + "./ValidationTextBox", + "./ComboBoxMixin" +], function(declare, ValidationTextBox, ComboBoxMixin){ + + // module: + // dijit/form/ComboBox + + return declare("dijit.form.ComboBox", [ValidationTextBox, ComboBoxMixin], { + // summary: + // Auto-completing text box + // + // description: + // The drop down box's values are populated from an class called + // a data provider, which returns a list of values based on the characters + // that the user has typed into the input box. + // If OPTION tags are used as the data provider via markup, + // then the OPTION tag's child text node is used as the widget value + // when selected. The OPTION tag's value attribute is ignored. + // To set the default value when using OPTION tags, specify the selected + // attribute on 1 of the child OPTION tags. + // + // Some of the options to the ComboBox are actually arguments to the data + // provider. + }); +}); diff --git a/lib/dijit/form/ComboBoxMixin.js b/lib/dijit/form/ComboBoxMixin.js index 99f0efa04..f3c3df80b 100644 --- a/lib/dijit/form/ComboBoxMixin.js +++ b/lib/dijit/form/ComboBoxMixin.js @@ -1,2 +1,2 @@ //>>built -require({cache:{"url:dijit/form/templates/DropDownBox.html":"
\n"}});define("dijit/form/ComboBoxMixin",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/kernel","dojo/_base/lang","dojo/store/util/QueryResults","./_AutoCompleterMixin","./_ComboBoxMenu","../_HasDropDown","dojo/text!./templates/DropDownBox.html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){return _1("dijit.form.ComboBoxMixin",[_8,_6],{dropDownClass:_7,hasDownArrow:true,templateString:_9,baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},_setHasDownArrowAttr:function(_a){this._set("hasDownArrow",_a);this._buttonNode.style.display=_a?"":"none";},_showResultList:function(){this.displayMessage("");this.inherited(arguments);},_setStoreAttr:function(_b){if(!_b.get){_4.mixin(_b,{_oldAPI:true,get:function(id){var _c=new _2();this.fetchItemByIdentity({identity:id,onItem:function(_d){_c.resolve(_d);},onError:function(_e){_c.reject(_e);}});return _c.promise;},query:function(_f,_10){var _11=new _2(function(){_12.abort&&_12.abort();});var _12=this.fetch(_4.mixin({query:_f,onBegin:function(_13){_11.total=_13;},onComplete:function(_14){_11.resolve(_14);},onError:function(_15){_11.reject(_15);}},_10));return _5(_11);}});}this._set("store",_b);},postMixInProperties:function(){if(this.params.store){this._setStoreAttr(this.params.store);}this.inherited(arguments);if(!this.params.store){var _16=this.declaredClass;_4.mixin(this.store,{getValue:function(_17,_18){_3.deprecated(_16+".store.getValue(item, attr) is deprecated for builtin store. Use item.attr directly","","2.0");return _17[_18];},getLabel:function(_19){_3.deprecated(_16+".store.getLabel(item) is deprecated for builtin store. Use item.label directly","","2.0");return _19.name;},fetch:function(_1a){_3.deprecated(_16+".store.fetch() is deprecated for builtin store.","Use store.query()","2.0");var _1b=["dojo/data/ObjectStore"];require(_1b,_4.hitch(this,function(_1c){new _1c({objectStore:this}).fetch(_1a);}));}});}}});}); \ No newline at end of file +require({cache:{"url:dijit/form/templates/DropDownBox.html":"
\n"}});define("dijit/form/ComboBoxMixin",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/kernel","dojo/_base/lang","dojo/store/util/QueryResults","./_AutoCompleterMixin","./_ComboBoxMenu","../_HasDropDown","dojo/text!./templates/DropDownBox.html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){return _1("dijit.form.ComboBoxMixin",[_8,_6],{dropDownClass:_7,hasDownArrow:true,templateString:_9,baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},_setHasDownArrowAttr:function(_a){this._set("hasDownArrow",_a);this._buttonNode.style.display=_a?"":"none";},_showResultList:function(){this.displayMessage("");this.inherited(arguments);},_setStoreAttr:function(_b){if(!_b.get){_4.mixin(_b,{_oldAPI:true,get:function(id){var _c=new _2();this.fetchItemByIdentity({identity:id,onItem:function(_d){_c.resolve(_d);},onError:function(_e){_c.reject(_e);}});return _c.promise;},query:function(_f,_10){var _11=new _2(function(){_12.abort&&_12.abort();});_11.total=new _2();var _12=this.fetch(_4.mixin({query:_f,onBegin:function(_13){_11.total.resolve(_13);},onComplete:function(_14){_11.resolve(_14);},onError:function(_15){_11.reject(_15);}},_10));return _5(_11);}});}this._set("store",_b);},postMixInProperties:function(){var _16=this.params.store||this.store;if(_16){this._setStoreAttr(_16);}this.inherited(arguments);if(!this.params.store&&!this.store._oldAPI){var _17=this.declaredClass;_4.mixin(this.store,{getValue:function(_18,_19){_3.deprecated(_17+".store.getValue(item, attr) is deprecated for builtin store. Use item.attr directly","","2.0");return _18[_19];},getLabel:function(_1a){_3.deprecated(_17+".store.getLabel(item) is deprecated for builtin store. Use item.label directly","","2.0");return _1a.name;},fetch:function(_1b){_3.deprecated(_17+".store.fetch() is deprecated for builtin store.","Use store.query()","2.0");var _1c=["dojo/data/ObjectStore"];require(_1c,_4.hitch(this,function(_1d){new _1d({objectStore:this}).fetch(_1b);}));}});}}});}); \ No newline at end of file diff --git a/lib/dijit/form/ComboBoxMixin.js.uncompressed.js b/lib/dijit/form/ComboBoxMixin.js.uncompressed.js new file mode 100644 index 000000000..bafccb44b --- /dev/null +++ b/lib/dijit/form/ComboBoxMixin.js.uncompressed.js @@ -0,0 +1,143 @@ +require({cache:{ +'url:dijit/form/templates/DropDownBox.html':"
\n"}}); +define("dijit/form/ComboBoxMixin", [ + "dojo/_base/declare", // declare + "dojo/_base/Deferred", + "dojo/_base/kernel", // kernel.deprecated + "dojo/_base/lang", // lang.mixin + "dojo/store/util/QueryResults", + "./_AutoCompleterMixin", + "./_ComboBoxMenu", + "../_HasDropDown", + "dojo/text!./templates/DropDownBox.html" +], function(declare, Deferred, kernel, lang, QueryResults, _AutoCompleterMixin, _ComboBoxMenu, _HasDropDown, template){ + + + // module: + // dijit/form/ComboBoxMixin + + return declare("dijit.form.ComboBoxMixin", [_HasDropDown, _AutoCompleterMixin], { + // summary: + // Provides main functionality of ComboBox widget + + // dropDownClass: [protected extension] Function String + // Dropdown widget class used to select a date/time. + // Subclasses should specify this. + dropDownClass: _ComboBoxMenu, + + // hasDownArrow: Boolean + // Set this textbox to have a down arrow button, to display the drop down list. + // Defaults to true. + hasDownArrow: true, + + templateString: template, + + baseClass: "dijitTextBox dijitComboBox", + + /*===== + // store: [const] dojo/store/api/Store|dojo/data/api/Read + // Reference to data provider object used by this ComboBox. + // + // Should be dojo/store/api/Store, but dojo/data/api/Read supported + // for backwards compatibility. + store: null, + =====*/ + + // Set classes like dijitDownArrowButtonHover depending on + // mouse action over button node + cssStateNodes: { + "_buttonNode": "dijitDownArrowButton" + }, + + _setHasDownArrowAttr: function(/*Boolean*/ val){ + this._set("hasDownArrow", val); + this._buttonNode.style.display = val ? "" : "none"; + }, + + _showResultList: function(){ + // hide the tooltip + this.displayMessage(""); + this.inherited(arguments); + }, + + _setStoreAttr: function(store){ + // For backwards-compatibility, accept dojo.data store in addition to dojo/store/api/Store. Remove in 2.0. + if(!store.get){ + lang.mixin(store, { + _oldAPI: true, + get: function(id){ + // summary: + // Retrieves an object by it's identity. This will trigger a fetchItemByIdentity. + // Like dojo/store/DataStore.get() except returns native item. + var deferred = new Deferred(); + this.fetchItemByIdentity({ + identity: id, + onItem: function(object){ + deferred.resolve(object); + }, + onError: function(error){ + deferred.reject(error); + } + }); + return deferred.promise; + }, + query: function(query, options){ + // summary: + // Queries the store for objects. Like dojo/store/DataStore.query() + // except returned Deferred contains array of native items. + var deferred = new Deferred(function(){ fetchHandle.abort && fetchHandle.abort(); }); + deferred.total = new Deferred(); + var fetchHandle = this.fetch(lang.mixin({ + query: query, + onBegin: function(count){ + deferred.total.resolve(count); + }, + onComplete: function(results){ + deferred.resolve(results); + }, + onError: function(error){ + deferred.reject(error); + } + }, options)); + return QueryResults(deferred); + } + }); + } + this._set("store", store); + }, + + postMixInProperties: function(){ + // Since _setValueAttr() depends on this.store, _setStoreAttr() needs to execute first. + // Unfortunately, without special code, it ends up executing second. + var store = this.params.store || this.store; + if(store){ + this._setStoreAttr(store); + } + + this.inherited(arguments); + + // User may try to access this.store.getValue() etc. in a custom labelFunc() function. + // It's not available with the new data store for handling inline