|
|
10 |
__coverage__['build/widget-stdmod/widget-stdmod.js'] = {"path":"build/widget-stdmod/widget-stdmod.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0,0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":44}}},"2":{"name":"StdMod","line":62,"loc":{"start":{"line":62,"column":4},"end":{"line":62,"column":28}}},"3":{"name":"(anonymous_3)","line":194,"loc":{"start":{"line":194,"column":23},"end":{"line":194,"column":37}}},"4":{"name":"(anonymous_4)","line":208,"loc":{"start":{"line":208,"column":23},"end":{"line":208,"column":44}}},"5":{"name":"(anonymous_5)","line":212,"loc":{"start":{"line":212,"column":21},"end":{"line":212,"column":42}}},"6":{"name":"(anonymous_6)","line":216,"loc":{"start":{"line":216,"column":24},"end":{"line":216,"column":45}}},"7":{"name":"(anonymous_7)","line":268,"loc":{"start":{"line":268,"column":24},"end":{"line":268,"column":35}}},"8":{"name":"(anonymous_8)","line":295,"loc":{"start":{"line":295,"column":26},"end":{"line":295,"column":37}}},"9":{"name":"(anonymous_9)","line":306,"loc":{"start":{"line":306,"column":32},"end":{"line":306,"column":43}}},"10":{"name":"(anonymous_10)","line":322,"loc":{"start":{"line":322,"column":24},"end":{"line":322,"column":35}}},"11":{"name":"(anonymous_11)","line":340,"loc":{"start":{"line":340,"column":29},"end":{"line":340,"column":41}}},"12":{"name":"(anonymous_12)","line":354,"loc":{"start":{"line":354,"column":27},"end":{"line":354,"column":39}}},"13":{"name":"(anonymous_13)","line":368,"loc":{"start":{"line":368,"column":29},"end":{"line":368,"column":41}}},"14":{"name":"(anonymous_14)","line":382,"loc":{"start":{"line":382,"column":32},"end":{"line":382,"column":45}}},"15":{"name":"(anonymous_15)","line":396,"loc":{"start":{"line":396,"column":30},"end":{"line":396,"column":44}}},"16":{"name":"(anonymous_16)","line":409,"loc":{"start":{"line":409,"column":27},"end":{"line":409,"column":49}}},"17":{"name":"(anonymous_17)","line":432,"loc":{"start":{"line":432,"column":22},"end":{"line":432,"column":33}}},"18":{"name":"(anonymous_18)","line":454,"loc":{"start":{"line":454,"column":23},"end":{"line":454,"column":57}}},"19":{"name":"(anonymous_19)","line":476,"loc":{"start":{"line":476,"column":24},"end":{"line":476,"column":42}}},"20":{"name":"(anonymous_20)","line":498,"loc":{"start":{"line":498,"column":23},"end":{"line":498,"column":41}}},"21":{"name":"(anonymous_21)","line":515,"loc":{"start":{"line":515,"column":31},"end":{"line":515,"column":74}}},"22":{"name":"(anonymous_22)","line":543,"loc":{"start":{"line":543,"column":29},"end":{"line":543,"column":47}}},"23":{"name":"(anonymous_23)","line":560,"loc":{"start":{"line":560,"column":28},"end":{"line":560,"column":60}}},"24":{"name":"(anonymous_24)","line":586,"loc":{"start":{"line":586,"column":28},"end":{"line":586,"column":43}}},"25":{"name":"(anonymous_25)","line":609,"loc":{"start":{"line":609,"column":28},"end":{"line":609,"column":46}}},"26":{"name":"(anonymous_26)","line":622,"loc":{"start":{"line":622,"column":27},"end":{"line":622,"column":45}}},"27":{"name":"(anonymous_27)","line":649,"loc":{"start":{"line":649,"column":35},"end":{"line":649,"column":66}}},"28":{"name":"(anonymous_28)","line":666,"loc":{"start":{"line":666,"column":28},"end":{"line":666,"column":46}}},"29":{"name":"(anonymous_29)","line":682,"loc":{"start":{"line":682,"column":27},"end":{"line":682,"column":61}}},"30":{"name":"(anonymous_30)","line":704,"loc":{"start":{"line":704,"column":24},"end":{"line":704,"column":55}}},"31":{"name":"(anonymous_31)","line":731,"loc":{"start":{"line":731,"column":21},"end":{"line":731,"column":36}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":779,"column":53}},"2":{"start":{"line":8,"column":4},"end":{"line":49,"column":29}},"3":{"start":{"line":62,"column":4},"end":{"line":69,"column":5}},"4":{"start":{"line":64,"column":8},"end":{"line":64,"column":49}},"5":{"start":{"line":66,"column":8},"end":{"line":66,"column":55}},"6":{"start":{"line":67,"column":8},"end":{"line":67,"column":51}},"7":{"start":{"line":68,"column":8},"end":{"line":68,"column":51}},"8":{"start":{"line":78,"column":4},"end":{"line":78,"column":27}},"9":{"start":{"line":87,"column":4},"end":{"line":87,"column":23}},"10":{"start":{"line":96,"column":4},"end":{"line":96,"column":27}},"11":{"start":{"line":108,"column":4},"end":{"line":108,"column":27}},"12":{"start":{"line":120,"column":4},"end":{"line":120,"column":29}},"13":{"start":{"line":131,"column":4},"end":{"line":131,"column":31}},"14":{"start":{"line":133,"column":4},"end":{"line":139,"column":49}},"15":{"start":{"line":149,"column":4},"end":{"line":198,"column":6}},"16":{"start":{"line":195,"column":17},"end":{"line":195,"column":54}},"17":{"start":{"line":207,"column":4},"end":{"line":219,"column":6}},"18":{"start":{"line":209,"column":12},"end":{"line":209,"column":53}},"19":{"start":{"line":213,"column":12},"end":{"line":213,"column":51}},"20":{"start":{"line":217,"column":12},"end":{"line":217,"column":53}},"21":{"start":{"line":230,"column":4},"end":{"line":234,"column":6}},"22":{"start":{"line":251,"column":4},"end":{"line":255,"column":6}},"23":{"start":{"line":257,"column":4},"end":{"line":774,"column":6}},"24":{"start":{"line":269,"column":12},"end":{"line":269,"column":50}},"25":{"start":{"line":271,"column":12},"end":{"line":273,"column":13}},"26":{"start":{"line":272,"column":16},"end":{"line":272,"column":72}},"27":{"start":{"line":275,"column":12},"end":{"line":277,"column":13}},"28":{"start":{"line":276,"column":16},"end":{"line":276,"column":68}},"29":{"start":{"line":279,"column":12},"end":{"line":281,"column":13}},"30":{"start":{"line":280,"column":16},"end":{"line":280,"column":72}},"31":{"start":{"line":283,"column":12},"end":{"line":283,"column":57}},"32":{"start":{"line":296,"column":12},"end":{"line":296,"column":67}},"33":{"start":{"line":297,"column":12},"end":{"line":297,"column":41}},"34":{"start":{"line":301,"column":12},"end":{"line":301,"column":62}},"35":{"start":{"line":302,"column":12},"end":{"line":302,"column":58}},"36":{"start":{"line":303,"column":12},"end":{"line":303,"column":62}},"37":{"start":{"line":307,"column":12},"end":{"line":307,"column":88}},"38":{"start":{"line":307,"column":55},"end":{"line":307,"column":86}},"39":{"start":{"line":308,"column":12},"end":{"line":308,"column":84}},"40":{"start":{"line":308,"column":53},"end":{"line":308,"column":82}},"41":{"start":{"line":309,"column":12},"end":{"line":309,"column":88}},"42":{"start":{"line":309,"column":55},"end":{"line":309,"column":86}},"43":{"start":{"line":327,"column":12},"end":{"line":327,"column":70}},"44":{"start":{"line":328,"column":12},"end":{"line":328,"column":55}},"45":{"start":{"line":329,"column":12},"end":{"line":329,"column":56}},"46":{"start":{"line":341,"column":12},"end":{"line":343,"column":13}},"47":{"start":{"line":342,"column":16},"end":{"line":342,"column":74}},"48":{"start":{"line":355,"column":12},"end":{"line":357,"column":13}},"49":{"start":{"line":356,"column":16},"end":{"line":356,"column":72}},"50":{"start":{"line":369,"column":12},"end":{"line":371,"column":13}},"51":{"start":{"line":370,"column":16},"end":{"line":370,"column":74}},"52":{"start":{"line":383,"column":12},"end":{"line":383,"column":44}},"53":{"start":{"line":397,"column":12},"end":{"line":397,"column":94}},"54":{"start":{"line":410,"column":12},"end":{"line":410,"column":59}},"55":{"start":{"line":411,"column":12},"end":{"line":411,"column":46}},"56":{"start":{"line":413,"column":12},"end":{"line":415,"column":13}},"57":{"start":{"line":414,"column":16},"end":{"line":414,"column":49}},"58":{"start":{"line":417,"column":12},"end":{"line":419,"column":13}},"59":{"start":{"line":418,"column":16},"end":{"line":418,"column":46}},"60":{"start":{"line":421,"column":12},"end":{"line":421,"column":31}},"61":{"start":{"line":433,"column":12},"end":{"line":438,"column":13}},"62":{"start":{"line":434,"column":16},"end":{"line":434,"column":46}},"63":{"start":{"line":435,"column":16},"end":{"line":437,"column":17}},"64":{"start":{"line":436,"column":20},"end":{"line":436,"column":56}},"65":{"start":{"line":456,"column":12},"end":{"line":464,"column":13}},"66":{"start":{"line":457,"column":16},"end":{"line":457,"column":61}},"67":{"start":{"line":459,"column":16},"end":{"line":459,"column":61}},"68":{"start":{"line":461,"column":16},"end":{"line":461,"column":94}},"69":{"start":{"line":463,"column":16},"end":{"line":463,"column":43}},"70":{"start":{"line":465,"column":12},"end":{"line":465,"column":37}},"71":{"start":{"line":478,"column":12},"end":{"line":479,"column":63}},"72":{"start":{"line":481,"column":12},"end":{"line":483,"column":13}},"73":{"start":{"line":482,"column":16},"end":{"line":482,"column":63}},"74":{"start":{"line":485,"column":12},"end":{"line":485,"column":72}},"75":{"start":{"line":487,"column":12},"end":{"line":487,"column":54}},"76":{"start":{"line":488,"column":12},"end":{"line":488,"column":47}},"77":{"start":{"line":499,"column":12},"end":{"line":499,"column":58}},"78":{"start":{"line":500,"column":12},"end":{"line":503,"column":13}},"79":{"start":{"line":501,"column":16},"end":{"line":501,"column":41}},"80":{"start":{"line":502,"column":16},"end":{"line":502,"column":51}},"81":{"start":{"line":516,"column":12},"end":{"line":516,"column":49}},"82":{"start":{"line":518,"column":12},"end":{"line":531,"column":13}},"83":{"start":{"line":519,"column":16},"end":{"line":519,"column":52}},"84":{"start":{"line":521,"column":16},"end":{"line":530,"column":17}},"85":{"start":{"line":522,"column":20},"end":{"line":522,"column":61}},"86":{"start":{"line":524,"column":20},"end":{"line":524,"column":64}},"87":{"start":{"line":525,"column":20},"end":{"line":529,"column":21}},"88":{"start":{"line":526,"column":24},"end":{"line":526,"column":69}},"89":{"start":{"line":528,"column":24},"end":{"line":528,"column":60}},"90":{"start":{"line":544,"column":12},"end":{"line":544,"column":96}},"91":{"start":{"line":563,"column":12},"end":{"line":572,"column":13}},"92":{"start":{"line":565,"column":20},"end":{"line":565,"column":30}},"93":{"start":{"line":566,"column":20},"end":{"line":566,"column":26}},"94":{"start":{"line":568,"column":20},"end":{"line":568,"column":38}},"95":{"start":{"line":569,"column":20},"end":{"line":569,"column":26}},"96":{"start":{"line":571,"column":20},"end":{"line":571,"column":43}},"97":{"start":{"line":574,"column":12},"end":{"line":574,"column":41}},"98":{"start":{"line":587,"column":12},"end":{"line":588,"column":49}},"99":{"start":{"line":590,"column":12},"end":{"line":595,"column":13}},"100":{"start":{"line":591,"column":16},"end":{"line":591,"column":56}},"101":{"start":{"line":592,"column":16},"end":{"line":594,"column":17}},"102":{"start":{"line":593,"column":20},"end":{"line":593,"column":70}},"103":{"start":{"line":597,"column":12},"end":{"line":597,"column":26}},"104":{"start":{"line":610,"column":12},"end":{"line":610,"column":90}},"105":{"start":{"line":624,"column":12},"end":{"line":624,"column":56}},"106":{"start":{"line":626,"column":12},"end":{"line":634,"column":13}},"107":{"start":{"line":627,"column":16},"end":{"line":630,"column":17}},"108":{"start":{"line":628,"column":20},"end":{"line":628,"column":44}},"109":{"start":{"line":629,"column":20},"end":{"line":629,"column":87}},"110":{"start":{"line":631,"column":16},"end":{"line":631,"column":65}},"111":{"start":{"line":633,"column":16},"end":{"line":633,"column":45}},"112":{"start":{"line":636,"column":12},"end":{"line":636,"column":24}},"113":{"start":{"line":650,"column":12},"end":{"line":650,"column":44}},"114":{"start":{"line":651,"column":12},"end":{"line":655,"column":13}},"115":{"start":{"line":652,"column":16},"end":{"line":652,"column":96}},"116":{"start":{"line":653,"column":16},"end":{"line":653,"column":90}},"117":{"start":{"line":654,"column":16},"end":{"line":654,"column":96}},"118":{"start":{"line":667,"column":12},"end":{"line":667,"column":103}},"119":{"start":{"line":684,"column":12},"end":{"line":684,"column":80}},"120":{"start":{"line":705,"column":12},"end":{"line":705,"column":59}},"121":{"start":{"line":707,"column":12},"end":{"line":709,"column":13}},"122":{"start":{"line":708,"column":16},"end":{"line":708,"column":51}},"123":{"start":{"line":711,"column":12},"end":{"line":711,"column":24}},"124":{"start":{"line":732,"column":12},"end":{"line":772,"column":13}},"125":{"start":{"line":733,"column":16},"end":{"line":740,"column":38}},"126":{"start":{"line":742,"column":16},"end":{"line":751,"column":17}},"127":{"start":{"line":743,"column":20},"end":{"line":743,"column":48}},"128":{"start":{"line":744,"column":20},"end":{"line":750,"column":21}},"129":{"start":{"line":745,"column":24},"end":{"line":749,"column":25}},"130":{"start":{"line":746,"column":28},"end":{"line":746,"column":73}},"131":{"start":{"line":748,"column":28},"end":{"line":748,"column":45}},"132":{"start":{"line":753,"column":16},"end":{"line":771,"column":17}},"133":{"start":{"line":754,"column":20},"end":{"line":757,"column":21}},"134":{"start":{"line":756,"column":24},"end":{"line":756,"column":51}},"135":{"start":{"line":759,"column":20},"end":{"line":763,"column":88}},"136":{"start":{"line":765,"column":20},"end":{"line":770,"column":21}},"137":{"start":{"line":766,"column":24},"end":{"line":766,"column":61}},"138":{"start":{"line":767,"column":24},"end":{"line":769,"column":25}},"139":{"start":{"line":768,"column":28},"end":{"line":768,"column":63}},"140":{"start":{"line":776,"column":4},"end":{"line":776,"column":28}}},"branchMap":{"1":{"line":271,"type":"if","locations":[{"start":{"line":271,"column":12},"end":{"line":271,"column":12}},{"start":{"line":271,"column":12},"end":{"line":271,"column":12}}]},"2":{"line":271,"type":"binary-expr","locations":[{"start":{"line":271,"column":16},"end":{"line":271,"column":29}},{"start":{"line":271,"column":33},"end":{"line":271,"column":62}}]},"3":{"line":275,"type":"if","locations":[{"start":{"line":275,"column":12},"end":{"line":275,"column":12}},{"start":{"line":275,"column":12},"end":{"line":275,"column":12}}]},"4":{"line":275,"type":"binary-expr","locations":[{"start":{"line":275,"column":16},"end":{"line":275,"column":29}},{"start":{"line":275,"column":33},"end":{"line":275,"column":60}}]},"5":{"line":279,"type":"if","locations":[{"start":{"line":279,"column":12},"end":{"line":279,"column":12}},{"start":{"line":279,"column":12},"end":{"line":279,"column":12}}]},"6":{"line":279,"type":"binary-expr","locations":[{"start":{"line":279,"column":16},"end":{"line":279,"column":29}},{"start":{"line":279,"column":33},"end":{"line":279,"column":62}}]},"7":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":12},"end":{"line":307,"column":12}},{"start":{"line":307,"column":12},"end":{"line":307,"column":12}}]},"8":{"line":308,"type":"if","locations":[{"start":{"line":308,"column":12},"end":{"line":308,"column":12}},{"start":{"line":308,"column":12},"end":{"line":308,"column":12}}]},"9":{"line":309,"type":"if","locations":[{"start":{"line":309,"column":12},"end":{"line":309,"column":12}},{"start":{"line":309,"column":12},"end":{"line":309,"column":12}}]},"10":{"line":341,"type":"if","locations":[{"start":{"line":341,"column":12},"end":{"line":341,"column":12}},{"start":{"line":341,"column":12},"end":{"line":341,"column":12}}]},"11":{"line":355,"type":"if","locations":[{"start":{"line":355,"column":12},"end":{"line":355,"column":12}},{"start":{"line":355,"column":12},"end":{"line":355,"column":12}}]},"12":{"line":369,"type":"if","locations":[{"start":{"line":369,"column":12},"end":{"line":369,"column":12}},{"start":{"line":369,"column":12},"end":{"line":369,"column":12}}]},"13":{"line":397,"type":"binary-expr","locations":[{"start":{"line":397,"column":19},"end":{"line":397,"column":23}},{"start":{"line":397,"column":27},"end":{"line":397,"column":45}},{"start":{"line":397,"column":49},"end":{"line":397,"column":69}},{"start":{"line":397,"column":73},"end":{"line":397,"column":93}}]},"14":{"line":413,"type":"if","locations":[{"start":{"line":413,"column":12},"end":{"line":413,"column":12}},{"start":{"line":413,"column":12},"end":{"line":413,"column":12}}]},"15":{"line":413,"type":"binary-expr","locations":[{"start":{"line":413,"column":16},"end":{"line":413,"column":24}},{"start":{"line":413,"column":28},"end":{"line":413,"column":49}}]},"16":{"line":417,"type":"if","locations":[{"start":{"line":417,"column":12},"end":{"line":417,"column":12}},{"start":{"line":417,"column":12},"end":{"line":417,"column":12}}]},"17":{"line":433,"type":"if","locations":[{"start":{"line":433,"column":12},"end":{"line":433,"column":12}},{"start":{"line":433,"column":12},"end":{"line":433,"column":12}}]},"18":{"line":435,"type":"if","locations":[{"start":{"line":435,"column":16},"end":{"line":435,"column":16}},{"start":{"line":435,"column":16},"end":{"line":435,"column":16}}]},"19":{"line":435,"type":"binary-expr","locations":[{"start":{"line":435,"column":20},"end":{"line":435,"column":35}},{"start":{"line":435,"column":39},"end":{"line":435,"column":53}}]},"20":{"line":456,"type":"if","locations":[{"start":{"line":456,"column":12},"end":{"line":456,"column":12}},{"start":{"line":456,"column":12},"end":{"line":456,"column":12}}]},"21":{"line":481,"type":"if","locations":[{"start":{"line":481,"column":12},"end":{"line":481,"column":12}},{"start":{"line":481,"column":12},"end":{"line":481,"column":12}}]},"22":{"line":500,"type":"if","locations":[{"start":{"line":500,"column":12},"end":{"line":500,"column":12}},{"start":{"line":500,"column":12},"end":{"line":500,"column":12}}]},"23":{"line":518,"type":"if","locations":[{"start":{"line":518,"column":12},"end":{"line":518,"column":12}},{"start":{"line":518,"column":12},"end":{"line":518,"column":12}}]},"24":{"line":518,"type":"binary-expr","locations":[{"start":{"line":518,"column":16},"end":{"line":518,"column":38}},{"start":{"line":518,"column":42},"end":{"line":518,"column":45}}]},"25":{"line":521,"type":"if","locations":[{"start":{"line":521,"column":16},"end":{"line":521,"column":16}},{"start":{"line":521,"column":16},"end":{"line":521,"column":16}}]},"26":{"line":525,"type":"if","locations":[{"start":{"line":525,"column":20},"end":{"line":525,"column":20}},{"start":{"line":525,"column":20},"end":{"line":525,"column":20}}]},"27":{"line":563,"type":"switch","locations":[{"start":{"line":564,"column":16},"end":{"line":566,"column":26}},{"start":{"line":567,"column":16},"end":{"line":569,"column":26}},{"start":{"line":570,"column":16},"end":{"line":571,"column":43}}]},"28":{"line":587,"type":"cond-expr","locations":[{"start":{"line":587,"column":34},"end":{"line":587,"column":57}},{"start":{"line":587,"column":60},"end":{"line":587,"column":61}}]},"29":{"line":590,"type":"if","locations":[{"start":{"line":590,"column":12},"end":{"line":590,"column":12}},{"start":{"line":590,"column":12},"end":{"line":590,"column":12}}]},"30":{"line":590,"type":"binary-expr","locations":[{"start":{"line":590,"column":16},"end":{"line":590,"column":20}},{"start":{"line":590,"column":24},"end":{"line":590,"column":46}}]},"31":{"line":592,"type":"if","locations":[{"start":{"line":592,"column":16},"end":{"line":592,"column":16}},{"start":{"line":592,"column":16},"end":{"line":592,"column":16}}]},"32":{"line":626,"type":"if","locations":[{"start":{"line":626,"column":12},"end":{"line":626,"column":12}},{"start":{"line":626,"column":12},"end":{"line":626,"column":12}}]},"33":{"line":627,"type":"if","locations":[{"start":{"line":627,"column":16},"end":{"line":627,"column":16}},{"start":{"line":627,"column":16},"end":{"line":627,"column":16}}]},"34":{"line":651,"type":"if","locations":[{"start":{"line":651,"column":12},"end":{"line":651,"column":12}},{"start":{"line":651,"column":12},"end":{"line":651,"column":12}}]},"35":{"line":652,"type":"binary-expr","locations":[{"start":{"line":652,"column":41},"end":{"line":652,"column":65}},{"start":{"line":652,"column":70},"end":{"line":652,"column":94}}]},"36":{"line":653,"type":"binary-expr","locations":[{"start":{"line":653,"column":39},"end":{"line":653,"column":61}},{"start":{"line":653,"column":66},"end":{"line":653,"column":88}}]},"37":{"line":654,"type":"binary-expr","locations":[{"start":{"line":654,"column":41},"end":{"line":654,"column":65}},{"start":{"line":654,"column":70},"end":{"line":654,"column":94}}]},"38":{"line":667,"type":"cond-expr","locations":[{"start":{"line":667,"column":51},"end":{"line":667,"column":95}},{"start":{"line":667,"column":98},"end":{"line":667,"column":102}}]},"39":{"line":705,"type":"binary-expr","locations":[{"start":{"line":705,"column":23},"end":{"line":705,"column":50}},{"start":{"line":705,"column":54},"end":{"line":705,"column":58}}]},"40":{"line":707,"type":"if","locations":[{"start":{"line":707,"column":12},"end":{"line":707,"column":12}},{"start":{"line":707,"column":12},"end":{"line":707,"column":12}}]},"41":{"line":707,"type":"binary-expr","locations":[{"start":{"line":707,"column":16},"end":{"line":707,"column":21}},{"start":{"line":707,"column":25},"end":{"line":707,"column":36}}]},"42":{"line":732,"type":"if","locations":[{"start":{"line":732,"column":12},"end":{"line":732,"column":12}},{"start":{"line":732,"column":12},"end":{"line":732,"column":12}}]},"43":{"line":744,"type":"if","locations":[{"start":{"line":744,"column":20},"end":{"line":744,"column":20}},{"start":{"line":744,"column":20},"end":{"line":744,"column":20}}]},"44":{"line":745,"type":"if","locations":[{"start":{"line":745,"column":24},"end":{"line":745,"column":24}},{"start":{"line":745,"column":24},"end":{"line":745,"column":24}}]},"45":{"line":753,"type":"if","locations":[{"start":{"line":753,"column":16},"end":{"line":753,"column":16}},{"start":{"line":753,"column":16},"end":{"line":753,"column":16}}]},"46":{"line":754,"type":"if","locations":[{"start":{"line":754,"column":20},"end":{"line":754,"column":20}},{"start":{"line":754,"column":20},"end":{"line":754,"column":20}}]},"47":{"line":754,"type":"binary-expr","locations":[{"start":{"line":754,"column":24},"end":{"line":754,"column":29}},{"start":{"line":754,"column":33},"end":{"line":754,"column":41}}]},"48":{"line":765,"type":"if","locations":[{"start":{"line":765,"column":20},"end":{"line":765,"column":20}},{"start":{"line":765,"column":20},"end":{"line":765,"column":20}}]},"49":{"line":767,"type":"if","locations":[{"start":{"line":767,"column":24},"end":{"line":767,"column":24}},{"start":{"line":767,"column":24},"end":{"line":767,"column":24}}]}},"code":["(function () { YUI.add('widget-stdmod', function (Y, NAME) {","","/**"," * Provides standard module support for Widgets through an extension."," *"," * @module widget-stdmod"," */"," var L = Y.Lang,"," Node = Y.Node,"," UA = Y.UA,"," Widget = Y.Widget,",""," EMPTY = \"\","," HD = \"hd\","," BD = \"bd\","," FT = \"ft\","," HEADER = \"header\","," BODY = \"body\","," FOOTER = \"footer\","," FILL_HEIGHT = \"fillHeight\","," STDMOD = \"stdmod\",",""," NODE_SUFFIX = \"Node\","," CONTENT_SUFFIX = \"Content\",",""," FIRST_CHILD = \"firstChild\","," CHILD_NODES = \"childNodes\","," OWNER_DOCUMENT = \"ownerDocument\",",""," CONTENT_BOX = \"contentBox\",",""," HEIGHT = \"height\","," OFFSET_HEIGHT = \"offsetHeight\","," AUTO = \"auto\",",""," HeaderChange = \"headerContentChange\","," BodyChange = \"bodyContentChange\","," FooterChange = \"footerContentChange\","," FillHeightChange = \"fillHeightChange\","," HeightChange = \"heightChange\","," ContentUpdate = \"contentUpdate\",",""," RENDERUI = \"renderUI\","," BINDUI = \"bindUI\","," SYNCUI = \"syncUI\",",""," APPLY_PARSED_CONFIG = \"_applyParsedConfig\",",""," UI = Y.Widget.UI_SRC;",""," /**"," * Widget extension, which can be used to add Standard Module support to the"," * base Widget class, through the <a href=\"Base.html#method_build\">Base.build</a>"," * method."," * <p>"," * The extension adds header, body and footer sections to the Widget's content box and"," * provides the corresponding methods and attributes to modify the contents of these sections."," * </p>"," * @class WidgetStdMod"," * @param {Object} The user configuration object"," */"," function StdMod(config) {",""," this._stdModNode = this.get(CONTENT_BOX);",""," Y.before(this._renderUIStdMod, this, RENDERUI);"," Y.before(this._bindUIStdMod, this, BINDUI);"," Y.before(this._syncUIStdMod, this, SYNCUI);"," }",""," /**"," * Constant used to refer the the standard module header, in methods which expect a section specifier"," *"," * @property HEADER"," * @static"," * @type String"," */"," StdMod.HEADER = HEADER;",""," /**"," * Constant used to refer the the standard module body, in methods which expect a section specifier"," *"," * @property BODY"," * @static"," * @type String"," */"," StdMod.BODY = BODY;",""," /**"," * Constant used to refer the the standard module footer, in methods which expect a section specifier"," *"," * @property FOOTER"," * @static"," * @type String"," */"," StdMod.FOOTER = FOOTER;",""," /**"," * Constant used to specify insertion position, when adding content to sections of the standard module in"," * methods which expect a \"where\" argument."," * <p>"," * Inserts new content <em>before</em> the sections existing content."," * </p>"," * @property AFTER"," * @static"," * @type String"," */"," StdMod.AFTER = \"after\";",""," /**"," * Constant used to specify insertion position, when adding content to sections of the standard module in"," * methods which expect a \"where\" argument."," * <p>"," * Inserts new content <em>before</em> the sections existing content."," * </p>"," * @property BEFORE"," * @static"," * @type String"," */"," StdMod.BEFORE = \"before\";"," /**"," * Constant used to specify insertion position, when adding content to sections of the standard module in"," * methods which expect a \"where\" argument."," * <p>"," * <em>Replaces</em> the sections existing content, with new content."," * </p>"," * @property REPLACE"," * @static"," * @type String"," */"," StdMod.REPLACE = \"replace\";",""," var STD_HEADER = StdMod.HEADER,"," STD_BODY = StdMod.BODY,"," STD_FOOTER = StdMod.FOOTER,",""," HEADER_CONTENT = STD_HEADER + CONTENT_SUFFIX,"," FOOTER_CONTENT = STD_FOOTER + CONTENT_SUFFIX,"," BODY_CONTENT = STD_BODY + CONTENT_SUFFIX;",""," /**"," * Static property used to define the default attribute"," * configuration introduced by WidgetStdMod."," *"," * @property ATTRS"," * @type Object"," * @static"," */"," StdMod.ATTRS = {",""," /**"," * @attribute headerContent"," * @type HTML"," * @default undefined"," * @description The content to be added to the header section. This will replace any existing content"," * in the header. If you want to append, or insert new content, use the <a href=\"#method_setStdModContent\">setStdModContent</a> method."," */"," headerContent: {"," value:null"," },",""," /**"," * @attribute footerContent"," * @type HTML"," * @default undefined"," * @description The content to be added to the footer section. This will replace any existing content"," * in the footer. If you want to append, or insert new content, use the <a href=\"#method_setStdModContent\">setStdModContent</a> method."," */"," footerContent: {"," value:null"," },",""," /**"," * @attribute bodyContent"," * @type HTML"," * @default undefined"," * @description The content to be added to the body section. This will replace any existing content"," * in the body. If you want to append, or insert new content, use the <a href=\"#method_setStdModContent\">setStdModContent</a> method."," */"," bodyContent: {"," value:null"," },",""," /**"," * @attribute fillHeight"," * @type {String}"," * @default WidgetStdMod.BODY"," * @description The section (WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER) which should be resized to fill the height of the standard module, when a"," * height is set on the Widget. If a height is not set on the widget, then all sections are sized based on"," * their content."," */"," fillHeight: {"," value: StdMod.BODY,"," validator: function(val) {"," return this._validateFillHeight(val);"," }"," }"," };",""," /**"," * The HTML parsing rules for the WidgetStdMod class."," *"," * @property HTML_PARSER"," * @static"," * @type Object"," */"," StdMod.HTML_PARSER = {"," headerContent: function(contentBox) {"," return this._parseStdModHTML(STD_HEADER);"," },",""," bodyContent: function(contentBox) {"," return this._parseStdModHTML(STD_BODY);"," },",""," footerContent : function(contentBox) {"," return this._parseStdModHTML(STD_FOOTER);"," }"," };",""," /**"," * Static hash of default class names used for the header,"," * body and footer sections of the standard module, keyed by"," * the section identifier (WidgetStdMod.STD_HEADER, WidgetStdMod.STD_BODY, WidgetStdMod.STD_FOOTER)"," *"," * @property SECTION_CLASS_NAMES"," * @static"," * @type Object"," */"," StdMod.SECTION_CLASS_NAMES = {"," header: Widget.getClassName(HD),"," body: Widget.getClassName(BD),"," footer: Widget.getClassName(FT)"," };",""," /**"," * The template HTML strings for each of the standard module sections. Section entries are keyed by the section constants,"," * WidgetStdMod.HEADER, WidgetStdMod.BODY, WidgetStdMod.FOOTER, and contain the HTML to be added for each section."," * e.g."," * <pre>"," * {"," * header : '<div class=\"yui-widget-hd\"></div>',"," * body : '<div class=\"yui-widget-bd\"></div>',"," * footer : '<div class=\"yui-widget-ft\"></div>'"," * }"," * </pre>"," * @property TEMPLATES"," * @type Object"," * @static"," */"," StdMod.TEMPLATES = {"," header : '<div class=\"' + StdMod.SECTION_CLASS_NAMES[STD_HEADER] + '\"></div>',"," body : '<div class=\"' + StdMod.SECTION_CLASS_NAMES[STD_BODY] + '\"></div>',"," footer : '<div class=\"' + StdMod.SECTION_CLASS_NAMES[STD_FOOTER] + '\"></div>'"," };",""," StdMod.prototype = {",""," /**"," * Synchronizes the UI to match the Widgets standard module state."," * <p>"," * This method is invoked after syncUI is invoked for the Widget class"," * using YUI's aop infrastructure."," * </p>"," * @method _syncUIStdMod"," * @protected"," */"," _syncUIStdMod : function() {"," var stdModParsed = this._stdModParsed;",""," if (!stdModParsed || !stdModParsed[HEADER_CONTENT]) {"," this._uiSetStdMod(STD_HEADER, this.get(HEADER_CONTENT));"," }",""," if (!stdModParsed || !stdModParsed[BODY_CONTENT]) {"," this._uiSetStdMod(STD_BODY, this.get(BODY_CONTENT));"," }",""," if (!stdModParsed || !stdModParsed[FOOTER_CONTENT]) {"," this._uiSetStdMod(STD_FOOTER, this.get(FOOTER_CONTENT));"," }",""," this._uiSetFillHeight(this.get(FILL_HEIGHT));"," },",""," /**"," * Creates/Initializes the DOM for standard module support."," * <p>"," * This method is invoked after renderUI is invoked for the Widget class"," * using YUI's aop infrastructure."," * </p>"," * @method _renderUIStdMod"," * @protected"," */"," _renderUIStdMod : function() {"," this._stdModNode.addClass(Widget.getClassName(STDMOD));"," this._renderStdModSections();",""," //This normally goes in bindUI but in order to allow setStdModContent() to work before renderUI"," //stage, these listeners should be set up at the earliest possible time."," this.after(HeaderChange, this._afterHeaderChange);"," this.after(BodyChange, this._afterBodyChange);"," this.after(FooterChange, this._afterFooterChange);"," },",""," _renderStdModSections : function() {"," if (L.isValue(this.get(HEADER_CONTENT))) { this._renderStdMod(STD_HEADER); }"," if (L.isValue(this.get(BODY_CONTENT))) { this._renderStdMod(STD_BODY); }"," if (L.isValue(this.get(FOOTER_CONTENT))) { this._renderStdMod(STD_FOOTER); }"," },",""," /**"," * Binds event listeners responsible for updating the UI state in response to"," * Widget standard module related state changes."," * <p>"," * This method is invoked after bindUI is invoked for the Widget class"," * using YUI's aop infrastructure."," * </p>"," * @method _bindUIStdMod"," * @protected"," */"," _bindUIStdMod : function() {"," // this.after(HeaderChange, this._afterHeaderChange);"," // this.after(BodyChange, this._afterBodyChange);"," // this.after(FooterChange, this._afterFooterChange);",""," this.after(FillHeightChange, this._afterFillHeightChange);"," this.after(HeightChange, this._fillHeight);"," this.after(ContentUpdate, this._fillHeight);"," },",""," /**"," * Default attribute change listener for the headerContent attribute, responsible"," * for updating the UI, in response to attribute changes."," *"," * @method _afterHeaderChange"," * @protected"," * @param {EventFacade} e The event facade for the attribute change"," */"," _afterHeaderChange : function(e) {"," if (e.src !== UI) {"," this._uiSetStdMod(STD_HEADER, e.newVal, e.stdModPosition);"," }"," },",""," /**"," * Default attribute change listener for the bodyContent attribute, responsible"," * for updating the UI, in response to attribute changes."," *"," * @method _afterBodyChange"," * @protected"," * @param {EventFacade} e The event facade for the attribute change"," */"," _afterBodyChange : function(e) {"," if (e.src !== UI) {"," this._uiSetStdMod(STD_BODY, e.newVal, e.stdModPosition);"," }"," },",""," /**"," * Default attribute change listener for the footerContent attribute, responsible"," * for updating the UI, in response to attribute changes."," *"," * @method _afterFooterChange"," * @protected"," * @param {EventFacade} e The event facade for the attribute change"," */"," _afterFooterChange : function(e) {"," if (e.src !== UI) {"," this._uiSetStdMod(STD_FOOTER, e.newVal, e.stdModPosition);"," }"," },",""," /**"," * Default attribute change listener for the fillHeight attribute, responsible"," * for updating the UI, in response to attribute changes."," *"," * @method _afterFillHeightChange"," * @protected"," * @param {EventFacade} e The event facade for the attribute change"," */"," _afterFillHeightChange: function (e) {"," this._uiSetFillHeight(e.newVal);"," },",""," /**"," * Default validator for the fillHeight attribute. Verifies that the"," * value set is a valid section specifier - one of WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER,"," * or a falsey value if fillHeight is to be disabled."," *"," * @method _validateFillHeight"," * @protected"," * @param {String} val The section which should be setup to fill height, or false/null to disable fillHeight"," * @return true if valid, false if not"," */"," _validateFillHeight : function(val) {"," return !val || val == StdMod.BODY || val == StdMod.HEADER || val == StdMod.FOOTER;"," },",""," /**"," * Updates the rendered UI, to resize the provided section so that the standard module fills out"," * the specified widget height. Note: This method does not check whether or not a height is set"," * on the Widget."," *"," * @method _uiSetFillHeight"," * @protected"," * @param {String} fillSection A valid section specifier - one of WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER"," */"," _uiSetFillHeight : function(fillSection) {"," var fillNode = this.getStdModNode(fillSection);"," var currNode = this._currFillNode;",""," if (currNode && fillNode !== currNode){"," currNode.setStyle(HEIGHT, EMPTY);"," }",""," if (fillNode) {"," this._currFillNode = fillNode;"," }",""," this._fillHeight();"," },",""," /**"," * Updates the rendered UI, to resize the current section specified by the fillHeight attribute, so"," * that the standard module fills out the Widget height. If a height has not been set on Widget,"," * the section is not resized (height is set to \"auto\")."," *"," * @method _fillHeight"," * @private"," */"," _fillHeight : function() {"," if (this.get(FILL_HEIGHT)) {"," var height = this.get(HEIGHT);"," if (height != EMPTY && height != AUTO) {"," this.fillHeight(this._currFillNode);"," }"," }"," },",""," /**"," * Updates the rendered UI, adding the provided content (either an HTML string, or node reference),"," * to the specified section. The content is either added before, after or replaces existing content"," * in the section, based on the value of the <code>where</code> argument."," *"," * @method _uiSetStdMod"," * @protected"," *"," * @param {String} section The section to be updated. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," * @param {String | Node} content The new content (either as an HTML string, or Node reference) to add to the section"," * @param {String} where Optional. Either WidgetStdMod.AFTER, WidgetStdMod.BEFORE or WidgetStdMod.REPLACE."," * If not provided, the content will replace existing content in the section."," */"," _uiSetStdMod : function(section, content, where) {"," // Using isValue, so that \"\" is valid content"," if (L.isValue(content)) {"," var node = this.getStdModNode(section, true);",""," this._addStdModContent(node, content, where);",""," this.set(section + CONTENT_SUFFIX, this._getStdModContent(section), {src:UI});"," } else {"," this._eraseStdMod(section);"," }"," this.fire(ContentUpdate);"," },",""," /**"," * Creates the DOM node for the given section, and inserts it into the correct location in the contentBox."," *"," * @method _renderStdMod"," * @protected"," * @param {String} section The section to create/render. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," * @return {Node} A reference to the added section node"," */"," _renderStdMod : function(section) {",""," var contentBox = this.get(CONTENT_BOX),"," sectionNode = this._findStdModSection(section);",""," if (!sectionNode) {"," sectionNode = this._getStdModTemplate(section);"," }",""," this._insertStdModSection(contentBox, section, sectionNode);",""," this[section + NODE_SUFFIX] = sectionNode;"," return this[section + NODE_SUFFIX];"," },",""," /**"," * Removes the DOM node for the given section."," *"," * @method _eraseStdMod"," * @protected"," * @param {String} section The section to remove. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," */"," _eraseStdMod : function(section) {"," var sectionNode = this.getStdModNode(section);"," if (sectionNode) {"," sectionNode.remove(true);"," delete this[section + NODE_SUFFIX];"," }"," },",""," /**"," * Helper method to insert the Node for the given section into the correct location in the contentBox."," *"," * @method _insertStdModSection"," * @private"," * @param {Node} contentBox A reference to the Widgets content box."," * @param {String} section The section to create/render. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," * @param {Node} sectionNode The Node for the section."," */"," _insertStdModSection : function(contentBox, section, sectionNode) {"," var fc = contentBox.get(FIRST_CHILD);",""," if (section === STD_FOOTER || !fc) {"," contentBox.appendChild(sectionNode);"," } else {"," if (section === STD_HEADER) {"," contentBox.insertBefore(sectionNode, fc);"," } else {"," var footer = this[STD_FOOTER + NODE_SUFFIX];"," if (footer) {"," contentBox.insertBefore(sectionNode, footer);"," } else {"," contentBox.appendChild(sectionNode);"," }"," }"," }"," },",""," /**"," * Gets a new Node reference for the given standard module section, by cloning"," * the stored template node."," *"," * @method _getStdModTemplate"," * @protected"," * @param {String} section The section to create a new node for. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," * @return {Node} The new Node instance for the section"," */"," _getStdModTemplate : function(section) {"," return Node.create(StdMod.TEMPLATES[section], this._stdModNode.get(OWNER_DOCUMENT));"," },",""," /**"," * Helper method to add content to a StdMod section node."," * The content is added either before, after or replaces the existing node content"," * based on the value of the <code>where</code> argument."," *"," * @method _addStdModContent"," * @private"," *"," * @param {Node} node The section Node to be updated."," * @param {Node|NodeList|String} children The new content Node, NodeList or String to be added to section Node provided."," * @param {String} where Optional. Either WidgetStdMod.AFTER, WidgetStdMod.BEFORE or WidgetStdMod.REPLACE."," * If not provided, the content will replace existing content in the Node."," */"," _addStdModContent : function(node, children, where) {",""," // StdMod where to Node where"," switch (where) {"," case StdMod.BEFORE: // 0 is before fistChild"," where = 0;"," break;"," case StdMod.AFTER: // undefined is appendChild"," where = undefined;"," break;"," default: // replace is replace, not specified is replace"," where = StdMod.REPLACE;"," }",""," node.insert(children, where);"," },",""," /**"," * Helper method to obtain the precise height of the node provided, including padding and border."," * The height could be a sub-pixel value for certain browsers, such as Firefox 3."," *"," * @method _getPreciseHeight"," * @private"," * @param {Node} node The node for which the precise height is required."," * @return {Number} The height of the Node including borders and padding, possibly a float."," */"," _getPreciseHeight : function(node) {"," var height = (node) ? node.get(OFFSET_HEIGHT) : 0,"," getBCR = \"getBoundingClientRect\";",""," if (node && node.hasMethod(getBCR)) {"," var preciseRegion = node.invoke(getBCR);"," if (preciseRegion) {"," height = preciseRegion.bottom - preciseRegion.top;"," }"," }",""," return height;"," },",""," /**"," * Helper method to to find the rendered node for the given section,"," * if it exists."," *"," * @method _findStdModSection"," * @private"," * @param {String} section The section for which the render Node is to be found. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," * @return {Node} The rendered node for the given section, or null if not found."," */"," _findStdModSection: function(section) {"," return this.get(CONTENT_BOX).one(\"> .\" + StdMod.SECTION_CLASS_NAMES[section]);"," },",""," /**"," * Utility method, used by WidgetStdMods HTML_PARSER implementation"," * to extract data for each section from markup."," *"," * @method _parseStdModHTML"," * @private"," * @param {String} section"," * @return {String} Inner HTML string with the contents of the section"," */"," _parseStdModHTML : function(section) {",""," var node = this._findStdModSection(section);",""," if (node) {"," if (!this._stdModParsed) {"," this._stdModParsed = {};"," Y.before(this._applyStdModParsedConfig, this, APPLY_PARSED_CONFIG);"," }"," this._stdModParsed[section + CONTENT_SUFFIX] = 1;",""," return node.get(\"innerHTML\");"," }",""," return null;"," },",""," /**"," * This method is injected before the _applyParsedConfig step in"," * the application of HTML_PARSER, and sets up the state to"," * identify whether or not we should remove the current DOM content"," * or not, based on whether or not the current content attribute value"," * was extracted from the DOM, or provided by the user configuration"," *"," * @method _applyStdModParsedConfig"," * @private"," */"," _applyStdModParsedConfig : function(node, cfg, parsedCfg) {"," var parsed = this._stdModParsed;"," if (parsed) {"," parsed[HEADER_CONTENT] = !(HEADER_CONTENT in cfg) && (HEADER_CONTENT in parsed);"," parsed[BODY_CONTENT] = !(BODY_CONTENT in cfg) && (BODY_CONTENT in parsed);"," parsed[FOOTER_CONTENT] = !(FOOTER_CONTENT in cfg) && (FOOTER_CONTENT in parsed);"," }"," },",""," /**"," * Retrieves the child nodes (content) of a standard module section"," *"," * @method _getStdModContent"," * @private"," * @param {String} section The standard module section whose child nodes are to be retrieved. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," * @return {Node} The child node collection of the standard module section."," */"," _getStdModContent : function(section) {"," return (this[section + NODE_SUFFIX]) ? this[section + NODE_SUFFIX].get(CHILD_NODES) : null;"," },",""," /**"," * Updates the body section of the standard module with the content provided (either an HTML string, or node reference)."," * <p>"," * This method can be used instead of the corresponding section content attribute if you'd like to retain the current content of the section,"," * and insert content before or after it, by specifying the <code>where</code> argument."," * </p>"," * @method setStdModContent"," * @param {String} section The standard module section whose content is to be updated. Either WidgetStdMod.HEADER, WidgetStdMod.BODY or WidgetStdMod.FOOTER."," * @param {String | Node} content The content to be added, either an HTML string or a Node reference."," * @param {String} where Optional. Either WidgetStdMod.AFTER, WidgetStdMod.BEFORE or WidgetStdMod.REPLACE."," * If not provided, the content will replace existing content in the section."," */"," setStdModContent : function(section, content, where) {"," //var node = this.getStdModNode(section) || this._renderStdMod(section);"," this.set(section + CONTENT_SUFFIX, content, {stdModPosition:where});"," //this._addStdModContent(node, content, where);"," },",""," /**"," Returns the node reference for the specified `section`.",""," **Note:** The DOM is not queried for the node reference. The reference"," stored by the widget instance is returned if it was set. Passing a"," truthy for `forceCreate` will create the section node if it does not"," already exist.",""," @method getStdModNode"," @param {String} section The section whose node reference is required."," Either `WidgetStdMod.HEADER`, `WidgetStdMod.BODY`, or"," `WidgetStdMod.FOOTER`."," @param {Boolean} forceCreate Whether the section node should be created"," if it does not already exist."," @return {Node} The node reference for the `section`, or null if not set."," **/"," getStdModNode : function(section, forceCreate) {"," var node = this[section + NODE_SUFFIX] || null;",""," if (!node && forceCreate) {"," node = this._renderStdMod(section);"," }",""," return node;"," },",""," /**"," * Sets the height on the provided header, body or footer element to"," * fill out the height of the Widget. It determines the height of the"," * widgets bounding box, based on it's configured height value, and"," * sets the height of the provided section to fill out any"," * space remaining after the other standard module section heights"," * have been accounted for."," *"," * <p><strong>NOTE:</strong> This method is not designed to work if an explicit"," * height has not been set on the Widget, since for an \"auto\" height Widget,"," * the heights of the header/body/footer will drive the height of the Widget.</p>"," *"," * @method fillHeight"," * @param {Node} node The node which should be resized to fill out the height"," * of the Widget bounding box. Should be a standard module section node which belongs"," * to the widget."," */"," fillHeight : function(node) {"," if (node) {"," var contentBox = this.get(CONTENT_BOX),"," stdModNodes = [this.headerNode, this.bodyNode, this.footerNode],"," stdModNode,"," cbContentHeight,"," filled = 0,"," remaining = 0,",""," validNode = false;",""," for (var i = 0, l = stdModNodes.length; i < l; i++) {"," stdModNode = stdModNodes[i];"," if (stdModNode) {"," if (stdModNode !== node) {"," filled += this._getPreciseHeight(stdModNode);"," } else {"," validNode = true;"," }"," }"," }",""," if (validNode) {"," if (UA.ie || UA.opera) {"," // Need to set height to 0, to allow height to be reduced"," node.set(OFFSET_HEIGHT, 0);"," }",""," cbContentHeight = contentBox.get(OFFSET_HEIGHT) -"," parseInt(contentBox.getComputedStyle(\"paddingTop\"), 10) -"," parseInt(contentBox.getComputedStyle(\"paddingBottom\"), 10) -"," parseInt(contentBox.getComputedStyle(\"borderBottomWidth\"), 10) -"," parseInt(contentBox.getComputedStyle(\"borderTopWidth\"), 10);",""," if (L.isNumber(cbContentHeight)) {"," remaining = cbContentHeight - filled;"," if (remaining >= 0) {"," node.set(OFFSET_HEIGHT, remaining);"," }"," }"," }"," }"," }"," };",""," Y.WidgetStdMod = StdMod;","","","}, '3.10.3', {\"requires\": [\"base-build\", \"widget\"]});","","}());"]}; |