Browse Source

update dojo to 1.14.2

remotes/origin/json-viewfeed
Andrew Dolgov 4 years ago
parent
commit
f097f33836
  1. 2
      lib/dijit/Dialog.js
  2. 2
      lib/dijit/Editor.js
  3. 2
      lib/dijit/Tree.js
  4. 2
      lib/dijit/_HasDropDown.js
  5. 2
      lib/dijit/_WidgetBase.js
  6. 2
      lib/dijit/_editor/RichText.js
  7. 2
      lib/dijit/_editor/_Plugin.js
  8. 2
      lib/dijit/_editor/plugins/FontChoice.js
  9. 2
      lib/dijit/_editor/plugins/LinkDialog.js
  10. 2
      lib/dijit/_editor/plugins/ViewSource.js
  11. 2
      lib/dijit/bower.json
  12. 2
      lib/dijit/form/NumberTextBox.js
  13. 2
      lib/dijit/form/TimeTextBox.js
  14. 2
      lib/dijit/form/_FormValueMixin.js
  15. 2
      lib/dijit/form/_FormWidgetMixin.js
  16. 2
      lib/dijit/layout/ContentPane.js
  17. 4
      lib/dijit/package.json
  18. 2
      lib/dijit/tree/ObjectStoreModel.js
  19. 4
      lib/dojo-src/rebuild-dojo.sh
  20. 2
      lib/dojo/LICENSE
  21. 91
      lib/dojo/README.md
  22. 2
      lib/dojo/_base/Color.js
  23. 2
      lib/dojo/_base/config.js
  24. 2
      lib/dojo/_base/declare.js
  25. 2
      lib/dojo/_base/kernel.js
  26. 2
      lib/dojo/_base/loader.js
  27. 2
      lib/dojo/_base/xhr.js
  28. 2
      lib/dojo/cldr/nls/ar/buddhist.js
  29. 2
      lib/dojo/cldr/nls/ar/coptic.js
  30. 2
      lib/dojo/cldr/nls/ar/ethiopic.js
  31. 2
      lib/dojo/cldr/nls/ar/generic.js
  32. 2
      lib/dojo/cldr/nls/ar/gregorian.js
  33. 2
      lib/dojo/cldr/nls/ar/hebrew.js
  34. 2
      lib/dojo/cldr/nls/ar/islamic.js
  35. 2
      lib/dojo/cldr/nls/ar/japanese.js
  36. 2
      lib/dojo/cldr/nls/ar/persian.js
  37. 2
      lib/dojo/cldr/nls/ar/roc.js
  38. 2
      lib/dojo/cldr/nls/bs/currency.js
  39. 2
      lib/dojo/cldr/nls/bs/generic.js
  40. 2
      lib/dojo/cldr/nls/bs/gregorian.js
  41. 2
      lib/dojo/cldr/nls/bs/islamic.js
  42. 2
      lib/dojo/cldr/nls/ca/buddhist.js
  43. 2
      lib/dojo/cldr/nls/ca/chinese.js
  44. 2
      lib/dojo/cldr/nls/ca/currency.js
  45. 2
      lib/dojo/cldr/nls/ca/generic.js
  46. 2
      lib/dojo/cldr/nls/ca/gregorian.js
  47. 2
      lib/dojo/cldr/nls/ca/roc.js
  48. 2
      lib/dojo/cldr/nls/cs/buddhist.js
  49. 2
      lib/dojo/cldr/nls/cs/chinese.js
  50. 2
      lib/dojo/cldr/nls/cs/generic.js
  51. 2
      lib/dojo/cldr/nls/cs/gregorian.js
  52. 2
      lib/dojo/cldr/nls/cs/hebrew.js
  53. 2
      lib/dojo/cldr/nls/cs/islamic.js
  54. 2
      lib/dojo/cldr/nls/cs/japanese.js
  55. 2
      lib/dojo/cldr/nls/cs/roc.js
  56. 2
      lib/dojo/cldr/nls/da/buddhist.js
  57. 2
      lib/dojo/cldr/nls/da/gregorian.js
  58. 2
      lib/dojo/cldr/nls/da/hebrew.js
  59. 2
      lib/dojo/cldr/nls/da/islamic.js
  60. 2
      lib/dojo/cldr/nls/de/buddhist.js
  61. 2
      lib/dojo/cldr/nls/de/chinese.js
  62. 2
      lib/dojo/cldr/nls/de/currency.js
  63. 2
      lib/dojo/cldr/nls/de/generic.js
  64. 2
      lib/dojo/cldr/nls/de/gregorian.js
  65. 2
      lib/dojo/cldr/nls/de/hebrew.js
  66. 2
      lib/dojo/cldr/nls/de/islamic.js
  67. 2
      lib/dojo/cldr/nls/de/japanese.js
  68. 2
      lib/dojo/cldr/nls/de/number.js
  69. 2
      lib/dojo/cldr/nls/de/roc.js
  70. 2
      lib/dojo/cldr/nls/el/buddhist.js
  71. 2
      lib/dojo/cldr/nls/el/currency.js
  72. 2
      lib/dojo/cldr/nls/el/generic.js
  73. 2
      lib/dojo/cldr/nls/el/gregorian.js
  74. 2
      lib/dojo/cldr/nls/el/hebrew.js
  75. 2
      lib/dojo/cldr/nls/el/japanese.js
  76. 2
      lib/dojo/cldr/nls/el/number.js
  77. 2
      lib/dojo/cldr/nls/el/roc.js
  78. 2
      lib/dojo/cldr/nls/en-au/islamic.js
  79. 2
      lib/dojo/cldr/nls/en-gb/gregorian.js
  80. 2
      lib/dojo/cldr/nls/en/buddhist.js
  81. 2
      lib/dojo/cldr/nls/en/chinese.js
  82. 2
      lib/dojo/cldr/nls/en/currency.js
  83. 2
      lib/dojo/cldr/nls/en/generic.js
  84. 2
      lib/dojo/cldr/nls/en/gregorian.js
  85. 2
      lib/dojo/cldr/nls/en/hebrew.js
  86. 2
      lib/dojo/cldr/nls/en/islamic.js
  87. 2
      lib/dojo/cldr/nls/en/japanese.js
  88. 2
      lib/dojo/cldr/nls/en/roc.js
  89. 2
      lib/dojo/cldr/nls/es/buddhist.js
  90. 2
      lib/dojo/cldr/nls/es/chinese.js
  91. 2
      lib/dojo/cldr/nls/es/currency.js
  92. 2
      lib/dojo/cldr/nls/es/generic.js
  93. 2
      lib/dojo/cldr/nls/es/gregorian.js
  94. 2
      lib/dojo/cldr/nls/es/hebrew.js
  95. 2
      lib/dojo/cldr/nls/es/islamic.js
  96. 2
      lib/dojo/cldr/nls/es/japanese.js
  97. 2
      lib/dojo/cldr/nls/es/number.js
  98. 2
      lib/dojo/cldr/nls/es/roc.js
  99. 2
      lib/dojo/cldr/nls/fi/buddhist.js
  100. 2
      lib/dojo/cldr/nls/fi/chinese.js
  101. 2
      lib/dojo/cldr/nls/fi/generic.js
  102. 2
      lib/dojo/cldr/nls/fi/gregorian.js
  103. 2
      lib/dojo/cldr/nls/fi/hebrew.js
  104. 2
      lib/dojo/cldr/nls/fi/islamic.js
  105. 2
      lib/dojo/cldr/nls/fi/japanese.js
  106. 2
      lib/dojo/cldr/nls/fi/roc.js
  107. 2
      lib/dojo/cldr/nls/fr/buddhist.js
  108. 2
      lib/dojo/cldr/nls/fr/currency.js
  109. 2
      lib/dojo/cldr/nls/fr/gregorian.js
  110. 2
      lib/dojo/cldr/nls/fr/hebrew.js
  111. 2
      lib/dojo/cldr/nls/fr/islamic.js
  112. 2
      lib/dojo/cldr/nls/fr/persian.js
  113. 2
      lib/dojo/cldr/nls/he/currency.js
  114. 2
      lib/dojo/cldr/nls/he/generic.js
  115. 2
      lib/dojo/cldr/nls/he/gregorian.js
  116. 2
      lib/dojo/cldr/nls/he/hebrew.js
  117. 2
      lib/dojo/cldr/nls/he/islamic.js
  118. 2
      lib/dojo/cldr/nls/he/japanese.js
  119. 2
      lib/dojo/cldr/nls/he/number.js
  120. 2
      lib/dojo/cldr/nls/hr/buddhist.js
  121. 2
      lib/dojo/cldr/nls/hr/chinese.js
  122. 2
      lib/dojo/cldr/nls/hr/currency.js
  123. 2
      lib/dojo/cldr/nls/hr/generic.js
  124. 2
      lib/dojo/cldr/nls/hr/gregorian.js
  125. 2
      lib/dojo/cldr/nls/hr/hebrew.js
  126. 2
      lib/dojo/cldr/nls/hr/islamic.js
  127. 2
      lib/dojo/cldr/nls/hr/japanese.js
  128. 2
      lib/dojo/cldr/nls/hr/roc.js
  129. 2
      lib/dojo/cldr/nls/hu/currency.js
  130. 2
      lib/dojo/cldr/nls/id/buddhist.js
  131. 2
      lib/dojo/cldr/nls/id/chinese.js
  132. 2
      lib/dojo/cldr/nls/id/coptic.js
  133. 2
      lib/dojo/cldr/nls/id/currency.js
  134. 2
      lib/dojo/cldr/nls/id/ethiopic.js
  135. 2
      lib/dojo/cldr/nls/id/generic.js
  136. 2
      lib/dojo/cldr/nls/id/gregorian.js
  137. 2
      lib/dojo/cldr/nls/id/hebrew.js
  138. 2
      lib/dojo/cldr/nls/id/indian.js
  139. 2
      lib/dojo/cldr/nls/id/islamic.js
  140. 2
      lib/dojo/cldr/nls/id/japanese.js
  141. 2
      lib/dojo/cldr/nls/id/number.js
  142. 2
      lib/dojo/cldr/nls/id/persian.js
  143. 2
      lib/dojo/cldr/nls/id/roc.js
  144. 2
      lib/dojo/cldr/nls/it/buddhist.js
  145. 2
      lib/dojo/cldr/nls/it/chinese.js
  146. 2
      lib/dojo/cldr/nls/it/currency.js
  147. 2
      lib/dojo/cldr/nls/it/generic.js
  148. 2
      lib/dojo/cldr/nls/it/gregorian.js
  149. 2
      lib/dojo/cldr/nls/it/hebrew.js
  150. 2
      lib/dojo/cldr/nls/it/islamic.js
  151. 2
      lib/dojo/cldr/nls/it/japanese.js
  152. 2
      lib/dojo/cldr/nls/it/number.js
  153. 2
      lib/dojo/cldr/nls/it/roc.js
  154. 2
      lib/dojo/cldr/nls/ja/gregorian.js
  155. 2
      lib/dojo/cldr/nls/ko/buddhist.js
  156. 2
      lib/dojo/cldr/nls/ko/chinese.js
  157. 2
      lib/dojo/cldr/nls/ko/coptic.js
  158. 2
      lib/dojo/cldr/nls/ko/currency.js
  159. 2
      lib/dojo/cldr/nls/ko/dangi.js
  160. 2
      lib/dojo/cldr/nls/ko/ethiopic.js
  161. 2
      lib/dojo/cldr/nls/ko/generic.js
  162. 2
      lib/dojo/cldr/nls/ko/gregorian.js
  163. 2
      lib/dojo/cldr/nls/ko/hebrew.js
  164. 2
      lib/dojo/cldr/nls/ko/islamic.js
  165. 2
      lib/dojo/cldr/nls/ko/japanese.js
  166. 2
      lib/dojo/cldr/nls/ko/roc.js
  167. 2
      lib/dojo/cldr/nls/mk/generic.js
  168. 2
      lib/dojo/cldr/nls/mk/gregorian.js
  169. 2
      lib/dojo/cldr/nls/nb/buddhist.js
  170. 2
      lib/dojo/cldr/nls/nb/currency.js
  171. 2
      lib/dojo/cldr/nls/nb/generic.js
  172. 2
      lib/dojo/cldr/nls/nb/gregorian.js
  173. 2
      lib/dojo/cldr/nls/nb/hebrew.js
  174. 2
      lib/dojo/cldr/nls/nb/islamic.js
  175. 2
      lib/dojo/cldr/nls/nb/japanese.js
  176. 2
      lib/dojo/cldr/nls/nb/roc.js
  177. 2
      lib/dojo/cldr/nls/nl/buddhist.js
  178. 2
      lib/dojo/cldr/nls/nl/chinese.js
  179. 2
      lib/dojo/cldr/nls/nl/coptic.js
  180. 2
      lib/dojo/cldr/nls/nl/currency.js
  181. 2
      lib/dojo/cldr/nls/nl/dangi.js
  182. 2
      lib/dojo/cldr/nls/nl/ethiopic.js
  183. 2
      lib/dojo/cldr/nls/nl/generic.js
  184. 2
      lib/dojo/cldr/nls/nl/gregorian.js
  185. 2
      lib/dojo/cldr/nls/nl/hebrew.js
  186. 2
      lib/dojo/cldr/nls/nl/indian.js
  187. 2
      lib/dojo/cldr/nls/nl/islamic.js
  188. 2
      lib/dojo/cldr/nls/nl/japanese.js
  189. 2
      lib/dojo/cldr/nls/nl/persian.js
  190. 2
      lib/dojo/cldr/nls/nl/roc.js
  191. 2
      lib/dojo/cldr/nls/pl/buddhist.js
  192. 2
      lib/dojo/cldr/nls/pl/chinese.js
  193. 2
      lib/dojo/cldr/nls/pl/coptic.js
  194. 2
      lib/dojo/cldr/nls/pl/ethiopic.js
  195. 2
      lib/dojo/cldr/nls/pl/generic.js
  196. 2
      lib/dojo/cldr/nls/pl/gregorian.js
  197. 2
      lib/dojo/cldr/nls/pl/hebrew.js
  198. 2
      lib/dojo/cldr/nls/pl/indian.js
  199. 2
      lib/dojo/cldr/nls/pl/islamic.js
  200. 2
      lib/dojo/cldr/nls/pl/japanese.js
  201. 2
      lib/dojo/cldr/nls/pl/persian.js
  202. 2
      lib/dojo/cldr/nls/pl/roc.js
  203. 2
      lib/dojo/cldr/nls/pt-pt/buddhist.js
  204. 2
      lib/dojo/cldr/nls/pt-pt/gregorian.js
  205. 2
      lib/dojo/cldr/nls/pt-pt/hebrew.js
  206. 2
      lib/dojo/cldr/nls/pt-pt/islamic.js
  207. 2
      lib/dojo/cldr/nls/pt/buddhist.js
  208. 2
      lib/dojo/cldr/nls/pt/chinese.js
  209. 2
      lib/dojo/cldr/nls/pt/coptic.js
  210. 2
      lib/dojo/cldr/nls/pt/currency.js
  211. 2
      lib/dojo/cldr/nls/pt/ethiopic.js
  212. 2
      lib/dojo/cldr/nls/pt/generic.js
  213. 2
      lib/dojo/cldr/nls/pt/gregorian.js
  214. 2
      lib/dojo/cldr/nls/pt/hebrew.js
  215. 2
      lib/dojo/cldr/nls/pt/indian.js
  216. 2
      lib/dojo/cldr/nls/pt/islamic.js
  217. 2
      lib/dojo/cldr/nls/pt/japanese.js
  218. 2
      lib/dojo/cldr/nls/pt/persian.js
  219. 2
      lib/dojo/cldr/nls/pt/roc.js
  220. 2
      lib/dojo/cldr/nls/ro/buddhist.js
  221. 2
      lib/dojo/cldr/nls/ro/chinese.js
  222. 2
      lib/dojo/cldr/nls/ro/coptic.js
  223. 2
      lib/dojo/cldr/nls/ro/currency.js
  224. 2
      lib/dojo/cldr/nls/ro/ethiopic.js
  225. 2
      lib/dojo/cldr/nls/ro/generic.js
  226. 2
      lib/dojo/cldr/nls/ro/gregorian.js
  227. 2
      lib/dojo/cldr/nls/ro/hebrew.js
  228. 2
      lib/dojo/cldr/nls/ro/islamic.js
  229. 2
      lib/dojo/cldr/nls/ru/buddhist.js
  230. 2
      lib/dojo/cldr/nls/ru/currency.js
  231. 2
      lib/dojo/cldr/nls/ru/generic.js
  232. 2
      lib/dojo/cldr/nls/ru/gregorian.js
  233. 2
      lib/dojo/cldr/nls/ru/hebrew.js
  234. 2
      lib/dojo/cldr/nls/ru/islamic.js
  235. 2
      lib/dojo/cldr/nls/ru/persian.js
  236. 2
      lib/dojo/cldr/nls/sk/currency.js
  237. 2
      lib/dojo/cldr/nls/sk/generic.js
  238. 2
      lib/dojo/cldr/nls/sk/gregorian.js
  239. 2
      lib/dojo/cldr/nls/sk/number.js
  240. 2
      lib/dojo/cldr/nls/sl/generic.js
  241. 2
      lib/dojo/cldr/nls/sl/gregorian.js
  242. 2
      lib/dojo/cldr/nls/sr/buddhist.js
  243. 2
      lib/dojo/cldr/nls/sr/coptic.js
  244. 2
      lib/dojo/cldr/nls/sr/currency.js
  245. 2
      lib/dojo/cldr/nls/sr/ethiopic.js
  246. 2
      lib/dojo/cldr/nls/sr/generic.js
  247. 2
      lib/dojo/cldr/nls/sr/gregorian.js
  248. 2
      lib/dojo/cldr/nls/sr/hebrew.js
  249. 2
      lib/dojo/cldr/nls/sr/indian.js
  250. 2
      lib/dojo/cldr/nls/sr/islamic.js
  251. 2
      lib/dojo/cldr/nls/sr/japanese.js
  252. 2
      lib/dojo/cldr/nls/sr/number.js
  253. 2
      lib/dojo/cldr/nls/sr/persian.js
  254. 2
      lib/dojo/cldr/nls/sr/roc.js
  255. 2
      lib/dojo/cldr/nls/sv/buddhist.js
  256. 2
      lib/dojo/cldr/nls/sv/coptic.js
  257. 2
      lib/dojo/cldr/nls/sv/currency.js
  258. 2
      lib/dojo/cldr/nls/sv/dangi.js
  259. 2
      lib/dojo/cldr/nls/sv/ethiopic.js
  260. 2
      lib/dojo/cldr/nls/sv/generic.js
  261. 2
      lib/dojo/cldr/nls/sv/gregorian.js
  262. 2
      lib/dojo/cldr/nls/sv/hebrew.js
  263. 2
      lib/dojo/cldr/nls/sv/indian.js
  264. 2
      lib/dojo/cldr/nls/sv/islamic.js
  265. 2
      lib/dojo/cldr/nls/sv/japanese.js
  266. 2
      lib/dojo/cldr/nls/sv/persian.js
  267. 2
      lib/dojo/cldr/nls/sv/roc.js
  268. 2
      lib/dojo/cldr/nls/th/gregorian.js
  269. 2
      lib/dojo/cldr/nls/th/islamic.js
  270. 2
      lib/dojo/cldr/nls/th/roc.js
  271. 2
      lib/dojo/cldr/nls/tr/generic.js
  272. 2
      lib/dojo/cldr/nls/zh-hant/buddhist.js
  273. 2
      lib/dojo/cldr/nls/zh-hant/chinese.js
  274. 2
      lib/dojo/cldr/nls/zh-hant/generic.js
  275. 2
      lib/dojo/cldr/nls/zh-hant/gregorian.js
  276. 2
      lib/dojo/cldr/nls/zh-hant/hebrew.js
  277. 2
      lib/dojo/cldr/nls/zh-hant/islamic.js
  278. 2
      lib/dojo/cldr/nls/zh-hant/persian.js
  279. 2
      lib/dojo/cldr/nls/zh-hk/gregorian.js
  280. 2
      lib/dojo/cldr/nls/zh-tw/gregorian.js
  281. 2
      lib/dojo/cldr/nls/zh/buddhist.js
  282. 2
      lib/dojo/cldr/nls/zh/chinese.js
  283. 2
      lib/dojo/cldr/nls/zh/coptic.js
  284. 2
      lib/dojo/cldr/nls/zh/ethiopic.js
  285. 2
      lib/dojo/cldr/nls/zh/generic.js
  286. 2
      lib/dojo/cldr/nls/zh/gregorian.js
  287. 2
      lib/dojo/cldr/nls/zh/hebrew.js
  288. 2
      lib/dojo/cldr/nls/zh/indian.js
  289. 2
      lib/dojo/cldr/nls/zh/islamic.js
  290. 2
      lib/dojo/cldr/nls/zh/japanese.js
  291. 2
      lib/dojo/cldr/nls/zh/persian.js
  292. 2
      lib/dojo/cldr/nls/zh/roc.js
  293. 2
      lib/dojo/data/ObjectStore.js
  294. 2
      lib/dojo/dnd/Container.js
  295. 2
      lib/dojo/dnd/Moveable.js
  296. 2
      lib/dojo/dojo.js
  297. 2
      lib/dojo/dom-style.js
  298. 2
      lib/dojo/domReady.js
  299. 8
      lib/dojo/global.js
  300. 2
      lib/dojo/has.js
  301. 2
      lib/dojo/html.js
  302. 2
      lib/dojo/nls/tt-rss-layer_ROOT.js
  303. 2
      lib/dojo/nls/tt-rss-layer_ar.js
  304. 2
      lib/dojo/nls/tt-rss-layer_ca.js
  305. 2
      lib/dojo/nls/tt-rss-layer_cs.js
  306. 2
      lib/dojo/nls/tt-rss-layer_da.js
  307. 2
      lib/dojo/nls/tt-rss-layer_de.js
  308. 2
      lib/dojo/nls/tt-rss-layer_el.js
  309. 2
      lib/dojo/nls/tt-rss-layer_en-gb.js
  310. 2
      lib/dojo/nls/tt-rss-layer_en-us.js
  311. 2
      lib/dojo/nls/tt-rss-layer_es-es.js
  312. 2
      lib/dojo/nls/tt-rss-layer_fi-fi.js
  313. 2
      lib/dojo/nls/tt-rss-layer_fr-fr.js
  314. 2
      lib/dojo/nls/tt-rss-layer_he-il.js
  315. 2
      lib/dojo/nls/tt-rss-layer_hu.js
  316. 2
      lib/dojo/nls/tt-rss-layer_it-it.js
  317. 2
      lib/dojo/nls/tt-rss-layer_ja-jp.js
  318. 2
      lib/dojo/nls/tt-rss-layer_ko-kr.js
  319. 2
      lib/dojo/nls/tt-rss-layer_nb.js
  320. 2
      lib/dojo/nls/tt-rss-layer_nl-nl.js
  321. 2
      lib/dojo/nls/tt-rss-layer_pl.js
  322. 2
      lib/dojo/nls/tt-rss-layer_pt-br.js
  323. 2
      lib/dojo/nls/tt-rss-layer_pt-pt.js
  324. 2
      lib/dojo/nls/tt-rss-layer_ru.js
  325. 2
      lib/dojo/nls/tt-rss-layer_sk.js
  326. 2
      lib/dojo/nls/tt-rss-layer_sl.js
  327. 2
      lib/dojo/nls/tt-rss-layer_sv.js
  328. 2
      lib/dojo/nls/tt-rss-layer_th.js
  329. 2
      lib/dojo/nls/tt-rss-layer_tr.js
  330. 2
      lib/dojo/nls/tt-rss-layer_zh-cn.js
  331. 2
      lib/dojo/nls/tt-rss-layer_zh-tw.js
  332. 2
      lib/dojo/on.js
  333. 12
      lib/dojo/package.json
  334. 2
      lib/dojo/promise/Promise.js
  335. 2
      lib/dojo/promise/all.js
  336. 2
      lib/dojo/request/iframe.js
  337. 2
      lib/dojo/request/script.js
  338. 2
      lib/dojo/request/util.js
  339. 2
      lib/dojo/request/xhr.js
  340. 2
      lib/dojo/store/JsonRest.js
  341. 2
      lib/dojo/tt-rss-layer.js

2
lib/dijit/Dialog.js

@ -1,2 +1,2 @@
//>>built
require({cache:{"url:dijit/templates/Dialog.html":"<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div data-dojo-attach-point=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t\t<span data-dojo-attach-point=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"\n\t\t\t\trole=\"heading\" level=\"1\"></span>\n\t\t<span data-dojo-attach-point=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" data-dojo-attach-event=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabindex=\"-1\">\n\t\t\t<span data-dojo-attach-point=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t\t</span>\n\t</div>\n\t<div data-dojo-attach-point=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n\t${!actionBarTemplate}\n</div>\n\n"}});define("dijit/Dialog",["require","dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/fx","dojo/i18n","dojo/keys","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/window","dojo/dnd/Moveable","dojo/dnd/TimedMoveable","./focus","./_base/manager","./_Widget","./_TemplatedMixin","./_CssStateMixin","./form/_FormMixin","./_DialogMixin","./DialogUnderlay","./layout/ContentPane","./layout/utils","dojo/text!./templates/Dialog.html","./a11yclick","dojo/i18n!./nls/common"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,fx,_a,_b,_c,on,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c){var _1d=new _5();_1d.resolve(true);function nop(){};var _1e=_4("dijit._DialogBase"+(_e("dojo-bidi")?"_NoBidi":""),[_15,_17,_18,_16],{templateString:_1c,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:false,duration:_13.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,draggable:true,_setDraggableAttr:function(val){this._set("draggable",val);},maxRatio:0.9,closable:true,_setClosableAttr:function(val){this.closeButtonNode.style.display=val?"":"none";this._set("closable",val);},postMixInProperties:function(){var _1f=_a.getLocalization("dijit","common");_c.mixin(this,_1f);this.inherited(arguments);},postCreate:function(){_9.set(this.domNode,{display:"none",position:"absolute"});this.ownerDocumentBody.appendChild(this.domNode);this.inherited(arguments);_3.after(this,"onExecute",_c.hitch(this,"hide"),true);_3.after(this,"onCancel",_c.hitch(this,"hide"),true);this._modalconnects=[];},onLoad:function(){this.resize();this._position();if(this.autofocus&&_20.isTop(this)){this._getFocusItems();_12.focus(this._firstFocusItem);}this.inherited(arguments);},focus:function(){this._getFocusItems();_12.focus(this._firstFocusItem);},_endDrag:function(){var _21=_8.position(this.domNode),_22=_f.getBox(this.ownerDocument);_21.y=Math.min(Math.max(_21.y,0),(_22.h-_21.h));_21.x=Math.min(Math.max(_21.x,0),(_22.w-_21.w));this._relativePosition=_21;this._position();},_setup:function(){var _23=this.domNode;if(this.titleBar&&this.draggable){this._moveable=new ((_e("ie")==6)?_11:_10)(_23,{handle:this.titleBar});_3.after(this._moveable,"onMoveStop",_c.hitch(this,"_endDrag"),true);}else{_7.add(_23,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":_2.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" "),_onKeyDown:_c.hitch(this,"_onKey"),ownerDocument:this.ownerDocument};},_size:function(){this.resize();},_position:function(){if(!_7.contains(this.ownerDocumentBody,"dojoMove")){var _24=this.domNode,_25=_f.getBox(this.ownerDocument),p=this._relativePosition,bb=_8.position(_24),l=Math.floor(_25.l+(p?Math.min(p.x,_25.w-bb.w):(_25.w-bb.w)/2)),t=Math.floor(_25.t+(p?Math.min(p.y,_25.h-bb.h):(_25.h-bb.h)/2));_9.set(_24,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.keyCode==_b.TAB){this._getFocusItems();var _26=evt.target;if(this._firstFocusItem==this._lastFocusItem){evt.stopPropagation();evt.preventDefault();}else{if(_26==this._firstFocusItem&&evt.shiftKey){_12.focus(this._lastFocusItem);evt.stopPropagation();evt.preventDefault();}else{if(_26==this._lastFocusItem&&!evt.shiftKey){_12.focus(this._firstFocusItem);evt.stopPropagation();evt.preventDefault();}}}}else{if(this.closable&&evt.keyCode==_b.ESCAPE){this.onCancel();evt.stopPropagation();evt.preventDefault();}}},show:function(){if(this.open){return _1d.promise;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();_20.hide(this);}var win=_f.get(this.ownerDocument);this._modalconnects.push(on(win,"scroll",_c.hitch(this,"resize",null)));this._modalconnects.push(on(this.domNode,"keydown",_c.hitch(this,"_onKey")));_9.set(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this.resize();this._position();var _27;this._fadeInDeferred=new _5(_c.hitch(this,function(){_27.stop();delete this._fadeInDeferred;}));this._fadeInDeferred.then(undefined,nop);var _28=this._fadeInDeferred.promise;_27=fx.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:_c.hitch(this,function(){_20.show(this,this.underlayAttrs);}),onEnd:_c.hitch(this,function(){if(this.autofocus&&_20.isTop(this)){this._getFocusItems();_12.focus(this._firstFocusItem);}this._fadeInDeferred.resolve(true);delete this._fadeInDeferred;})}).play();return _28;},hide:function(){if(!this._alreadyInitialized||!this.open){return _1d.promise;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _29;this._fadeOutDeferred=new _5(_c.hitch(this,function(){_29.stop();delete this._fadeOutDeferred;}));this._fadeOutDeferred.then(undefined,nop);this._fadeOutDeferred.then(_c.hitch(this,"onHide"));var _2a=this._fadeOutDeferred.promise;_29=fx.fadeOut({node:this.domNode,duration:this.duration,onEnd:_c.hitch(this,function(){this.domNode.style.display="none";_20.hide(this);this._fadeOutDeferred.resolve(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}var h;while(h=this._modalconnects.pop()){h.remove();}if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return _2a;},resize:function(dim){if(this.domNode.style.display!="none"){this._checkIfSingleChild();if(!dim){if(this._shrunk){if(this._singleChild){if(typeof this._singleChildOriginalStyle!="undefined"){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;delete this._singleChildOriginalStyle;}}_2.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(_2b){if(_2b){_9.set(_2b,{position:"static",width:"auto",height:"auto"});}});this.domNode.style.position="absolute";}var _2c=_f.getBox(this.ownerDocument);_2c.w*=this.maxRatio;_2c.h*=this.maxRatio;var bb=_8.position(this.domNode);if(bb.w>=_2c.w||bb.h>=_2c.h){dim={w:Math.min(bb.w,_2c.w),h:Math.min(bb.h,_2c.h)};this._shrunk=true;}else{this._shrunk=false;}}if(dim){_8.setMarginBox(this.domNode,dim);var _2d=[];if(this.titleBar){_2d.push({domNode:this.titleBar,region:"top"});}if(this.actionBarNode){_2d.push({domNode:this.actionBarNode,region:"bottom"});}var _2e={domNode:this.containerNode,region:"center"};_2d.push(_2e);var _2f=_1b.marginBox2contentBox(this.domNode,dim);_1b.layoutChildren(this.domNode,_2f,_2d);if(this._singleChild){var cb=_1b.marginBox2contentBox(this.containerNode,_2e);this._singleChild.resize({w:cb.w,h:cb.h});}else{this.containerNode.style.overflow="auto";this._layoutChildren();}}else{this._layoutChildren();}if(!_e("touch")&&!dim){this._position();}}},_layoutChildren:function(){_2.forEach(this.getChildren(),function(_30){if(_30.resize){_30.resize();}});},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}var h;while(h=this._modalconnects.pop()){h.remove();}_20.hide(this);this.inherited(arguments);}});if(_e("dojo-bidi")){_1e=_4("dijit._DialogBase",_1e,{_setTitleAttr:function(_31){this._set("title",_31);this.titleNode.innerHTML=_31;this.applyTextDir(this.titleNode);},_setTextDirAttr:function(_32){if(this._created&&this.textDir!=_32){this._set("textDir",_32);this.set("title",this.title);}}});}var _33=_4("dijit.Dialog",[_1a,_1e],{});_33._DialogBase=_1e;var _20=_33._DialogLevelManager={_beginZIndex:950,show:function(_34,_35){ds[ds.length-1].focus=_12.curNode;var _36=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:_33._DialogLevelManager._beginZIndex;_9.set(_34.domNode,"zIndex",_36);_19.show(_35,_36-1);ds.push({dialog:_34,underlayAttrs:_35,zIndex:_36});},hide:function(_37){if(ds[ds.length-1].dialog==_37){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){_19.hide();}else{_19.show(pd.underlayAttrs,pd.zIndex-1);}if(_37.refocus){var _38=pd.focus;if(pd.dialog&&(!_38||!_6.isDescendant(_38,pd.dialog.domNode))){pd.dialog._getFocusItems();_38=pd.dialog._firstFocusItem;}if(_38){try{_38.focus();}catch(e){}}}}else{var idx=_2.indexOf(_2.map(ds,function(_39){return _39.dialog;}),_37);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_3a){return ds[ds.length-1].dialog==_3a;}};var ds=_33._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];_12.watch("curNode",function(_3b,_3c,_3d){var _3e=ds[ds.length-1].dialog;if(_3d&&_3e&&!_3e._fadeOutDeferred&&_3d.ownerDocument==_3e.ownerDocument){do{if(_3d==_3e.domNode||_7.contains(_3d,"dijitPopup")){return;}}while(_3d=_3d.parentNode);_3e.focus();}});if(_e("dijit-legacy-requires")){_d(0,function(){var _3f=["dijit/TooltipDialog"];_1(_3f);});}return _33;});
require({cache:{"url:dijit/templates/Dialog.html":"<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div data-dojo-attach-point=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t\t<span data-dojo-attach-point=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"\n\t\t\t\trole=\"heading\" level=\"1\"></span>\n\t\t<span data-dojo-attach-point=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" data-dojo-attach-event=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabindex=\"-1\">\n\t\t\t<span data-dojo-attach-point=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t\t</span>\n\t</div>\n\t<div data-dojo-attach-point=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n\t${!actionBarTemplate}\n</div>\n\n"}});define("dijit/Dialog",["require","dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/_base/fx","dojo/i18n","dojo/keys","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/touch","dojo/window","dojo/dnd/Moveable","dojo/dnd/TimedMoveable","./focus","./_base/manager","./_Widget","./_TemplatedMixin","./_CssStateMixin","./form/_FormMixin","./_DialogMixin","./DialogUnderlay","./layout/ContentPane","./layout/utils","dojo/text!./templates/Dialog.html","./a11yclick","dojo/i18n!./nls/common"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,fx,_a,_b,_c,on,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d){var _1e=new _5();_1e.resolve(true);function nop(){};var _1f=_4("dijit._DialogBase"+(_e("dojo-bidi")?"_NoBidi":""),[_16,_18,_19,_17],{templateString:_1d,baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},_setTitleAttr:{node:"titleNode",type:"innerHTML"},open:false,duration:_14.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,draggable:true,_setDraggableAttr:function(val){this._set("draggable",val);},maxRatio:0.9,closable:true,_setClosableAttr:function(val){this.closeButtonNode.style.display=val?"":"none";this._set("closable",val);},postMixInProperties:function(){var _20=_a.getLocalization("dijit","common");_c.mixin(this,_20);this.inherited(arguments);},postCreate:function(){_9.set(this.domNode,{display:"none",position:"absolute"});this.ownerDocumentBody.appendChild(this.domNode);this.inherited(arguments);_3.after(this,"onExecute",_c.hitch(this,"hide"),true);_3.after(this,"onCancel",_c.hitch(this,"hide"),true);on(this.closeButtonNode,_f.press,function(e){e.stopPropagation();});this._modalconnects=[];},onLoad:function(){this.resize();this._position();if(this.autofocus&&_21.isTop(this)){this._getFocusItems();_13.focus(this._firstFocusItem);}this.inherited(arguments);},focus:function(){this._getFocusItems();_13.focus(this._firstFocusItem);},_endDrag:function(){var _22=_8.position(this.domNode),_23=_10.getBox(this.ownerDocument);_22.y=Math.min(Math.max(_22.y,0),(_23.h-_22.h));_22.x=Math.min(Math.max(_22.x,0),(_23.w-_22.w));this._relativePosition=_22;this._position();},_setup:function(){var _24=this.domNode;if(this.titleBar&&this.draggable){this._moveable=new ((_e("ie")==6)?_12:_11)(_24,{handle:this.titleBar});_3.after(this._moveable,"onMoveStop",_c.hitch(this,"_endDrag"),true);}else{_7.add(_24,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":_2.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" "),_onKeyDown:_c.hitch(this,"_onKey"),ownerDocument:this.ownerDocument};},_size:function(){this.resize();},_position:function(){if(!_7.contains(this.ownerDocumentBody,"dojoMove")){var _25=this.domNode,_26=_10.getBox(this.ownerDocument),p=this._relativePosition,bb=_8.position(_25),l=Math.floor(_26.l+(p?Math.min(p.x,_26.w-bb.w):(_26.w-bb.w)/2)),t=Math.floor(_26.t+(p?Math.min(p.y,_26.h-bb.h):(_26.h-bb.h)/2));_9.set(_25,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.keyCode==_b.TAB){this._getFocusItems();var _27=evt.target;if(this._firstFocusItem==this._lastFocusItem){evt.stopPropagation();evt.preventDefault();}else{if(_27==this._firstFocusItem&&evt.shiftKey){_13.focus(this._lastFocusItem);evt.stopPropagation();evt.preventDefault();}else{if(_27==this._lastFocusItem&&!evt.shiftKey){_13.focus(this._firstFocusItem);evt.stopPropagation();evt.preventDefault();}}}}else{if(this.closable&&evt.keyCode==_b.ESCAPE){this.onCancel();evt.stopPropagation();evt.preventDefault();}}},show:function(){if(this.open){return _1e.promise;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();_21.hide(this);}var win=_10.get(this.ownerDocument);this._modalconnects.push(on(win,"scroll",_c.hitch(this,"resize",null)));this._modalconnects.push(on(this.domNode,"keydown",_c.hitch(this,"_onKey")));_9.set(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this.resize();this._position();var _28;this._fadeInDeferred=new _5(_c.hitch(this,function(){_28.stop();delete this._fadeInDeferred;}));this._fadeInDeferred.then(undefined,nop);var _29=this._fadeInDeferred.promise;_28=fx.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:_c.hitch(this,function(){_21.show(this,this.underlayAttrs);}),onEnd:_c.hitch(this,function(){if(this.autofocus&&_21.isTop(this)){this._getFocusItems();_13.focus(this._firstFocusItem);}this._fadeInDeferred.resolve(true);delete this._fadeInDeferred;})}).play();return _29;},hide:function(){if(!this._alreadyInitialized||!this.open){return _1e.promise;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _2a;this._fadeOutDeferred=new _5(_c.hitch(this,function(){_2a.stop();delete this._fadeOutDeferred;}));this._fadeOutDeferred.then(undefined,nop);this._fadeOutDeferred.then(_c.hitch(this,"onHide"));var _2b=this._fadeOutDeferred.promise;_2a=fx.fadeOut({node:this.domNode,duration:this.duration,onEnd:_c.hitch(this,function(){this.domNode.style.display="none";_21.hide(this);this._fadeOutDeferred.resolve(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}var h;while(h=this._modalconnects.pop()){h.remove();}if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return _2b;},resize:function(dim){if(this.domNode.style.display!="none"){this._checkIfSingleChild();if(!dim){if(this._shrunk){if(this._singleChild){if(typeof this._singleChildOriginalStyle!="undefined"){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;delete this._singleChildOriginalStyle;}}_2.forEach([this.domNode,this.containerNode,this.titleBar,this.actionBarNode],function(_2c){if(_2c){_9.set(_2c,{position:"static",width:"auto",height:"auto"});}});this.domNode.style.position="absolute";}var _2d=_10.getBox(this.ownerDocument);_2d.w*=this.maxRatio;_2d.h*=this.maxRatio;var bb=_8.position(this.domNode);this._shrunk=false;if(bb.w>=_2d.w){dim={w:_2d.w};_8.setMarginBox(this.domNode,dim);bb=_8.position(this.domNode);this._shrunk=true;}if(bb.h>=_2d.h){if(!dim){dim={w:bb.w};}dim.h=_2d.h;this._shrunk=true;}if(dim){if(!dim.w){dim.w=bb.w;}if(!dim.h){dim.h=bb.h;}}}if(dim){_8.setMarginBox(this.domNode,dim);var _2e=[];if(this.titleBar){_2e.push({domNode:this.titleBar,region:"top"});}if(this.actionBarNode){_2e.push({domNode:this.actionBarNode,region:"bottom"});}var _2f={domNode:this.containerNode,region:"center"};_2e.push(_2f);var _30=_1c.marginBox2contentBox(this.domNode,dim);_1c.layoutChildren(this.domNode,_30,_2e);if(this._singleChild){var cb=_1c.marginBox2contentBox(this.containerNode,_2f);this._singleChild.resize({w:cb.w,h:cb.h});}else{this.containerNode.style.overflow="auto";this._layoutChildren();}}else{this._layoutChildren();}if(!_e("touch")&&!dim){this._position();}}},_layoutChildren:function(){_2.forEach(this.getChildren(),function(_31){if(_31.resize){_31.resize();}});},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}var h;while(h=this._modalconnects.pop()){h.remove();}_21.hide(this);this.inherited(arguments);}});if(_e("dojo-bidi")){_1f=_4("dijit._DialogBase",_1f,{_setTitleAttr:function(_32){this._set("title",_32);this.titleNode.innerHTML=_32;this.applyTextDir(this.titleNode);},_setTextDirAttr:function(_33){if(this._created&&this.textDir!=_33){this._set("textDir",_33);this.set("title",this.title);}}});}var _34=_4("dijit.Dialog",[_1b,_1f],{});_34._DialogBase=_1f;var _21=_34._DialogLevelManager={_beginZIndex:950,show:function(_35,_36){ds[ds.length-1].focus=_13.curNode;var _37=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:_34._DialogLevelManager._beginZIndex;_9.set(_35.domNode,"zIndex",_37);_1a.show(_36,_37-1);ds.push({dialog:_35,underlayAttrs:_36,zIndex:_37});},hide:function(_38){if(ds[ds.length-1].dialog==_38){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){_1a.hide();}else{_1a.show(pd.underlayAttrs,pd.zIndex-1);}if(_38.refocus){var _39=pd.focus;if(pd.dialog&&(!_39||!_6.isDescendant(_39,pd.dialog.domNode))){pd.dialog._getFocusItems();_39=pd.dialog._firstFocusItem;}if(_39){try{_39.focus();}catch(e){}}}}else{var idx=_2.indexOf(_2.map(ds,function(_3a){return _3a.dialog;}),_38);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_3b){return ds[ds.length-1].dialog==_3b;}};var ds=_34._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];_13.watch("curNode",function(_3c,_3d,_3e){var _3f=ds[ds.length-1].dialog;if(_3e&&_3f&&!_3f._fadeOutDeferred&&_3e.ownerDocument==_3f.ownerDocument){do{if(_3e==_3f.domNode||_7.contains(_3e,"dijitPopup")){return;}}while(_3e=_3e.parentNode);_3f.focus();}});if(_e("dijit-legacy-requires")){_d(0,function(){var _40=["dijit/TooltipDialog"];_1(_40);});}return _34;});

2
lib/dijit/Editor.js

@ -1,2 +1,2 @@
//>>built
define("dijit/Editor",["require","dojo/_base/array","dojo/_base/declare","dojo/Deferred","dojo/i18n","dojo/dom-attr","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/keys","dojo/_base/lang","dojo/sniff","dojo/string","dojo/topic","./_Container","./Toolbar","./ToolbarSeparator","./layout/_LayoutWidget","./form/ToggleButton","./_editor/_Plugin","./_editor/plugins/EnterKeyHandling","./_editor/html","./_editor/range","./_editor/RichText","./main","dojo/i18n!./_editor/nls/commands"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19){var _1a=_3("dijit.Editor",_18,{plugins:null,extraPlugins:null,constructor:function(){if(!_b.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",_15];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(_c("ie")||_c("trident")||_c("edge")){this.events.push("onBeforeDeactivate");this.events.push("onBeforeActivate");}},postMixInProperties:function(){this.setValueDeferred=new _4();this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);if(_b.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.commands=_5.getLocalization("dijit._editor","commands",this.lang);if(_c("webkit")){_9.set(this.domNode,"KhtmlUserSelect","none");}},startup:function(){this.inherited(arguments);if(!this.toolbar){this.toolbar=new _10({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id});this.header.appendChild(this.toolbar.domNode);}_2.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(true);_7.add(this.iframe.parentNode,"dijitEditorIFrameContainer");_7.add(this.iframe,"dijitEditorIFrame");_6.set(this.iframe,"allowTransparency",true);this.toolbar.startup();this.onNormalizedDisplayChanged();},destroy:function(){_2.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_1b,_1c){var _1d=_b.isString(_1b)?{name:_1b}:_b.isFunction(_1b)?{ctor:_1b}:_1b;if(!_1d.setEditor){var o={"args":_1d,"plugin":null,"editor":this};if(_1d.name){if(_14.registry[_1d.name]){o.plugin=_14.registry[_1d.name](_1d);}else{_e.publish(_19._scopeName+".Editor.getPlugin",o);}}if(!o.plugin){try{var pc=_1d.ctor||_b.getObject(_1d.name)||_1(_1d.name);if(pc){o.plugin=new pc(_1d);}}catch(e){throw new Error(this.id+": cannot find plugin ["+_1d.name+"]");}}if(!o.plugin){throw new Error(this.id+": cannot find plugin ["+_1d.name+"]");}_1b=o.plugin;}if(arguments.length>1){this._plugins[_1c]=_1b;}else{this._plugins.push(_1b);}_1b.setEditor(this);if(_b.isFunction(_1b.setToolbar)){_1b.setToolbar(this.toolbar);}},resize:function(_1e){if(_1e){_12.prototype.resize.apply(this,arguments);}},layout:function(){var _1f=(this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+_8.getPadBorderExtents(this.iframe.parentNode).h+_8.getMarginExtents(this.iframe.parentNode).h));this.editingArea.style.height=_1f+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){var _20;var b=this.document.body;var _21=b.clientWidth;var _22=b.clientHeight;var _23=b.clientLeft;var _24=b.offsetWidth;var _25=b.offsetHeight;var _26=b.offsetLeft;if(/^rtl$/i.test(b.dir||"")){if(_21<_24&&e.x>_21&&e.x<_24){_20=true;}}else{if(e.x<_23&&e.x>_26){_20=true;}}if(!_20){if(_22<_25&&e.y>_22&&e.y<_25){_20=true;}}if(!_20){delete this._cursorToStart;delete this._savedSelection;if(e.target.tagName=="BODY"){this.defer("placeCursorAtEnd");}this.inherited(arguments);}},onBeforeActivate:function(){this._restoreSelection();},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}if(e.target.tagName!="BODY"){this._saveSelection();}},customUndo:true,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){this._editTimer.remove();}this._editTimer=this.defer("endEditing",this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}var r=this.inherited(arguments);if(this.customUndo){this._endEditing();}return r;}},_pasteImpl:function(){return this._clipboardCommand("paste");},_cutImpl:function(){return this._clipboardCommand("cut");},_copyImpl:function(){return this._clipboardCommand("copy");},_clipboardCommand:function(cmd){var r;try{r=this.document.execCommand(cmd,false,null);if(_c("webkit")&&!r){throw {};}}catch(e){var sub=_d.substitute,_27={cut:"X",copy:"C",paste:"V"};alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[_c("mac")?"appleKey":"ctrlKey"],[_27[cmd]])]));r=false;}return r;},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited(arguments);}},_moveToBookmark:function(b){var _28=b.mark;var _29=b.mark;var col=b.isCollapsed;var r,_2a,_2b,sel;if(_29){if(_c("ie")<9||(_c("ie")===9&&_c("quirks"))){if(_b.isArray(_29)){_28=[];_2.forEach(_29,function(n){_28.push(_17.getNode(n,this.editNode));},this);this.selection.moveToBookmark({mark:_28,isCollapsed:col});}else{if(_29.startContainer&&_29.endContainer){sel=_17.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=_17.create(this.window);_2a=_17.getNode(_29.startContainer,this.editNode);_2b=_17.getNode(_29.endContainer,this.editNode);if(_2a&&_2b){r.setStart(_2a,_29.startOffset);r.setEnd(_2b,_29.endOffset);sel.addRange(r);}}}}}else{sel=_17.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=_17.create(this.window);_2a=_17.getNode(_29.startContainer,this.editNode);_2b=_17.getNode(_29.endContainer,this.editNode);if(_2a&&_2b){r.setStart(_2a,_29.startOffset);r.setEnd(_2b,_29.endOffset);sel.addRange(r);}}}}},_changeToStep:function(_2c,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._steps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();delete this._undoRedoActive;ret=true;}delete this._undoRedoActive;}return ret;},redo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();ret=true;}delete this._undoRedoActive;}return ret;},endEditing:function(_2d){if(this._editTimer){this._editTimer=this._editTimer.remove();}if(this._inEditing){this._endEditing(_2d);this._inEditing=false;}},_getBookmark:function(){var b=this.selection.getBookmark();var tmp=[];if(b&&b.mark){var _2e=b.mark;if(_c("ie")<9||(_c("ie")===9&&_c("quirks"))){var sel=_17.getSelection(this.window);if(!_b.isArray(_2e)){if(sel){var _2f;if(sel.rangeCount){_2f=sel.getRangeAt(0);}if(_2f){b.mark=_2f.cloneRange();}else{b.mark=this.selection.getBookmark();}}}else{_2.forEach(b.mark,function(n){tmp.push(_17.getIndex(n,this.editNode).o);},this);b.mark=tmp;}}try{if(b.mark&&b.mark.startContainer){tmp=_17.getIndex(b.mark.startContainer,this.editNode).o;b.mark={startContainer:tmp,startOffset:b.mark.startOffset,endContainer:b.mark.endContainer===b.mark.startContainer?tmp:_17.getIndex(b.mark.endContainer,this.editNode).o,endOffset:b.mark.endOffset};}}catch(e){b.mark=null;}}return b;},_beginEditing:function(){if(this._steps.length===0){this._steps.push({"text":_16.getChildrenHtml(this.editNode),"bookmark":this._getBookmark()});}},_endEditing:function(){var v=_16.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!_c("ie")&&!this.iframe&&e.keyCode==_a.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode;if(e.ctrlKey&&!e.shiftKey&&!e.altKey){if(k==90||k==122){e.stopPropagation();e.preventDefault();this.undo();return;}else{if(k==89||k==121){e.stopPropagation();e.preventDefault();this.redo();return;}}}this.inherited(arguments);switch(k){case _a.ENTER:case _a.BACKSPACE:case _a.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");}else{this.beginEditing("paste");}this.defer("endEditing",1);break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<_a.F1||e.keyCode>_a.F15)){this.beginEditing();break;}case _a.ALT:this.endEditing();break;case _a.UP_ARROW:case _a.DOWN_ARROW:case _a.LEFT_ARROW:case _a.RIGHT_ARROW:case _a.HOME:case _a.END:case _a.PAGE_UP:case _a.PAGE_DOWN:this.endEditing(true);break;case _a.CTRL:case _a.SHIFT:case _a.TAB:break;}},_onBlur:function(){this.inherited(arguments);this.endEditing(true);},_saveSelection:function(){try{this._savedSelection=this._getBookmark();}catch(e){}},_restoreSelection:function(){if(this._savedSelection){delete this._cursorToStart;if(this.selection.isCollapsed()){this._moveToBookmark(this._savedSelection);}delete this._savedSelection;}},onClick:function(){this.endEditing(true);this.inherited(arguments);},replaceValue:function(_30){if(!this.customUndo){this.inherited(arguments);}else{if(this.isClosed){this.setValue(_30);}else{this.beginEditing();if(!_30){_30="&#160;";}this.setValue(_30);this.endEditing();}}},_setDisabledAttr:function(_31){this.setValueDeferred.then(_b.hitch(this,function(){if((!this.disabled&&_31)||(!this._buttonEnabledPlugins&&_31)){_2.forEach(this._plugins,function(p){p.set("disabled",true);});}else{if(this.disabled&&!_31){_2.forEach(this._plugins,function(p){p.set("disabled",false);});}}}));this.inherited(arguments);},_setStateClass:function(){try{this.inherited(arguments);if(this.document&&this.document.body){_9.set(this.document.body,"color",_9.get(this.iframe,"color"));}}catch(e){}}});function _32(_33){return new _14({command:_33.name});};function _34(_35){return new _14({buttonClass:_13,command:_35.name});};_b.mixin(_14.registry,{"undo":_32,"redo":_32,"cut":_32,"copy":_32,"paste":_32,"insertOrderedList":_32,"insertUnorderedList":_32,"indent":_32,"outdent":_32,"justifyCenter":_32,"justifyFull":_32,"justifyLeft":_32,"justifyRight":_32,"delete":_32,"selectAll":_32,"removeFormat":_32,"unlink":_32,"insertHorizontalRule":_32,"bold":_34,"italic":_34,"underline":_34,"strikethrough":_34,"subscript":_34,"superscript":_34,"|":function(){return new _14({setEditor:function(_36){this.editor=_36;this.button=new _11({ownerDocument:_36.ownerDocument});}});}});return _1a;});
define("dijit/Editor",["require","dojo/_base/array","dojo/_base/declare","dojo/Deferred","dojo/i18n","dojo/dom-attr","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/keys","dojo/_base/lang","dojo/sniff","dojo/string","dojo/topic","./_Container","./Toolbar","./ToolbarSeparator","./layout/_LayoutWidget","./form/ToggleButton","./_editor/_Plugin","./_editor/plugins/EnterKeyHandling","./_editor/html","./_editor/range","./_editor/RichText","./main","dojo/i18n!./_editor/nls/commands"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19){var _1a=_3("dijit.Editor",_18,{plugins:null,extraPlugins:null,constructor:function(){if(!_b.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull",_15];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(_c("ie")||_c("trident")||_c("edge")){this.events.push("onBeforeDeactivate");this.events.push("onBeforeActivate");}},postMixInProperties:function(){this.setValueDeferred=new _4();this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);if(_b.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.commands=_5.getLocalization("dijit._editor","commands",this.lang);if(_c("webkit")){_9.set(this.domNode,"KhtmlUserSelect","none");}},startup:function(){this.inherited(arguments);if(!this.toolbar){this.toolbar=new _10({ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,"aria-label":this.id});this.header.appendChild(this.toolbar.domNode);}_2.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.resolve(true);_7.add(this.iframe.parentNode,"dijitEditorIFrameContainer");_7.add(this.iframe,"dijitEditorIFrame");_6.set(this.iframe,"allowTransparency",true);this.toolbar.startup();this.onNormalizedDisplayChanged();},destroy:function(){_2.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_1b,_1c){var _1d=_b.isString(_1b)?{name:_1b}:_b.isFunction(_1b)?{ctor:_1b}:_1b;if(!_1d.setEditor){var o={"args":_1d,"plugin":null,"editor":this};if(_1d.name){if(_14.registry[_1d.name]){o.plugin=_14.registry[_1d.name](_1d);}else{_e.publish(_19._scopeName+".Editor.getPlugin",o);}}if(!o.plugin){try{var pc=_1d.ctor||_b.getObject(_1d.name)||_1(_1d.name);if(pc){o.plugin=new pc(_1d);}}catch(e){throw new Error(this.id+": cannot find plugin ["+_1d.name+"]");}}if(!o.plugin){throw new Error(this.id+": cannot find plugin ["+_1d.name+"]");}_1b=o.plugin;}if(arguments.length>1){this._plugins[_1c]=_1b;}else{this._plugins.push(_1b);}_1b.setEditor(this);if(_b.isFunction(_1b.setToolbar)){_1b.setToolbar(this.toolbar);}},resize:function(_1e){if(_1e){_12.prototype.resize.apply(this,arguments);}},layout:function(){var _1f=(this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+_8.getPadBorderExtents(this.iframe.parentNode).h+_8.getMarginExtents(this.iframe.parentNode).h));this.editingArea.style.height=_1f+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){var _20;var b=this.document.body;var _21=b.clientWidth;var _22=b.clientHeight;var _23=b.clientLeft;var _24=b.offsetWidth;var _25=b.offsetHeight;var _26=b.offsetLeft;if(/^rtl$/i.test(b.dir||"")){if(_21<_24&&e.x>_21&&e.x<_24){_20=true;}}else{if(e.x<_23&&e.x>_26){_20=true;}}if(!_20){if(_22<_25&&e.y>_22&&e.y<_25){_20=true;}}if(!_20){delete this._cursorToStart;delete this._savedSelection;if(e.target.tagName=="BODY"){this.defer("placeCursorAtEnd");}this.inherited(arguments);}},onBeforeActivate:function(){this._restoreSelection();},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}if(e.target.tagName!="BODY"){this._saveSelection();}},customUndo:true,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){this._editTimer.remove();}this._editTimer=this.defer("endEditing",this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}var r=this.inherited(arguments);if(this.customUndo){this._endEditing();}return r;}},_pasteImpl:function(){return this._clipboardCommand("paste");},_cutImpl:function(){return this._clipboardCommand("cut");},_copyImpl:function(){return this._clipboardCommand("copy");},_clipboardCommand:function(cmd){var r;try{r=this.document.execCommand(cmd,false,null);if(_c("webkit")&&!r){throw {};}}catch(e){var sub=_d.substitute,_27={cut:"X",copy:"C",paste:"V"};alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[_c("mac")?"appleKey":"ctrlKey"],[_27[cmd]])]));r=false;}return r;},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited(arguments);}},_moveToBookmark:function(b){var _28=b.mark;var _29=b.mark;var col=b.isCollapsed;var r,_2a,_2b,sel;if(_29){if(_c("ie")<9||(_c("ie")===9&&_c("quirks"))){if(_b.isArray(_29)){_28=[];_2.forEach(_29,function(n){_28.push(_17.getNode(n,this.editNode));},this);this.selection.moveToBookmark({mark:_28,isCollapsed:col});}else{if(_29.startContainer&&_29.endContainer){sel=_17.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=_17.create(this.window);_2a=_17.getNode(_29.startContainer,this.editNode);_2b=_17.getNode(_29.endContainer,this.editNode);if(_2a&&_2b){r.setStart(_2a,_29.startOffset);r.setEnd(_2b,_29.endOffset);sel.addRange(r);}}}}}else{sel=_17.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=_17.create(this.window);_2a=_17.getNode(_29.startContainer,this.editNode);_2b=_17.getNode(_29.endContainer,this.editNode);if(_2a&&_2b){r.setStart(_2a,_29.startOffset);r.setEnd(_2b,_29.endOffset);sel.addRange(r);}}}}},_changeToStep:function(_2c,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._steps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();delete this._undoRedoActive;ret=true;}delete this._undoRedoActive;}return ret;},redo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();ret=true;}delete this._undoRedoActive;}return ret;},endEditing:function(_2d){if(this._editTimer){this._editTimer=this._editTimer.remove();}if(this._inEditing){this._endEditing(_2d);this._inEditing=false;}},_getBookmark:function(){var b=this.selection.getBookmark();var tmp=[];if(b&&b.mark){var _2e=b.mark;if(_c("ie")<9||(_c("ie")===9&&_c("quirks"))){var sel=_17.getSelection(this.window);if(!_b.isArray(_2e)){if(sel){var _2f;if(sel.rangeCount){_2f=sel.getRangeAt(0);}if(_2f){b.mark=_2f.cloneRange();}else{b.mark=this.selection.getBookmark();}}}else{_2.forEach(b.mark,function(n){tmp.push(_17.getIndex(n,this.editNode).o);},this);b.mark=tmp;}}try{if(b.mark&&b.mark.startContainer){tmp=_17.getIndex(b.mark.startContainer,this.editNode).o;b.mark={startContainer:tmp,startOffset:b.mark.startOffset,endContainer:b.mark.endContainer===b.mark.startContainer?tmp:_17.getIndex(b.mark.endContainer,this.editNode).o,endOffset:b.mark.endOffset};}}catch(e){b.mark=null;}}return b;},_beginEditing:function(){if(this._steps.length===0){this._steps.push({"text":_16.getChildrenHtml(this.editNode),"bookmark":this._getBookmark()});}},_endEditing:function(){var v=_16.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!_c("ie")&&!this.iframe&&e.keyCode==_a.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode;if(e.ctrlKey&&!e.shiftKey&&!e.altKey){if(k==90||k==122){e.stopPropagation();e.preventDefault();this.undo();return;}else{if(k==89||k==121){e.stopPropagation();e.preventDefault();this.redo();return;}}}this.inherited(arguments);switch(k){case _a.ENTER:case _a.BACKSPACE:case _a.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");}else{this.beginEditing("paste");}this.defer("endEditing",1);break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<_a.F1||e.keyCode>_a.F15)){this.beginEditing();break;}case _a.ALT:this.endEditing();break;case _a.UP_ARROW:case _a.DOWN_ARROW:case _a.LEFT_ARROW:case _a.RIGHT_ARROW:case _a.HOME:case _a.END:case _a.PAGE_UP:case _a.PAGE_DOWN:this.endEditing(true);break;case _a.CTRL:case _a.SHIFT:case _a.TAB:break;}},_onBlur:function(){this.inherited(arguments);this.endEditing(true);},_saveSelection:function(){try{this._savedSelection=this._getBookmark();}catch(e){}},_restoreSelection:function(){if(this._savedSelection){delete this._cursorToStart;if(this.selection.isCollapsed()){this._moveToBookmark(this._savedSelection);}delete this._savedSelection;}},onClick:function(){this.endEditing(true);this.inherited(arguments);},replaceValue:function(_30){if(!this.customUndo){this.inherited(arguments);}else{if(this.isClosed){this.setValue(_30);}else{this.beginEditing();if(!_30){_30="&#160;";}this.setValue(_30);this.endEditing();}}},_setDisabledAttr:function(_31){this.setValueDeferred.then(_b.hitch(this,function(){if((!this.disabled&&_31)||(!this._buttonEnabledPlugins&&_31)){_2.forEach(this._plugins,function(p){p.set("disabled",true);});}else{if(this.disabled&&!_31){_2.forEach(this._plugins,function(p){p.set("disabled",false);});}}}));this.inherited(arguments);},_setStateClass:function(){try{this.inherited(arguments);if(this.document&&this.document.body){_9.set(this.document.body,"color",_9.get(this.iframe,"color"));_9.set(this.document.body,"background-color",_9.get(this.iframe,"background-color"));}}catch(e){}}});function _32(_33){return new _14({command:_33.name});};function _34(_35){return new _14({buttonClass:_13,command:_35.name});};_b.mixin(_14.registry,{"undo":_32,"redo":_32,"cut":_32,"copy":_32,"paste":_32,"insertOrderedList":_32,"insertUnorderedList":_32,"indent":_32,"outdent":_32,"justifyCenter":_32,"justifyFull":_32,"justifyLeft":_32,"justifyRight":_32,"delete":_32,"selectAll":_32,"removeFormat":_32,"unlink":_32,"insertHorizontalRule":_32,"bold":_34,"italic":_34,"underline":_34,"strikethrough":_34,"subscript":_34,"superscript":_34,"|":function(){return new _14({setEditor:function(_36){this.editor=_36;this.button=new _11({ownerDocument:_36.ownerDocument});}});}});return _1a;});

2
lib/dijit/Tree.js

@ -1,2 +1,2 @@
//>>built
require({cache:{"url:dijit/templates/TreeNode.html":"<div class=\"dijitTreeNode\" role=\"presentation\"\n\t><div data-dojo-attach-point=\"rowNode\" class=\"dijitTreeRow\" role=\"presentation\"\n\t\t><span data-dojo-attach-point=\"expandoNode\" class=\"dijitInline dijitTreeExpando\" role=\"presentation\"></span\n\t\t><span data-dojo-attach-point=\"expandoNodeText\" class=\"dijitExpandoText\" role=\"presentation\"></span\n\t\t><span data-dojo-attach-point=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" role=\"presentation\">\n\t\t\t<span role=\"presentation\" class=\"dijitInline dijitIcon dijitTreeIcon\" data-dojo-attach-point=\"iconNode\"></span\n\t\t\t><span data-dojo-attach-point=\"labelNode,focusNode\" class=\"dijitTreeLabel\" role=\"treeitem\"\n\t\t\t\t tabindex=\"-1\" aria-selected=\"false\" id=\"${id}_label\"></span>\n\t\t</span\n\t></div>\n\t<div data-dojo-attach-point=\"containerNode\" class=\"dijitTreeNodeContainer\" role=\"presentation\"\n\t\t style=\"display: none;\" aria-labelledby=\"${id}_label\"></div>\n</div>\n","url:dijit/templates/Tree.html":"<div role=\"tree\">\n\t<div class=\"dijitInline dijitTreeIndent\" style=\"position: absolute; top: -9999px\" data-dojo-attach-point=\"indentDetector\"></div>\n\t<div class=\"dijitTreeExpando dijitTreeExpandoLoading\" data-dojo-attach-point=\"rootLoadingIndicator\"></div>\n\t<div data-dojo-attach-point=\"containerNode\" class=\"dijitTreeContainer\" role=\"presentation\">\n\t</div>\n</div>\n"}});define("dijit/Tree",["dojo/_base/array","dojo/aspect","dojo/cookie","dojo/_base/declare","dojo/Deferred","dojo/promise/all","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/errors/create","dojo/fx","dojo/has","dojo/_base/kernel","dojo/keys","dojo/_base/lang","dojo/on","dojo/topic","dojo/touch","dojo/when","./a11yclick","./focus","./registry","./_base/manager","./_Widget","./_TemplatedMixin","./_Container","./_Contained","./_CssStateMixin","./_KeyNavMixin","dojo/text!./templates/TreeNode.html","dojo/text!./templates/Tree.html","./tree/TreeStoreModel","./tree/ForestStoreModel","./tree/_dndSelector","dojo/query!css2"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,on,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22){function _23(d){return _10.delegate(d.promise||d,{addCallback:function(_24){this.then(_24);},addErrback:function(_25){this.otherwise(_25);}});};var _26=_4("dijit._TreeNode",[_18,_19,_1a,_1b,_1c],{item:null,isTreeNode:true,label:"",_setLabelAttr:function(val){this.labelNode[this.labelType=="html"?"innerHTML":"innerText" in this.labelNode?"innerText":"textContent"]=val;this._set("label",val);if(_d("dojo-bidi")){this.applyTextDir(this.labelNode);}},labelType:"text",isExpandable:null,isExpanded:false,state:"NotLoaded",templateString:_1e,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){this.labelNode.setAttribute("aria-expanded",this.isExpanded);}this.setSelected(false);},_setIndentAttr:function(_27){var _28=(Math.max(_27,0)*this.tree._nodePixelIndent)+"px";_a.set(this.domNode,"backgroundPosition",_28+" 0px");_a.set(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_28);_1.forEach(this.getChildren(),function(_29){_29.set("indent",_27+1);});this._set("indent",_27);},markProcessing:function(){this.state="Loading";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(_2a){var _2b=this.tree,_2c=_2b.model;if(_2b._v10Compat&&_2a===_2c.root){_2a=null;}this._applyClassAndStyle(_2a,"icon","Icon");this._applyClassAndStyle(_2a,"label","Label");this._applyClassAndStyle(_2a,"row","Row");this.tree._startPaint(true);},_applyClassAndStyle:function(_2d,_2e,_2f){var _30="_"+_2e+"Class";var _31=_2e+"Node";var _32=this[_30];this[_30]=this.tree["get"+_2f+"Class"](_2d,this.isExpanded);_8.replace(this[_31],this[_30]||"",_32||"");_a.set(this[_31],this.tree["get"+_2f+"Style"](_2d,this.isExpanded)||{});},_updateLayout:function(){var _33=this.getParent(),_34=!_33||!_33.rowNode||_33.rowNode.style.display=="none";_8.toggle(this.domNode,"dijitTreeIsRoot",_34);_8.toggle(this.domNode,"dijitTreeIsLast",!_34&&!this.getNextSibling());},_setExpando:function(_35){var _36=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_37=["*","-","+","*"],idx=_35?0:(this.isExpandable?(this.isExpanded?1:2):3);_8.replace(this.expandoNode,_36[idx],_36);this.expandoNodeText.innerHTML=_37[idx];},expand:function(){if(this._expandDeferred){return _23(this._expandDeferred);}if(this._collapseDeferred){this._collapseDeferred.cancel();delete this._collapseDeferred;}this.isExpanded=true;this.labelNode.setAttribute("aria-expanded","true");if(this.tree.showRoot||this!==this.tree.rootNode){this.containerNode.setAttribute("role","group");}_8.add(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode&&this.tree.showRoot){this.tree.domNode.setAttribute("aria-expanded","true");}var _38=_c.wipeIn({node:this.containerNode,duration:_17.defaultDuration});var def=(this._expandDeferred=new _5(function(){_38.stop();}));_2.after(_38,"onEnd",function(){def.resolve(true);},true);_38.play();return _23(def);},collapse:function(){if(this._collapseDeferred){return _23(this._collapseDeferred);}if(this._expandDeferred){this._expandDeferred.cancel();delete this._expandDeferred;}this.isExpanded=false;this.labelNode.setAttribute("aria-expanded","false");if(this==this.tree.rootNode&&this.tree.showRoot){this.tree.domNode.setAttribute("aria-expanded","false");}_8.remove(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);var _39=_c.wipeOut({node:this.containerNode,duration:_17.defaultDuration});var def=(this._collapseDeferred=new _5(function(){_39.stop();}));_2.after(_39,"onEnd",function(){def.resolve(true);},true);_39.play();return _23(def);},indent:0,setChildItems:function(_3a){var _3b=this.tree,_3c=_3b.model,_3d=[];var _3e=_3b.focusedChild;var _3f=this.getChildren();_1.forEach(_3f,function(_40){_1a.prototype.removeChild.call(this,_40);},this);this.defer(function(){_1.forEach(_3f,function(_41){if(!_41._destroyed&&!_41.getParent()){_3b.dndController.removeTreeNode(_41);function _42(_43){var id=_3c.getIdentity(_43.item),ary=_3b._itemNodesMap[id];if(ary.length==1){delete _3b._itemNodesMap[id];}else{var _44=_1.indexOf(ary,_43);if(_44!=-1){ary.splice(_44,1);}}_1.forEach(_43.getChildren(),_42);};_42(_41);if(_3b.persist){var _45=_1.map(_41.getTreePath(),function(_46){return _3b.model.getIdentity(_46);}).join("/");for(var _47 in _3b._openedNodes){if(_47.substr(0,_45.length)==_45){delete _3b._openedNodes[_47];}}_3b._saveExpandedNodes();}if(_3b.lastFocusedChild&&!_7.isDescendant(_3b.lastFocusedChild.domNode,_3b.domNode)){delete _3b.lastFocusedChild;}if(_3e&&!_7.isDescendant(_3e.domNode,_3b.domNode)){_3b.focus();}_41.destroyRecursive();}});});this.state="Loaded";if(_3a&&_3a.length>0){this.isExpandable=true;_1.forEach(_3a,function(_48){var id=_3c.getIdentity(_48),_49=_3b._itemNodesMap[id],_4a;if(_49){for(var i=0;i<_49.length;i++){if(_49[i]&&!_49[i].getParent()){_4a=_49[i];_4a.set("indent",this.indent+1);break;}}}if(!_4a){_4a=this.tree._createTreeNode({item:_48,tree:_3b,isExpandable:_3c.mayHaveChildren(_48),label:_3b.getLabel(_48),labelType:(_3b.model&&_3b.model.labelType)||"text",tooltip:_3b.getTooltip(_48),ownerDocument:_3b.ownerDocument,dir:_3b.dir,lang:_3b.lang,textDir:_3b.textDir,indent:this.indent+1});if(_49){_49.push(_4a);}else{_3b._itemNodesMap[id]=[_4a];}}this.addChild(_4a);if(this.tree.autoExpand||this.tree._state(_4a)){_3d.push(_3b._expandNode(_4a));}},this);_1.forEach(this.getChildren(),function(_4b){_4b._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}this._updateItemClasses(this.item);var def=_6(_3d);this.tree._startPaint(def);return _23(def);},getTreePath:function(){var _4c=this;var _4d=[];while(_4c&&_4c!==this.tree.rootNode){_4d.unshift(_4c.item);_4c=_4c.getParent();}_4d.unshift(this.tree.rootNode.item);return _4d;},getIdentity:function(){return this.tree.model.getIdentity(this.item);},removeChild:function(_4e){this.inherited(arguments);var _4f=this.getChildren();if(_4f.length==0){this.isExpandable=false;this.collapse();}_1.forEach(_4f,function(_50){_50._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},setSelected:function(_51){this.labelNode.setAttribute("aria-selected",_51?"true":"false");_8.toggle(this.rowNode,"dijitTreeRowSelected",_51);},focus:function(){_15.focus(this.focusNode);}});if(_d("dojo-bidi")){_26.extend({_setTextDirAttr:function(_52){if(_52&&((this.textDir!=_52)||!this._created)){this._set("textDir",_52);this.applyTextDir(this.labelNode);_1.forEach(this.getChildren(),function(_53){_53.set("textDir",_52);},this);}}});}var _54=_4("dijit.Tree",[_18,_1d,_19,_1c],{baseClass:"dijitTree",store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:_1f,persist:false,autoExpand:false,dndController:_22,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(_55,_56){_11.publish(this.id,_10.mixin({tree:this,event:_55},_56||{}));},postMixInProperties:function(){this.tree=this;if(this.autoExpand){this.persist=false;}this._itemNodesMap={};if(!this.cookieName&&this.id){this.cookieName=this.id+"SaveStateCookie";}this.expandChildrenDeferred=new _5();this.pendingCommandsPromise=this.expandChildrenDeferred.promise;this.inherited(arguments);},postCreate:function(){this._initState();var _57=this;this.own(on(this.containerNode,on.selector(".dijitTreeNode",_12.enter),function(evt){_57._onNodeMouseEnter(_16.byNode(this),evt);}),on(this.containerNode,on.selector(".dijitTreeNode",_12.leave),function(evt){_57._onNodeMouseLeave(_16.byNode(this),evt);}),on(this.containerNode,on.selector(".dijitTreeRow",_14.press),function(evt){_57._onNodePress(_16.getEnclosingWidget(this),evt);}),on(this.containerNode,on.selector(".dijitTreeRow",_14),function(evt){_57._onClick(_16.getEnclosingWidget(this),evt);}),on(this.containerNode,on.selector(".dijitTreeRow","dblclick"),function(evt){_57._onDblClick(_16.getEnclosingWidget(this),evt);}));if(!this.model){this._store2model();}this.own(_2.after(this.model,"onChange",_10.hitch(this,"_onItemChange"),true),_2.after(this.model,"onChildrenChange",_10.hitch(this,"_onItemChildrenChange"),true),_2.after(this.model,"onDelete",_10.hitch(this,"_onItemDelete"),true));this.inherited(arguments);if(this.dndController){if(_10.isString(this.dndController)){this.dndController=_10.getObject(this.dndController);}var _58={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_58[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_58);}this._load();this.onLoadDeferred=_23(this.pendingCommandsPromise);this.onLoadDeferred.then(_10.hitch(this,"onLoad"));},_store2model:function(){this._v10Compat=true;_e.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _59={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_59.mayHaveChildren=_10.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_59.getChildren=_10.hitch(this,function(_5a,_5b,_5c){this.getItemChildren((this._v10Compat&&_5a===this.model.root)?null:_5a,_5b,_5c);});}this.model=new _21(_59);this.showRoot=Boolean(this.label);},onLoad:function(){},_load:function(){this.model.getRoot(_10.hitch(this,function(_5d){var rn=(this.rootNode=this.tree._createTreeNode({item:_5d,tree:this,isExpandable:true,label:this.label||this.getLabel(_5d),labelType:this.model.labelType||"text",textDir:this.textDir,indent:this.showRoot?0:-1}));if(!this.showRoot){rn.rowNode.style.display="none";this.domNode.setAttribute("role","presentation");this.domNode.removeAttribute("aria-expanded");this.domNode.removeAttribute("aria-multiselectable");if(this["aria-label"]){rn.containerNode.setAttribute("aria-label",this["aria-label"]);this.domNode.removeAttribute("aria-label");}else{if(this["aria-labelledby"]){rn.containerNode.setAttribute("aria-labelledby",this["aria-labelledby"]);this.domNode.removeAttribute("aria-labelledby");}}rn.labelNode.setAttribute("role","presentation");rn.labelNode.removeAttribute("aria-selected");rn.containerNode.setAttribute("role","tree");rn.containerNode.setAttribute("aria-expanded","true");rn.containerNode.setAttribute("aria-multiselectable",!this.dndController.singular);}else{this.domNode.setAttribute("aria-multiselectable",!this.dndController.singular);this.rootLoadingIndicator.style.display="none";}this.containerNode.appendChild(rn.domNode);var _5e=this.model.getIdentity(_5d);if(this._itemNodesMap[_5e]){this._itemNodesMap[_5e].push(rn);}else{this._itemNodesMap[_5e]=[rn];}rn._updateLayout();this._expandNode(rn).then(_10.hitch(this,function(){if(!this._destroyed){this.rootLoadingIndicator.style.display="none";this.expandChildrenDeferred.resolve(true);}}));}),_10.hitch(this,function(err){console.error(this,": error loading root: ",err);}));},getNodesByItem:function(_5f){if(!_5f){return [];}var _60=_10.isString(_5f)?_5f:this.model.getIdentity(_5f);return [].concat(this._itemNodesMap[_60]);},_setSelectedItemAttr:function(_61){this.set("selectedItems",[_61]);},_setSelectedItemsAttr:function(_62){var _63=this;return this.pendingCommandsPromise=this.pendingCommandsPromise.always(_10.hitch(this,function(){var _64=_1.map(_62,function(_65){return (!_65||_10.isString(_65))?_65:_63.model.getIdentity(_65);});var _66=[];_1.forEach(_64,function(id){_66=_66.concat(_63._itemNodesMap[id]||[]);});this.set("selectedNodes",_66);}));},_setPathAttr:function(_67){if(_67.length){return _23(this.set("paths",[_67]).then(function(_68){return _68[0];}));}else{return _23(this.set("paths",[]).then(function(_69){return _69[0];}));}},_setPathsAttr:function(_6a){var _6b=this;function _6c(_6d,_6e){var _6f=_6d.shift();var _70=_1.filter(_6e,function(_71){return _71.getIdentity()==_6f;})[0];if(!!_70){if(_6d.length){return _6b._expandNode(_70).then(function(){return _6c(_6d,_70.getChildren());});}else{return _70;}}else{throw new _54.PathError("Could not expand path at "+_6f);}};return _23(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){return _6(_1.map(_6a,function(_72){_72=_1.map(_72,function(_73){return _73&&_10.isObject(_73)?_6b.model.getIdentity(_73):_73;});if(_72.length){return _6c(_72,[_6b.rootNode]);}else{throw new _54.PathError("Empty path");}}));}).then(function setNodes(_74){_6b.set("selectedNodes",_74);return _6b.paths;}));},_setSelectedNodeAttr:function(_75){this.set("selectedNodes",[_75]);},_setSelectedNodesAttr:function(_76){this.dndController.setSelection(_76);},expandAll:function(){var _77=this;function _78(_79){return _77._expandNode(_79).then(function(){var _7a=_1.filter(_79.getChildren()||[],function(_7b){return _7b.isExpandable;});return _6(_1.map(_7a,_78));});};return _23(_78(this.rootNode));},collapseAll:function(){var _7c=this;function _7d(_7e){var _7f=_1.filter(_7e.getChildren()||[],function(_80){return _80.isExpandable;}),_81=_6(_1.map(_7f,_7d));if(!_7e.isExpanded||(_7e==_7c.rootNode&&!_7c.showRoot)){return _81;}else{return _81.then(function(){return _7c._collapseNode(_7e);});}};return _23(_7d(this.rootNode));},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(_82){return this.model.getLabel(_82);},getIconClass:function(_83,_84){return (!_83||this.model.mayHaveChildren(_83))?(_84?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return "";},_onDownArrow:function(evt,_85){var _86=this._getNext(_85);if(_86&&_86.isTreeNode){this.focusNode(_86);}},_onUpArrow:function(evt,_87){var _88=_87.getPreviousSibling();if(_88){_87=_88;while(_87.isExpandable&&_87.isExpanded&&_87.hasChildren()){var _89=_87.getChildren();_87=_89[_89.length-1];}}else{var _8a=_87.getParent();if(!(!this.showRoot&&_8a===this.rootNode)){_87=_8a;}}if(_87&&_87.isTreeNode){this.focusNode(_87);}},_onRightArrow:function(evt,_8b){if(_8b.isExpandable&&!_8b.isExpanded){this._expandNode(_8b);}else{if(_8b.hasChildren()){_8b=_8b.getChildren()[0];if(_8b&&_8b.isTreeNode){this.focusNode(_8b);}}}},_onLeftArrow:function(evt,_8c){if(_8c.isExpandable&&_8c.isExpanded){this._collapseNode(_8c);}else{var _8d=_8c.getParent();if(_8d&&_8d.isTreeNode&&!(!this.showRoot&&_8d===this.rootNode)){this.focusNode(_8d);}}},focusLastChild:function(){var _8e=this._getLast();if(_8e&&_8e.isTreeNode){this.focusNode(_8e);}},_getFirst:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_getLast:function(){var _8f=this.rootNode;while(_8f.isExpanded){var c=_8f.getChildren();if(!c.length){break;}_8f=c[c.length-1];}return _8f;},_getNext:function(_90){if(_90.isExpandable&&_90.isExpanded&&_90.hasChildren()){return _90.getChildren()[0];}else{while(_90&&_90.isTreeNode){var _91=_90.getNextSibling();if(_91){return _91;}_90=_90.getParent();}return null;}},childSelector:".dijitTreeRow",isExpandoNode:function(_92,_93){return _7.isDescendant(_92,_93.expandoNode)||_7.isDescendant(_92,_93.expandoNodeText);},_onNodePress:function(_94,e){this.focusNode(_94);},__click:function(_95,e,_96,_97){var _98=e.target,_99=this.isExpandoNode(_98,_95);if(_95.isExpandable&&(_96||_99)){this._onExpandoClick({node:_95});}else{this._publish("execute",{item:_95.item,node:_95,evt:e});this[_97](_95.item,_95,e);this.focusNode(_95);}e.stopPropagation();e.preventDefault();},_onClick:function(_9a,e){this.__click(_9a,e,this.openOnClick,"onClick");},_onDblClick:function(_9b,e){this.__click(_9b,e,this.openOnDblClick,"onDblClick");},_onExpandoClick:function(_9c){var _9d=_9c.node;this.focusNode(_9d);if(_9d.isExpanded){this._collapseNode(_9d);}else{this._expandNode(_9d);}},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(_9e){_e.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.","","2.0");return this._getNext(_9e);},_getRootOrFirstNode:function(){_e.deprecated(this.declaredClass+"::_getRootOrFirstNode() is deprecated. Use _getFirst() instead.","","2.0");return this._getFirst();},_collapseNode:function(_9f){if(_9f._expandNodeDeferred){delete _9f._expandNodeDeferred;}if(_9f.state=="Loading"){return;}if(_9f.isExpanded){var ret=_9f.collapse();this.onClose(_9f.item,_9f);this._state(_9f,false);this._startPaint(ret);return ret;}},_expandNode:function(_a0){if(_a0._expandNodeDeferred){return _a0._expandNodeDeferred;}var _a1=this.model,_a2=_a0.item,_a3=this;if(!_a0._loadDeferred){_a0.markProcessing();_a0._loadDeferred=new _5();_a1.getChildren(_a2,function(_a4){_a0.unmarkProcessing();_a0.setChildItems(_a4).then(function(){_a0._loadDeferred.resolve(_a4);});},function(err){console.error(_a3,": error loading "+_a0.label+" children: ",err);_a0._loadDeferred.reject(err);});}var def=_a0._loadDeferred.then(_10.hitch(this,function(){var _a5=_a0.expand();this.onOpen(_a0.item,_a0);this._state(_a0,true);return _a5;}));this._startPaint(def);return def;},focusNode:function(_a6){var _a7=this.domNode.scrollLeft;this.focusChild(_a6);this.domNode.scrollLeft=_a7;},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(_a8){var _a9=this.model,_aa=_a9.getIdentity(_a8),_ab=this._itemNodesMap[_aa];if(_ab){var _ac=this.getLabel(_a8),_ad=this.getTooltip(_a8);_1.forEach(_ab,function(_ae){_ae.set({item:_a8,label:_ac,tooltip:_ad});_ae._updateItemClasses(_a8);});}},_onItemChildrenChange:function(_af,_b0){var _b1=this.model,_b2=_b1.getIdentity(_af),_b3=this._itemNodesMap[_b2];if(_b3){_1.forEach(_b3,function(_b4){_b4.setChildItems(_b0);});}},_onItemDelete:function(_b5){var _b6=this.model,_b7=_b6.getIdentity(_b5),_b8=this._itemNodesMap[_b7];if(_b8){_1.forEach(_b8,function(_b9){this.dndController.removeTreeNode(_b9);var _ba=_b9.getParent();if(_ba){_ba.removeChild(_b9);}if(this.lastFocusedChild&&!_7.isDescendant(this.lastFocusedChild.domNode,this.domNode)){delete this.lastFocusedChild;}if(this.focusedChild&&!_7.isDescendant(this.focusedChild.domNode,this.domNode)){this.focus();}_b9.destroyRecursive();},this);delete this._itemNodesMap[_b7];}},_initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var _bb=_3(this.cookieName);if(_bb){_1.forEach(_bb.split(","),function(_bc){this._openedNodes[_bc]=true;},this);}}},_state:function(_bd,_be){if(!this.persist){return false;}var _bf=_1.map(_bd.getTreePath(),function(_c0){return this.model.getIdentity(_c0);},this).join("/");if(arguments.length===1){return this._openedNodes[_bf];}else{if(_be){this._openedNodes[_bf]=true;}else{delete this._openedNodes[_bf];}this._saveExpandedNodes();}},_saveExpandedNodes:function(){if(this.persist&&this.cookieName){var ary=[];for(var id in this._openedNodes){ary.push(id);}_3(this.cookieName,ary.join(","),{expires:365});}},destroy:function(){if(this._curSearch){this._curSearch.timer.remove();delete this._curSearch;}if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!_10.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},resize:function(_c1){if(_c1){_9.setMarginBox(this.domNode,_c1);}this._nodePixelIndent=_9.position(this.tree.indentDetector).w||this._nodePixelIndent;this.expandChildrenDeferred.then(_10.hitch(this,function(){this.rootNode.set("indent",this.showRoot?0:-1);this._adjustWidths();}));},_outstandingPaintOperations:0,_startPaint:function(p){this._outstandingPaintOperations++;if(this._adjustWidthsTimer){this._adjustWidthsTimer.remove();delete this._adjustWidthsTimer;}var oc=_10.hitch(this,function(){this._outstandingPaintOperations--;if(this._outstandingPaintOperations<=0&&!this._adjustWidthsTimer&&this._started){this._adjustWidthsTimer=this.defer("_adjustWidths");}});_13(p,oc,oc);},_adjustWidths:function(){if(this._adjustWidthsTimer){this._adjustWidthsTimer.remove();delete this._adjustWidthsTimer;}this.containerNode.style.width="auto";this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%";},_createTreeNode:function(_c2){return new _26(_c2);},focus:function(){if(this.lastFocusedChild){this.focusNode(this.lastFocusedChild);}else{this.focusFirstChild();}}});if(_d("dojo-bidi")){_54.extend({_setTextDirAttr:function(_c3){if(_c3&&this.textDir!=_c3){this._set("textDir",_c3);this.rootNode.set("textDir",_c3);}}});}_54.PathError=_b("TreePathError");_54._TreeNode=_26;return _54;});
require({cache:{"url:dijit/templates/Tree.html":"<div role=\"tree\">\n\t<div class=\"dijitInline dijitTreeIndent\" style=\"position: absolute; top: -9999px\" data-dojo-attach-point=\"indentDetector\"></div>\n\t<div class=\"dijitTreeExpando dijitTreeExpandoLoading\" data-dojo-attach-point=\"rootLoadingIndicator\"></div>\n\t<div data-dojo-attach-point=\"containerNode\" class=\"dijitTreeContainer\" role=\"presentation\">\n\t</div>\n</div>\n","url:dijit/templates/TreeNode.html":"<div class=\"dijitTreeNode\" role=\"presentation\"\n\t><div data-dojo-attach-point=\"rowNode\" class=\"dijitTreeRow\" role=\"presentation\"\n\t\t><span data-dojo-attach-point=\"expandoNode\" class=\"dijitInline dijitTreeExpando\" role=\"presentation\"></span\n\t\t><span data-dojo-attach-point=\"expandoNodeText\" class=\"dijitExpandoText\" role=\"presentation\"></span\n\t\t><span data-dojo-attach-point=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" role=\"presentation\">\n\t\t\t<span role=\"presentation\" class=\"dijitInline dijitIcon dijitTreeIcon\" data-dojo-attach-point=\"iconNode\"></span\n\t\t\t><span data-dojo-attach-point=\"labelNode,focusNode\" class=\"dijitTreeLabel\" role=\"treeitem\"\n\t\t\t\t tabindex=\"-1\" aria-selected=\"false\" id=\"${id}_label\"></span>\n\t\t</span\n\t></div>\n\t<div data-dojo-attach-point=\"containerNode\" class=\"dijitTreeNodeContainer\" role=\"presentation\"\n\t\t style=\"display: none;\" aria-labelledby=\"${id}_label\"></div>\n</div>\n"}});define("dijit/Tree",["dojo/_base/array","dojo/aspect","dojo/cookie","dojo/_base/declare","dojo/Deferred","dojo/promise/all","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/errors/create","dojo/fx","dojo/has","dojo/_base/kernel","dojo/keys","dojo/_base/lang","dojo/on","dojo/topic","dojo/touch","dojo/when","./a11yclick","./focus","./registry","./_base/manager","./_Widget","./_TemplatedMixin","./_Container","./_Contained","./_CssStateMixin","./_KeyNavMixin","dojo/text!./templates/TreeNode.html","dojo/text!./templates/Tree.html","./tree/TreeStoreModel","./tree/ForestStoreModel","./tree/_dndSelector","dojo/query!css2"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,on,_11,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22){function _23(d){return _10.delegate(d.promise||d,{addCallback:function(_24){this.then(_24);},addErrback:function(_25){this.otherwise(_25);}});};var _26=_4("dijit._TreeNode",[_18,_19,_1a,_1b,_1c],{item:null,isTreeNode:true,label:"",_setLabelAttr:function(val){this.labelNode[this.labelType=="html"?"innerHTML":"innerText" in this.labelNode?"innerText":"textContent"]=val;this._set("label",val);if(_d("dojo-bidi")){this.applyTextDir(this.labelNode);}},labelType:"text",isExpandable:null,isExpanded:false,state:"NotLoaded",templateString:_1e,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){this.labelNode.setAttribute("aria-expanded",this.isExpanded);}this.setSelected(false);},_setIndentAttr:function(_27){var _28=(Math.max(_27,0)*this.tree._nodePixelIndent)+"px";_a.set(this.domNode,"backgroundPosition",_28+" 0px");_a.set(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_28);_1.forEach(this.getChildren(),function(_29){_29.set("indent",_27+1);});this._set("indent",_27);},markProcessing:function(){this.state="Loading";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(_2a){var _2b=this.tree,_2c=_2b.model;if(_2b._v10Compat&&_2a===_2c.root){_2a=null;}this._applyClassAndStyle(_2a,"icon","Icon");this._applyClassAndStyle(_2a,"label","Label");this._applyClassAndStyle(_2a,"row","Row");this.tree._startPaint(true);},_applyClassAndStyle:function(_2d,_2e,_2f){var _30="_"+_2e+"Class";var _31=_2e+"Node";var _32=this[_30];this[_30]=this.tree["get"+_2f+"Class"](_2d,this.isExpanded);_8.replace(this[_31],this[_30]||"",_32||"");_a.set(this[_31],this.tree["get"+_2f+"Style"](_2d,this.isExpanded)||{});},_updateLayout:function(){var _33=this.getParent(),_34=!_33||!_33.rowNode||_33.rowNode.style.display=="none";_8.toggle(this.domNode,"dijitTreeIsRoot",_34);_8.toggle(this.domNode,"dijitTreeIsLast",!_34&&!this.getNextSibling());},_setExpando:function(_35){var _36=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_37=["*","-","+","*"],idx=_35?0:(this.isExpandable?(this.isExpanded?1:2):3);_8.replace(this.expandoNode,_36[idx],_36);this.expandoNodeText.innerHTML=_37[idx];},expand:function(){if(this._expandDeferred){return _23(this._expandDeferred);}if(this._collapseDeferred){this._collapseDeferred.cancel();delete this._collapseDeferred;}this.isExpanded=true;this.labelNode.setAttribute("aria-expanded","true");if(this.tree.showRoot||this!==this.tree.rootNode){this.containerNode.setAttribute("role","group");}_8.add(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode&&this.tree.showRoot){this.tree.domNode.setAttribute("aria-expanded","true");}var _38=_c.wipeIn({node:this.containerNode,duration:_17.defaultDuration});var def=(this._expandDeferred=new _5(function(){_38.stop();}));_2.after(_38,"onEnd",function(){def.resolve(true);},true);_38.play();return _23(def);},collapse:function(){if(this._collapseDeferred){return _23(this._collapseDeferred);}if(this._expandDeferred){this._expandDeferred.cancel();delete this._expandDeferred;}this.isExpanded=false;this.labelNode.setAttribute("aria-expanded","false");if(this==this.tree.rootNode&&this.tree.showRoot){this.tree.domNode.setAttribute("aria-expanded","false");}_8.remove(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);var _39=_c.wipeOut({node:this.containerNode,duration:_17.defaultDuration});var def=(this._collapseDeferred=new _5(function(){_39.stop();}));_2.after(_39,"onEnd",function(){def.resolve(true);},true);_39.play();return _23(def);},indent:0,setChildItems:function(_3a){var _3b=this.tree,_3c=_3b.model,_3d=[];var _3e=_3b.focusedChild;var _3f=this.getChildren();_1.forEach(_3f,function(_40){_1a.prototype.removeChild.call(this,_40);},this);this.defer(function(){_1.forEach(_3f,function(_41){if(!_41._destroyed&&!_41.getParent()){_3b.dndController.removeTreeNode(_41);function _42(_43){var id=_3c.getIdentity(_43.item),ary=_3b._itemNodesMap[id];if(ary.length==1){delete _3b._itemNodesMap[id];}else{var _44=_1.indexOf(ary,_43);if(_44!=-1){ary.splice(_44,1);}}_1.forEach(_43.getChildren(),_42);};_42(_41);if(_3b.persist){var _45=_1.map(_41.getTreePath(),function(_46){return _3b.model.getIdentity(_46);}).join("/");for(var _47 in _3b._openedNodes){if(_47.substr(0,_45.length)==_45){delete _3b._openedNodes[_47];}}_3b._saveExpandedNodes();}if(_3b.lastFocusedChild&&!_7.isDescendant(_3b.lastFocusedChild.domNode,_3b.domNode)){delete _3b.lastFocusedChild;}if(_3e&&!_7.isDescendant(_3e.domNode,_3b.domNode)){_3b.focus();}_41.destroyRecursive();}});});this.state="Loaded";if(_3a&&_3a.length>0){this.isExpandable=true;_1.forEach(_3a,function(_48){var id=_3c.getIdentity(_48),_49=_3b._itemNodesMap[id],_4a;if(_49){for(var i=0;i<_49.length;i++){if(_49[i]&&!_49[i].getParent()){_4a=_49[i];_4a.set("indent",this.indent+1);break;}}}if(!_4a){_4a=this.tree._createTreeNode({item:_48,tree:_3b,isExpandable:_3c.mayHaveChildren(_48),label:_3b.getLabel(_48),labelType:(_3b.model&&_3b.model.labelType)||"text",tooltip:_3b.getTooltip(_48),ownerDocument:_3b.ownerDocument,dir:_3b.dir,lang:_3b.lang,textDir:_3b.textDir,indent:this.indent+1});if(_49){_49.push(_4a);}else{_3b._itemNodesMap[id]=[_4a];}}this.addChild(_4a);if(this.tree.autoExpand||this.tree._state(_4a)){_3d.push(_3b._expandNode(_4a));}},this);_1.forEach(this.getChildren(),function(_4b){_4b._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}this._updateItemClasses(this.item);var def=_6(_3d);this.tree._startPaint(def);return _23(def);},getTreePath:function(){var _4c=this;var _4d=[];while(_4c&&_4c!==this.tree.rootNode){_4d.unshift(_4c.item);_4c=_4c.getParent();}_4d.unshift(this.tree.rootNode.item);return _4d;},getIdentity:function(){return this.tree.model.getIdentity(this.item);},removeChild:function(_4e){this.inherited(arguments);var _4f=this.getChildren();if(_4f.length==0){this.isExpandable=false;this.collapse();}_1.forEach(_4f,function(_50){_50._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},setSelected:function(_51){this.labelNode.setAttribute("aria-selected",_51?"true":"false");_8.toggle(this.rowNode,"dijitTreeRowSelected",_51);},focus:function(){_15.focus(this.focusNode);}});if(_d("dojo-bidi")){_26.extend({_setTextDirAttr:function(_52){if(_52&&((this.textDir!=_52)||!this._created)){this._set("textDir",_52);this.applyTextDir(this.labelNode);_1.forEach(this.getChildren(),function(_53){_53.set("textDir",_52);},this);}}});}var _54=_4("dijit.Tree",[_18,_1d,_19,_1c],{baseClass:"dijitTree",store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:_1f,persist:false,autoExpand:false,dndController:_22,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(_55,_56){_11.publish(this.id,_10.mixin({tree:this,event:_55},_56||{}));},postMixInProperties:function(){this.tree=this;if(this.autoExpand){this.persist=false;}this._itemNodesMap={};if(!this.cookieName&&this.id){this.cookieName=this.id+"SaveStateCookie";}this.expandChildrenDeferred=new _5();this.pendingCommandsPromise=this.expandChildrenDeferred.promise;this.inherited(arguments);},postCreate:function(){this._initState();var _57=this;this.own(on(this.containerNode,on.selector(".dijitTreeNode",_12.enter),function(evt){_57._onNodeMouseEnter(_16.byNode(this),evt);}),on(this.containerNode,on.selector(".dijitTreeNode",_12.leave),function(evt){_57._onNodeMouseLeave(_16.byNode(this),evt);}),on(this.containerNode,on.selector(".dijitTreeRow",_14.press),function(evt){_57._onNodePress(_16.getEnclosingWidget(this),evt);}),on(this.containerNode,on.selector(".dijitTreeRow",_14),function(evt){_57._onClick(_16.getEnclosingWidget(this),evt);}),on(this.containerNode,on.selector(".dijitTreeRow","dblclick"),function(evt){_57._onDblClick(_16.getEnclosingWidget(this),evt);}));if(!this.model){this._store2model();}this.own(_2.after(this.model,"onChange",_10.hitch(this,"_onItemChange"),true),_2.after(this.model,"onChildrenChange",_10.hitch(this,"_onItemChildrenChange"),true),_2.after(this.model,"onDelete",_10.hitch(this,"_onItemDelete"),true));this.inherited(arguments);if(this.dndController){if(_10.isString(this.dndController)){this.dndController=_10.getObject(this.dndController);}var _58={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_58[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_58);}this._load();this.onLoadDeferred=_23(this.pendingCommandsPromise);this.onLoadDeferred.then(_10.hitch(this,"onLoad"));},_store2model:function(){this._v10Compat=true;_e.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _59={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_59.mayHaveChildren=_10.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_59.getChildren=_10.hitch(this,function(_5a,_5b,_5c){this.getItemChildren((this._v10Compat&&_5a===this.model.root)?null:_5a,_5b,_5c);});}this.model=new _21(_59);this.showRoot=Boolean(this.label);},onLoad:function(){},_load:function(){this.model.getRoot(_10.hitch(this,function(_5d){var rn=(this.rootNode=this.tree._createTreeNode({item:_5d,tree:this,isExpandable:true,label:this.label||this.getLabel(_5d),labelType:this.model.labelType||"text",textDir:this.textDir,indent:this.showRoot?0:-1}));if(!this.showRoot){rn.rowNode.style.display="none";this.domNode.setAttribute("role","presentation");this.domNode.removeAttribute("aria-expanded");this.domNode.removeAttribute("aria-multiselectable");if(this["aria-label"]){rn.containerNode.setAttribute("aria-label",this["aria-label"]);this.domNode.removeAttribute("aria-label");}else{if(this["aria-labelledby"]){rn.containerNode.setAttribute("aria-labelledby",this["aria-labelledby"]);this.domNode.removeAttribute("aria-labelledby");}}rn.labelNode.setAttribute("role","presentation");rn.labelNode.removeAttribute("aria-selected");rn.containerNode.setAttribute("role","tree");rn.containerNode.setAttribute("aria-expanded","true");rn.containerNode.setAttribute("aria-multiselectable",!this.dndController.singular);}else{this.domNode.setAttribute("aria-multiselectable",!this.dndController.singular);this.rootLoadingIndicator.style.display="none";}this.containerNode.appendChild(rn.domNode);var _5e=this.model.getIdentity(_5d);if(this._itemNodesMap[_5e]){this._itemNodesMap[_5e].push(rn);}else{this._itemNodesMap[_5e]=[rn];}rn._updateLayout();this._expandNode(rn).then(_10.hitch(this,function(){if(!this._destroyed){this.rootLoadingIndicator.style.display="none";this.expandChildrenDeferred.resolve(true);}}));}),_10.hitch(this,function(err){console.error(this,": error loading root: ",err);}));},getNodesByItem:function(_5f){if(!_5f){return [];}var _60=_10.isString(_5f)?_5f:this.model.getIdentity(_5f);return [].concat(this._itemNodesMap[_60]);},_setSelectedItemAttr:function(_61){this.set("selectedItems",[_61]);},_setSelectedItemsAttr:function(_62){var _63=this;return this.pendingCommandsPromise=this.pendingCommandsPromise.always(_10.hitch(this,function(){var _64=_1.map(_62,function(_65){return (!_65||_10.isString(_65))?_65:_63.model.getIdentity(_65);});var _66=[];_1.forEach(_64,function(id){_66=_66.concat(_63._itemNodesMap[id]||[]);});this.set("selectedNodes",_66);}));},_setPathAttr:function(_67){if(_67.length){return _23(this.set("paths",[_67]).then(function(_68){return _68[0];}));}else{return _23(this.set("paths",[]).then(function(_69){return _69[0];}));}},_setPathsAttr:function(_6a){var _6b=this;function _6c(_6d,_6e){var _6f=_6d.shift();var _70=_1.filter(_6e,function(_71){return _71.getIdentity()==_6f;})[0];if(!!_70){if(_6d.length){return _6b._expandNode(_70).then(function(){return _6c(_6d,_70.getChildren());});}else{return _70;}}else{throw new _54.PathError("Could not expand path at "+_6f);}};return _23(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){return _6(_1.map(_6a,function(_72){_72=_1.map(_72,function(_73){return _73&&_10.isObject(_73)?_6b.model.getIdentity(_73):_73;});if(_72.length){return _6c(_72,[_6b.rootNode]);}else{throw new _54.PathError("Empty path");}}));}).then(function setNodes(_74){_6b.set("selectedNodes",_74);return _6b.paths;}));},_setSelectedNodeAttr:function(_75){this.set("selectedNodes",[_75]);},_setSelectedNodesAttr:function(_76){this.dndController.setSelection(_76);},expandAll:function(){var _77=this;function _78(_79){return _77._expandNode(_79).then(function(){var _7a=_1.filter(_79.getChildren()||[],function(_7b){return _7b.isExpandable;});return _6(_1.map(_7a,_78));});};return _23(_78(this.rootNode));},collapseAll:function(){var _7c=this;function _7d(_7e){var _7f=_1.filter(_7e.getChildren()||[],function(_80){return _80.isExpandable;}),_81=_6(_1.map(_7f,_7d));if(!_7e.isExpanded||(_7e==_7c.rootNode&&!_7c.showRoot)){return _81;}else{return _81.then(function(){return _7c._collapseNode(_7e);});}};return _23(_7d(this.rootNode));},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(_82){return this.model.getLabel(_82);},getIconClass:function(_83,_84){return (!_83||this.model.mayHaveChildren(_83))?(_84?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return "";},_onDownArrow:function(evt,_85){var _86=this._getNext(_85);if(_86&&_86.isTreeNode){this.focusNode(_86);}},_onUpArrow:function(evt,_87){var _88=_87.getPreviousSibling();if(_88){_87=_88;while(_87.isExpandable&&_87.isExpanded&&_87.hasChildren()){var _89=_87.getChildren();_87=_89[_89.length-1];}}else{var _8a=_87.getParent();if(!(!this.showRoot&&_8a===this.rootNode)){_87=_8a;}}if(_87&&_87.isTreeNode){this.focusNode(_87);}},_onRightArrow:function(evt,_8b){if(_8b.isExpandable&&!_8b.isExpanded){this._expandNode(_8b);}else{if(_8b.hasChildren()){_8b=_8b.getChildren()[0];if(_8b&&_8b.isTreeNode){this.focusNode(_8b);}}}},_onLeftArrow:function(evt,_8c){if(_8c.isExpandable&&_8c.isExpanded){this._collapseNode(_8c);}else{var _8d=_8c.getParent();if(_8d&&_8d.isTreeNode&&!(!this.showRoot&&_8d===this.rootNode)){this.focusNode(_8d);}}},focusLastChild:function(){var _8e=this._getLast();if(_8e&&_8e.isTreeNode){this.focusNode(_8e);}},_getFirst:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_getLast:function(){var _8f=this.rootNode;while(_8f.isExpanded){var c=_8f.getChildren();if(!c.length){break;}_8f=c[c.length-1];}return _8f;},_getNext:function(_90){if(_90.isExpandable&&_90.isExpanded&&_90.hasChildren()){return _90.getChildren()[0];}else{while(_90&&_90.isTreeNode){var _91=_90.getNextSibling();if(_91){return _91;}_90=_90.getParent();}return null;}},childSelector:".dijitTreeRow",isExpandoNode:function(_92,_93){return _7.isDescendant(_92,_93.expandoNode)||_7.isDescendant(_92,_93.expandoNodeText);},_onNodePress:function(_94,e){this.focusNode(_94);},__click:function(_95,e,_96,_97){var _98=e.target,_99=this.isExpandoNode(_98,_95);if(_95.isExpandable&&(_96||_99)){this._onExpandoClick({node:_95});}else{this._publish("execute",{item:_95.item,node:_95,evt:e});this[_97](_95.item,_95,e);this.focusNode(_95);}e.stopPropagation();e.preventDefault();},_onClick:function(_9a,e){this.__click(_9a,e,this.openOnClick,"onClick");},_onDblClick:function(_9b,e){this.__click(_9b,e,this.openOnDblClick,"onDblClick");},_onExpandoClick:function(_9c){var _9d=_9c.node;this.focusNode(_9d);if(_9d.isExpanded){this._collapseNode(_9d);}else{this._expandNode(_9d);}},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(_9e){_e.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.","","2.0");return this._getNext(_9e);},_getRootOrFirstNode:function(){_e.deprecated(this.declaredClass+"::_getRootOrFirstNode() is deprecated. Use _getFirst() instead.","","2.0");return this._getFirst();},_collapseNode:function(_9f){if(_9f._expandNodeDeferred){delete _9f._expandNodeDeferred;}if(_9f.state=="Loading"){return;}if(_9f.isExpanded){var ret=_9f.collapse();this.onClose(_9f.item,_9f);this._state(_9f,false);this._startPaint(ret);return ret;}},_expandNode:function(_a0){if(_a0._expandNodeDeferred){return _a0._expandNodeDeferred;}var _a1=this.model,_a2=_a0.item,_a3=this;if(!_a0._loadDeferred){_a0.markProcessing();_a0._loadDeferred=new _5();_a1.getChildren(_a2,function(_a4){_a0.unmarkProcessing();_a0.setChildItems(_a4).then(function(){_a0._loadDeferred.resolve(_a4);});},function(err){console.error(_a3,": error loading "+_a0.label+" children: ",err);_a0._loadDeferred.reject(err);});}var def=_a0._loadDeferred.then(_10.hitch(this,function(){var _a5=_a0.expand();this.onOpen(_a0.item,_a0);this._state(_a0,true);return _a5;}));this._startPaint(def);return def;},focusNode:function(_a6){var tmp=[];for(var _a7=this.domNode;_a7&&_a7.tagName&&_a7.tagName.toUpperCase()!=="IFRAME";_a7=_a7.parentNode){tmp.push({domNode:_a7.contentWindow||_a7,scrollLeft:_a7.scrollLeft||0,scrollTop:_a7.scrollTop||0});}this.focusChild(_a6);this.defer(function(){for(var i=0,max=tmp.length;i<max;i++){tmp[i].domNode.scrollLeft=tmp[i].scrollLeft;tmp[i].domNode.scrollTop=tmp[i].scrollTop;}},0);},_onNodeMouseEnter:function(){},_onNodeMouseLeave:function(){},_onItemChange:function(_a8){var _a9=this.model,_aa=_a9.getIdentity(_a8),_ab=this._itemNodesMap[_aa];if(_ab){var _ac=this.getLabel(_a8),_ad=this.getTooltip(_a8);_1.forEach(_ab,function(_ae){_ae.set({item:_a8,label:_ac,tooltip:_ad});_ae._updateItemClasses(_a8);});}},_onItemChildrenChange:function(_af,_b0){var _b1=this.model,_b2=_b1.getIdentity(_af),_b3=this._itemNodesMap[_b2];if(_b3){_1.forEach(_b3,function(_b4){_b4.setChildItems(_b0);});}},_onItemDelete:function(_b5){var _b6=this.model,_b7=_b6.getIdentity(_b5),_b8=this._itemNodesMap[_b7];if(_b8){_1.forEach(_b8,function(_b9){this.dndController.removeTreeNode(_b9);var _ba=_b9.getParent();if(_ba){_ba.removeChild(_b9);}if(this.lastFocusedChild&&!_7.isDescendant(this.lastFocusedChild.domNode,this.domNode)){delete this.lastFocusedChild;}if(this.focusedChild&&!_7.isDescendant(this.focusedChild.domNode,this.domNode)){this.focus();}_b9.destroyRecursive();},this);delete this._itemNodesMap[_b7];}},_initState:function(){this._openedNodes={};if(this.persist&&this.cookieName){var _bb=_3(this.cookieName);if(_bb){_1.forEach(_bb.split(","),function(_bc){this._openedNodes[_bc]=true;},this);}}},_state:function(_bd,_be){if(!this.persist){return false;}var _bf=_1.map(_bd.getTreePath(),function(_c0){return this.model.getIdentity(_c0);},this).join("/");if(arguments.length===1){return this._openedNodes[_bf];}else{if(_be){this._openedNodes[_bf]=true;}else{delete this._openedNodes[_bf];}this._saveExpandedNodes();}},_saveExpandedNodes:function(){if(this.persist&&this.cookieName){var ary=[];for(var id in this._openedNodes){ary.push(id);}_3(this.cookieName,ary.join(","),{expires:365});}},destroy:function(){if(this._curSearch){this._curSearch.timer.remove();delete this._curSearch;}if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!_10.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},resize:function(_c1){if(_c1){_9.setMarginBox(this.domNode,_c1);}this._nodePixelIndent=_9.position(this.tree.indentDetector).w||this._nodePixelIndent;this.expandChildrenDeferred.then(_10.hitch(this,function(){this.rootNode.set("indent",this.showRoot?0:-1);this._adjustWidths();}));},_outstandingPaintOperations:0,_startPaint:function(p){this._outstandingPaintOperations++;if(this._adjustWidthsTimer){this._adjustWidthsTimer.remove();delete this._adjustWidthsTimer;}var oc=_10.hitch(this,function(){this._outstandingPaintOperations--;if(this._outstandingPaintOperations<=0&&!this._adjustWidthsTimer&&this._started){this._adjustWidthsTimer=this.defer("_adjustWidths");}});_13(p,oc,oc);},_adjustWidths:function(){if(this._adjustWidthsTimer){this._adjustWidthsTimer.remove();delete this._adjustWidthsTimer;}this.containerNode.style.width="auto";this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%";},_createTreeNode:function(_c2){return new _26(_c2);},focus:function(){if(this.lastFocusedChild){this.focusNode(this.lastFocusedChild);}else{this.focusFirstChild();}}});if(_d("dojo-bidi")){_54.extend({_setTextDirAttr:function(_c3){if(_c3&&this.textDir!=_c3){this._set("textDir",_c3);this.rootNode.set("textDir",_c3);}}});}_54.PathError=_b("TreePathError");_54._TreeNode=_26;return _54;});

2
lib/dijit/_HasDropDown.js

@ -1,2 +1,2 @@
//>>built
define("dijit/_HasDropDown",["dojo/_base/declare","dojo/_base/Deferred","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","dojo/touch","./registry","./focus","./popup","./_FocusMixin"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,on,_b,_c,_d,_e,_f){return _1("dijit._HasDropDown",_f,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}if(e.type!="MSPointerDown"&&e.type!="pointerdown"){e.preventDefault();}this.own(on.once(this.ownerDocument,_b.release,_a.hitch(this,"_onDropDownMouseUp")));this.toggleDropDown();},_onDropDownMouseUp:function(e){var _10=this.dropDown,_11=false;if(e&&this._opened){var c=_6.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_11){if(_5.contains(t,"dijitPopup")){_11=true;}else{t=t.parentNode;}}if(_11){t=e.target;if(_10.onItemClick){var _12;while(t&&!(_12=_c.byNode(t))){t=t.parentNode;}if(_12&&_12.onClick&&_12.getParent){_12.getParent().onItemClick(_12,e);}}return;}}}if(this._opened){if(_10.focus&&(_10.autoFocus!==false||(e.type=="mouseup"&&!this.hovering))){this._focusDropDownTimer=this.defer(function(){_10.focus();delete this._focusDropDownTimer;});}}else{if(this.focus){this.defer("focus");}}},_onDropDownClick:function(e){if(this._stopClickEvents){e.stopPropagation();e.preventDefault();}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _13={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";_5.add(this._arrowWrapperNode||this._buttonNode,"dijit"+_13+"ArrowButton");},postCreate:function(){this.inherited(arguments);var _14=this.focusNode||this.domNode;this.own(on(this._buttonNode,_b.press,_a.hitch(this,"_onDropDownMouseDown")),on(this._buttonNode,"click",_a.hitch(this,"_onDropDownClick")),on(_14,"keydown",_a.hitch(this,"_onKey")),on(_14,"keyup",_a.hitch(this,"_onKeyUp")));},destroy:function(){if(this._opened){this.closeDropDown(true);}if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_15=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){e.stopPropagation();e.preventDefault();return;}}if(d&&this._opened&&e.keyCode==_9.ESCAPE){this.closeDropDown();e.stopPropagation();e.preventDefault();}else{if(!this._opened&&(e.keyCode==_9.DOWN_ARROW||((e.keyCode==_9.ENTER||(e.keyCode==_9.SPACE&&(!this._searchTimer||(e.ctrlKey||e.altKey||e.metaKey))))&&((_15.tagName||"").toLowerCase()!=="input"||(_15.type&&_15.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;e.stopPropagation();e.preventDefault();}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){this.defer(_a.hitch(d,"focus"),1);}}},_onBlur:function(){this.closeDropDown(false);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_16){_16();},loadAndOpenDropDown:function(){var d=new _2(),_17=_a.hitch(this,function(){this.openDropDown();d.resolve(this.dropDown);});if(!this.isLoaded()){this.loadDropDown(_17);}else{_17();}return d;},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){this.loadAndOpenDropDown();}else{this.closeDropDown(true);}},openDropDown:function(){var _18=this.dropDown,_19=_18.domNode,_1a=this._aroundNode||this.domNode,_1b=this;var _1c=_e.open({parent:this,popup:_18,around:_1a,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){_1b.closeDropDown(true);},onCancel:function(){_1b.closeDropDown(true);},onClose:function(){_4.set(_1b._popupStateNode,"popupActive",false);_5.remove(_1b._popupStateNode,"dijitHasDropDownOpen");_1b._set("_opened",false);}});if(this.forceWidth||(this.autoWidth&&_1a.offsetWidth>_18._popupWrapper.offsetWidth)){var _1d=_1a.offsetWidth-_18._popupWrapper.offsetWidth;var _1e={w:_18.domNode.offsetWidth+_1d};this._origStyle=_19.style.cssText;if(_a.isFunction(_18.resize)){_18.resize(_1e);}else{_6.setMarginBox(_19,_1e);}if(_1c.corner[1]=="R"){_18._popupWrapper.style.left=(_18._popupWrapper.style.left.replace("px","")-_1d)+"px";}}_4.set(this._popupStateNode,"popupActive","true");_5.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",true);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",_18.id);if(_19.getAttribute("role")!=="presentation"&&!_19.getAttribute("aria-labelledby")){_19.setAttribute("aria-labelledby",this.id);}return _1c;},closeDropDown:function(_1f){if(this._focusDropDownTimer){this._focusDropDownTimer.remove();delete this._focusDropDownTimer;}if(this._opened){this._popupStateNode.setAttribute("aria-expanded","false");if(_1f&&this.focus){this.focus();}_e.close(this.dropDown);this._opened=false;}if(this._origStyle){this.dropDown.domNode.style.cssText=this._origStyle;delete this._origStyle;}}});});
define("dijit/_HasDropDown",["dojo/_base/declare","dojo/_base/Deferred","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","dojo/touch","./registry","./focus","./popup","./_FocusMixin"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,on,_b,_c,_d,_e,_f){return _1("dijit._HasDropDown",_f,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:-1,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}if(e.type!="MSPointerDown"){e.preventDefault();}this.own(on.once(this.ownerDocument,_b.release,_a.hitch(this,"_onDropDownMouseUp")));this.toggleDropDown();},_onDropDownMouseUp:function(e){var _10=this.dropDown,_11=false;if(e&&this._opened){var c=_6.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_11){if(_5.contains(t,"dijitPopup")){_11=true;}else{t=t.parentNode;}}if(_11){t=e.target;if(_10.onItemClick){var _12;while(t&&!(_12=_c.byNode(t))){t=t.parentNode;}if(_12&&_12.onClick&&_12.getParent){_12.getParent().onItemClick(_12,e);}}return;}}}if(this._opened){if(_10.focus&&(_10.autoFocus!==false||(e.type=="mouseup"&&!this.hovering))){this._focusDropDownTimer=this.defer(function(){_10.focus();delete this._focusDropDownTimer;});}}else{if(this.focus){this.defer("focus");}}},_onDropDownClick:function(e){if(this._stopClickEvents){e.stopPropagation();e.preventDefault();}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _13={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";_5.add(this._arrowWrapperNode||this._buttonNode,"dijit"+_13+"ArrowButton");},postCreate:function(){this.inherited(arguments);var _14=this.focusNode||this.domNode;this.own(on(this._buttonNode,_b.press,_a.hitch(this,"_onDropDownMouseDown")),on(this._buttonNode,"click",_a.hitch(this,"_onDropDownClick")),on(_14,"keydown",_a.hitch(this,"_onKey")),on(_14,"keyup",_a.hitch(this,"_onKeyUp")));},destroy:function(){if(this._opened){this.closeDropDown(true);}if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_15=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){e.stopPropagation();e.preventDefault();return;}}if(d&&this._opened&&e.keyCode==_9.ESCAPE){this.closeDropDown();e.stopPropagation();e.preventDefault();}else{if(!this._opened&&(e.keyCode==_9.DOWN_ARROW||((e.keyCode==_9.ENTER||(e.keyCode==_9.SPACE&&(!this._searchTimer||(e.ctrlKey||e.altKey||e.metaKey))))&&((_15.tagName||"").toLowerCase()!=="input"||(_15.type&&_15.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;e.stopPropagation();e.preventDefault();}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){this.defer(_a.hitch(d,"focus"),1);}}},_onBlur:function(){this.closeDropDown(false);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_16){_16();},loadAndOpenDropDown:function(){var d=new _2(),_17=_a.hitch(this,function(){this.openDropDown();d.resolve(this.dropDown);});if(!this.isLoaded()){this.loadDropDown(_17);}else{_17();}return d;},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){this.loadAndOpenDropDown();}else{this.closeDropDown(true);}},openDropDown:function(){var _18=this.dropDown,_19=_18.domNode,_1a=this._aroundNode||this.domNode,_1b=this;var _1c=_e.open({parent:this,popup:_18,around:_1a,orient:this.dropDownPosition,maxHeight:this.maxHeight,onExecute:function(){_1b.closeDropDown(true);},onCancel:function(){_1b.closeDropDown(true);},onClose:function(){_4.set(_1b._popupStateNode,"popupActive",false);_5.remove(_1b._popupStateNode,"dijitHasDropDownOpen");_1b._set("_opened",false);}});if(this.forceWidth||(this.autoWidth&&_1a.offsetWidth>_18._popupWrapper.offsetWidth)){var _1d=_1a.offsetWidth-_18._popupWrapper.offsetWidth;var _1e={w:_18.domNode.offsetWidth+_1d};this._origStyle=_19.style.cssText;if(_a.isFunction(_18.resize)){_18.resize(_1e);}else{_6.setMarginBox(_19,_1e);}if(_1c.corner[1]=="R"){_18._popupWrapper.style.left=(_18._popupWrapper.style.left.replace("px","")-_1d)+"px";}}_4.set(this._popupStateNode,"popupActive","true");_5.add(this._popupStateNode,"dijitHasDropDownOpen");this._set("_opened",true);this._popupStateNode.setAttribute("aria-expanded","true");this._popupStateNode.setAttribute("aria-owns",_18.id);if(_19.getAttribute("role")!=="presentation"&&!_19.getAttribute("aria-labelledby")){_19.setAttribute("aria-labelledby",this.id);}return _1c;},closeDropDown:function(_1f){if(this._focusDropDownTimer){this._focusDropDownTimer.remove();delete this._focusDropDownTimer;}if(this._opened){this._popupStateNode.setAttribute("aria-expanded","false");if(_1f&&this.focus){this.focus();}_e.close(this.dropDown);this._opened=false;}if(this._origStyle){this.dropDown.domNode.style.cssText=this._origStyle;delete this._origStyle;}}});});

2
lib/dijit/_WidgetBase.js

@ -1,2 +1,2 @@
//>>built
define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","dojo/has!dojo-bidi?./_BidiMixin","./registry"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,on,_10,_11,_12,win,_13,_14,_15){_d.add("dijit-legacy-requires",!_e.isAsync);_d.add("dojo-bidi",false);if(_d("dijit-legacy-requires"))