rubyXL 3.4.25 → 3.4.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +24 -13
  3. data/.rubocop.yml +124 -0
  4. data/CHANGELOG.md +12 -0
  5. data/Gemfile +4 -2
  6. data/README.rdoc +24 -8
  7. data/VERSION +1 -1
  8. data/lib/rubyXL/convenience_methods/cell.rb +8 -7
  9. data/lib/rubyXL/convenience_methods/color.rb +6 -6
  10. data/lib/rubyXL/convenience_methods/workbook.rb +7 -7
  11. data/lib/rubyXL/convenience_methods/worksheet.rb +26 -6
  12. data/lib/rubyXL/objects/border.rb +6 -1
  13. data/lib/rubyXL/objects/cell_style.rb +1 -0
  14. data/lib/rubyXL/objects/color.rb +1 -1
  15. data/lib/rubyXL/objects/column_range.rb +16 -12
  16. data/lib/rubyXL/objects/document_properties.rb +1 -0
  17. data/lib/rubyXL/objects/external_links.rb +8 -0
  18. data/lib/rubyXL/objects/ooxml_object.rb +21 -17
  19. data/lib/rubyXL/objects/query_table.rb +4 -2
  20. data/lib/rubyXL/objects/reference.rb +56 -20
  21. data/lib/rubyXL/objects/relationships.rb +1 -1
  22. data/lib/rubyXL/objects/root.rb +1 -1
  23. data/lib/rubyXL/objects/shared_strings.rb +1 -1
  24. data/lib/rubyXL/objects/sheet_data.rb +11 -6
  25. data/lib/rubyXL/objects/storage.rb +6 -1
  26. data/lib/rubyXL/objects/stylesheet.rb +2 -3
  27. data/lib/rubyXL/objects/text.rb +3 -3
  28. data/lib/rubyXL/objects/theme.rb +15 -17
  29. data/lib/rubyXL/objects/workbook.rb +17 -9
  30. data/lib/rubyXL/objects/worksheet.rb +2 -2
  31. data/lib/rubyXL/worksheet.rb +11 -3
  32. data/rdoc/README_rdoc.html +536 -147
  33. data/rdoc/RubyXL/AExtension.html +605 -85
  34. data/rdoc/RubyXL/AExtensionStorageArea.html +493 -47
  35. data/rdoc/RubyXL/ActiveX.html +574 -74
  36. data/rdoc/RubyXL/ActiveXBinary.html +503 -49
  37. data/rdoc/RubyXL/AdjustHandleList.html +487 -47
  38. data/rdoc/RubyXL/Alignment.html +487 -47
  39. data/rdoc/RubyXL/AlternateContent.html +493 -47
  40. data/rdoc/RubyXL/AlternateUrls.html +539 -0
  41. data/rdoc/RubyXL/Authors.html +487 -47
  42. data/rdoc/RubyXL/AutoFilter.html +487 -47
  43. data/rdoc/RubyXL/AutoFilterColumn.html +487 -47
  44. data/rdoc/RubyXL/BinaryImageFile.html +510 -50
  45. data/rdoc/RubyXL/BodyProperties.html +487 -47
  46. data/rdoc/RubyXL/BooleanNode.html +493 -47
  47. data/rdoc/RubyXL/BooleanValue.html +493 -47
  48. data/rdoc/RubyXL/Border.html +640 -97
  49. data/rdoc/RubyXL/BorderEdge.html +578 -78
  50. data/rdoc/RubyXL/Borders.html +540 -68
  51. data/rdoc/RubyXL/Break.html +487 -47
  52. data/rdoc/RubyXL/BreakList.html +487 -47
  53. data/rdoc/RubyXL/CT_AdjPoint2D.html +487 -47
  54. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +487 -47
  55. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +487 -47
  56. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +487 -47
  57. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +487 -47
  58. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +487 -47
  59. data/rdoc/RubyXL/CT_Backdrop.html +487 -47
  60. data/rdoc/RubyXL/CT_Bevel.html +487 -47
  61. data/rdoc/RubyXL/CT_BiLevelEffect.html +487 -47
  62. data/rdoc/RubyXL/CT_BlendEffect.html +487 -47
  63. data/rdoc/RubyXL/CT_Blip.html +487 -47
  64. data/rdoc/RubyXL/CT_BlipFillProperties.html +487 -47
  65. data/rdoc/RubyXL/CT_BlurEffect.html +487 -47
  66. data/rdoc/RubyXL/CT_Camera.html +487 -47
  67. data/rdoc/RubyXL/CT_Color.html +487 -47
  68. data/rdoc/RubyXL/CT_ColorChangeEffect.html +487 -47
  69. data/rdoc/RubyXL/CT_ColorMapping.html +487 -47
  70. data/rdoc/RubyXL/CT_ColorScheme.html +487 -47
  71. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +487 -47
  72. data/rdoc/RubyXL/CT_ConnectionSite.html +487 -47
  73. data/rdoc/RubyXL/CT_ConnectionSiteList.html +487 -47
  74. data/rdoc/RubyXL/CT_DashStop.html +487 -47
  75. data/rdoc/RubyXL/CT_DashStopList.html +487 -47
  76. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +487 -47
  77. data/rdoc/RubyXL/CT_DuotoneEffect.html +487 -47
  78. data/rdoc/RubyXL/CT_EffectContainer.html +487 -47
  79. data/rdoc/RubyXL/CT_EffectList.html +487 -47
  80. data/rdoc/RubyXL/CT_EffectReference.html +487 -47
  81. data/rdoc/RubyXL/CT_EffectStyleItem.html +487 -47
  82. data/rdoc/RubyXL/CT_EffectStyleList.html +487 -47
  83. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +487 -47
  84. data/rdoc/RubyXL/CT_FillEffect.html +487 -47
  85. data/rdoc/RubyXL/CT_FillOverlayEffect.html +487 -47
  86. data/rdoc/RubyXL/CT_FillStyleList.html +487 -47
  87. data/rdoc/RubyXL/CT_FlatText.html +487 -47
  88. data/rdoc/RubyXL/CT_FontCollection.html +487 -47
  89. data/rdoc/RubyXL/CT_FontReference.html +487 -47
  90. data/rdoc/RubyXL/CT_GeomGuideList.html +487 -47
  91. data/rdoc/RubyXL/CT_GlowEffect.html +487 -47
  92. data/rdoc/RubyXL/CT_GradientFillProperties.html +487 -47
  93. data/rdoc/RubyXL/CT_GradientStop.html +487 -47
  94. data/rdoc/RubyXL/CT_GradientStopList.html +487 -47
  95. data/rdoc/RubyXL/CT_HSLEffect.html +487 -47
  96. data/rdoc/RubyXL/CT_HslColor.html +487 -47
  97. data/rdoc/RubyXL/CT_Hyperlink.html +487 -47
  98. data/rdoc/RubyXL/CT_InnerShadowEffect.html +487 -47
  99. data/rdoc/RubyXL/CT_LightRig.html +487 -47
  100. data/rdoc/RubyXL/CT_LineEndProperties.html +487 -47
  101. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +487 -47
  102. data/rdoc/RubyXL/CT_LineProperties.html +487 -47
  103. data/rdoc/RubyXL/CT_LineStyleList.html +487 -47
  104. data/rdoc/RubyXL/CT_LinearShadeProperties.html +487 -47
  105. data/rdoc/RubyXL/CT_LuminanceEffect.html +487 -47
  106. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +487 -47
  107. data/rdoc/RubyXL/CT_OuterShadowEffect.html +487 -47
  108. data/rdoc/RubyXL/CT_Path2D.html +487 -47
  109. data/rdoc/RubyXL/CT_Path2DArcTo.html +487 -47
  110. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +487 -47
  111. data/rdoc/RubyXL/CT_Path2DList.html +487 -47
  112. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +487 -47
  113. data/rdoc/RubyXL/CT_Path2DTo.html +487 -47
  114. data/rdoc/RubyXL/CT_PathShadeProperties.html +487 -47
  115. data/rdoc/RubyXL/CT_PatternFillProperties.html +487 -47
  116. data/rdoc/RubyXL/CT_Point3D.html +487 -47
  117. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +487 -47
  118. data/rdoc/RubyXL/CT_PresetColor.html +487 -47
  119. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +487 -47
  120. data/rdoc/RubyXL/CT_PresetShadowEffect.html +487 -47
  121. data/rdoc/RubyXL/CT_PresetTextShape.html +487 -47
  122. data/rdoc/RubyXL/CT_ReflectionEffect.html +487 -47
  123. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +487 -47
  124. data/rdoc/RubyXL/CT_RelativeRect.html +487 -47
  125. data/rdoc/RubyXL/CT_SRgbColor.html +487 -47
  126. data/rdoc/RubyXL/CT_ScRgbColor.html +487 -47
  127. data/rdoc/RubyXL/CT_Scene3D.html +487 -47
  128. data/rdoc/RubyXL/CT_SchemeColor.html +487 -47
  129. data/rdoc/RubyXL/CT_Shape3D.html +487 -47
  130. data/rdoc/RubyXL/CT_ShapeStyle.html +487 -47
  131. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +487 -47
  132. data/rdoc/RubyXL/CT_SphereCoords.html +487 -47
  133. data/rdoc/RubyXL/CT_StretchInfoProperties.html +487 -47
  134. data/rdoc/RubyXL/CT_StyleMatrix.html +487 -47
  135. data/rdoc/RubyXL/CT_StyleMatrixReference.html +487 -47
  136. data/rdoc/RubyXL/CT_SupplementalFont.html +487 -47
  137. data/rdoc/RubyXL/CT_SystemColor.html +487 -47
  138. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +487 -47
  139. data/rdoc/RubyXL/CT_TextBlipBullet.html +487 -47
  140. data/rdoc/RubyXL/CT_TextCharBullet.html +487 -47
  141. data/rdoc/RubyXL/CT_TextCharacterProperties.html +487 -47
  142. data/rdoc/RubyXL/CT_TextFont.html +487 -47
  143. data/rdoc/RubyXL/CT_TextListStyle.html +487 -47
  144. data/rdoc/RubyXL/CT_TextNormalAutofit.html +487 -47
  145. data/rdoc/RubyXL/CT_TextParagraphProperties.html +487 -47
  146. data/rdoc/RubyXL/CT_TextSpacing.html +487 -47
  147. data/rdoc/RubyXL/CT_TextTabStop.html +487 -47
  148. data/rdoc/RubyXL/CT_TextTabStopList.html +487 -47
  149. data/rdoc/RubyXL/CT_TileInfoProperties.html +487 -47
  150. data/rdoc/RubyXL/CT_TintEffect.html +487 -47
  151. data/rdoc/RubyXL/CT_Transform2D.html +487 -47
  152. data/rdoc/RubyXL/CT_TransformEffect.html +487 -47
  153. data/rdoc/RubyXL/CT_Vector3D.html +487 -47
  154. data/rdoc/RubyXL/CT_XYAdjustHandle.html +487 -47
  155. data/rdoc/RubyXL/CalculationChain.html +557 -71
  156. data/rdoc/RubyXL/CalculationChainCell.html +487 -47
  157. data/rdoc/RubyXL/CalculationProperties.html +487 -47
  158. data/rdoc/RubyXL/Cell.html +1033 -200
  159. data/rdoc/RubyXL/CellConvenienceMethods.html +1667 -382
  160. data/rdoc/RubyXL/CellExt.html +487 -47
  161. data/rdoc/RubyXL/CellSmartTag.html +487 -47
  162. data/rdoc/RubyXL/CellSmartTagProperty.html +487 -47
  163. data/rdoc/RubyXL/CellSmartTags.html +487 -47
  164. data/rdoc/RubyXL/CellStyle.html +487 -47
  165. data/rdoc/RubyXL/CellStyleXFs.html +540 -68
  166. data/rdoc/RubyXL/CellStyles.html +540 -68
  167. data/rdoc/RubyXL/CellValue.html +540 -68
  168. data/rdoc/RubyXL/CellWatch.html +487 -47
  169. data/rdoc/RubyXL/CellWatches.html +487 -47
  170. data/rdoc/RubyXL/CellXFs.html +542 -71
  171. data/rdoc/RubyXL/ChartColorsFile.html +510 -50
  172. data/rdoc/RubyXL/ChartFile.html +581 -75
  173. data/rdoc/RubyXL/ChartStyleFile.html +510 -50
  174. data/rdoc/RubyXL/ChartUserShapesFile.html +510 -50
  175. data/rdoc/RubyXL/Chartsheet.html +624 -92
  176. data/rdoc/RubyXL/ChartsheetPageSetup.html +487 -47
  177. data/rdoc/RubyXL/ChartsheetProperties.html +487 -47
  178. data/rdoc/RubyXL/ChartsheetProtection.html +487 -47
  179. data/rdoc/RubyXL/ChartsheetView.html +487 -47
  180. data/rdoc/RubyXL/ChartsheetViews.html +487 -47
  181. data/rdoc/RubyXL/Color.html +550 -70
  182. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +626 -94
  183. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +671 -105
  184. data/rdoc/RubyXL/ColorConvenienceClasses.html +482 -45
  185. data/rdoc/RubyXL/ColorConvenienceMethods.html +534 -65
  186. data/rdoc/RubyXL/ColorFilter.html +487 -47
  187. data/rdoc/RubyXL/ColorScale.html +487 -47
  188. data/rdoc/RubyXL/ColorSet.html +487 -47
  189. data/rdoc/RubyXL/Colors.html +487 -47
  190. data/rdoc/RubyXL/ColumnRange.html +685 -92
  191. data/rdoc/RubyXL/ColumnRanges.html +646 -102
  192. data/rdoc/RubyXL/Comment.html +487 -47
  193. data/rdoc/RubyXL/CommentList.html +487 -47
  194. data/rdoc/RubyXL/CommentsFile.html +570 -76
  195. data/rdoc/RubyXL/ConditionalFormatValue.html +487 -47
  196. data/rdoc/RubyXL/ConditionalFormatting.html +487 -47
  197. data/rdoc/RubyXL/ConditionalFormattingRule.html +487 -47
  198. data/rdoc/RubyXL/Connection.html +487 -47
  199. data/rdoc/RubyXL/ConnectionTable.html +487 -47
  200. data/rdoc/RubyXL/ConnectionTables.html +487 -47
  201. data/rdoc/RubyXL/ConnectionTextField.html +487 -47
  202. data/rdoc/RubyXL/ConnectionTextFields.html +487 -47
  203. data/rdoc/RubyXL/Connections.html +557 -71
  204. data/rdoc/RubyXL/ContentTypeDefault.html +493 -47
  205. data/rdoc/RubyXL/ContentTypeOverride.html +493 -47
  206. data/rdoc/RubyXL/ContentTypes.html +595 -81
  207. data/rdoc/RubyXL/ControlPropertiesFile.html +510 -50
  208. data/rdoc/RubyXL/CorePropertiesFile.html +825 -149
  209. data/rdoc/RubyXL/CustomColor.html +487 -47
  210. data/rdoc/RubyXL/CustomColorList.html +487 -47
  211. data/rdoc/RubyXL/CustomFilter.html +487 -47
  212. data/rdoc/RubyXL/CustomFilters.html +487 -47
  213. data/rdoc/RubyXL/CustomGeometry.html +487 -47
  214. data/rdoc/RubyXL/CustomProperties.html +487 -47
  215. data/rdoc/RubyXL/CustomPropertiesFile.html +510 -50
  216. data/rdoc/RubyXL/CustomProperty.html +487 -47
  217. data/rdoc/RubyXL/CustomPropertyFile.html +510 -50
  218. data/rdoc/RubyXL/CustomSheetView.html +487 -47
  219. data/rdoc/RubyXL/CustomSheetViews.html +487 -47
  220. data/rdoc/RubyXL/CustomWorkbookView.html +487 -47
  221. data/rdoc/RubyXL/CustomWorkbookViews.html +487 -47
  222. data/rdoc/RubyXL/CustomXMLFile.html +503 -49
  223. data/rdoc/RubyXL/DXF.html +487 -47
  224. data/rdoc/RubyXL/DXFs.html +487 -47
  225. data/rdoc/RubyXL/DataBar.html +487 -47
  226. data/rdoc/RubyXL/DataConsolidate.html +487 -47
  227. data/rdoc/RubyXL/DataConsolidationReference.html +487 -47
  228. data/rdoc/RubyXL/DataConsolidationReferences.html +487 -47
  229. data/rdoc/RubyXL/DataType.html +528 -53
  230. data/rdoc/RubyXL/DataValidation.html +487 -47
  231. data/rdoc/RubyXL/DataValidations.html +487 -47
  232. data/rdoc/RubyXL/DateGroupItem.html +487 -47
  233. data/rdoc/RubyXL/DefinedName.html +487 -47
  234. data/rdoc/RubyXL/DefinedNameExt.html +487 -47
  235. data/rdoc/RubyXL/DefinedNames.html +564 -47
  236. data/rdoc/RubyXL/DefinedNamesExt.html +487 -47
  237. data/rdoc/RubyXL/DocumentPropertiesFile.html +603 -86
  238. data/rdoc/RubyXL/DrawingFile.html +581 -75
  239. data/rdoc/RubyXL/DynamicFilter.html +487 -47
  240. data/rdoc/RubyXL/EmbeddedControl.html +487 -47
  241. data/rdoc/RubyXL/EmbeddedControls.html +487 -47
  242. data/rdoc/RubyXL/Extension.html +487 -47
  243. data/rdoc/RubyXL/ExtensionStorageArea.html +487 -47
  244. data/rdoc/RubyXL/Extents.html +487 -47
  245. data/rdoc/RubyXL/ExternalBook.html +487 -47
  246. data/rdoc/RubyXL/ExternalLinksFile.html +581 -75
  247. data/rdoc/RubyXL/ExternalReference.html +487 -47
  248. data/rdoc/RubyXL/ExternalReferences.html +487 -47
  249. data/rdoc/RubyXL/ExtraColorSchemeList.html +487 -47
  250. data/rdoc/RubyXL/FieldItem.html +487 -47
  251. data/rdoc/RubyXL/FileRecoveryProperties.html +487 -47
  252. data/rdoc/RubyXL/FileSharing.html +487 -47
  253. data/rdoc/RubyXL/FileVersion.html +487 -47
  254. data/rdoc/RubyXL/Fill.html +540 -68
  255. data/rdoc/RubyXL/Fills.html +540 -68
  256. data/rdoc/RubyXL/FilterContainer.html +487 -47
  257. data/rdoc/RubyXL/FloatNode.html +493 -47
  258. data/rdoc/RubyXL/FloatValue.html +493 -47
  259. data/rdoc/RubyXL/Font.html +551 -71
  260. data/rdoc/RubyXL/FontConvenienceMethods.html +938 -183
  261. data/rdoc/RubyXL/FontScheme.html +487 -47
  262. data/rdoc/RubyXL/Fonts.html +540 -68
  263. data/rdoc/RubyXL/Formula.html +487 -47
  264. data/rdoc/RubyXL/FunctionGroup.html +487 -47
  265. data/rdoc/RubyXL/FunctionGroups.html +487 -47
  266. data/rdoc/RubyXL/GenericStorageObject.html +671 -103
  267. data/rdoc/RubyXL/GradientFill.html +487 -47
  268. data/rdoc/RubyXL/HeaderFooterSettings.html +487 -47
  269. data/rdoc/RubyXL/Hyperlink.html +487 -47
  270. data/rdoc/RubyXL/HyperlinkRelFile.html +503 -49
  271. data/rdoc/RubyXL/Hyperlinks.html +487 -47
  272. data/rdoc/RubyXL/IconFilter.html +487 -47
  273. data/rdoc/RubyXL/IconSet.html +487 -47
  274. data/rdoc/RubyXL/IgnoredError.html +487 -47
  275. data/rdoc/RubyXL/IgnoredErrors.html +487 -47
  276. data/rdoc/RubyXL/IndexedColors.html +487 -47
  277. data/rdoc/RubyXL/InputCells.html +487 -47
  278. data/rdoc/RubyXL/IntegerNode.html +493 -47
  279. data/rdoc/RubyXL/IntegerValue.html +493 -47
  280. data/rdoc/RubyXL/LegacyCell.html +534 -65
  281. data/rdoc/RubyXL/LegacyWorksheet.html +727 -114
  282. data/rdoc/RubyXL/MRUColors.html +487 -47
  283. data/rdoc/RubyXL/MacrosFile.html +510 -50
  284. data/rdoc/RubyXL/MergedCell.html +487 -47
  285. data/rdoc/RubyXL/MergedCells.html +487 -47
  286. data/rdoc/RubyXL/NumFmt.html +487 -47
  287. data/rdoc/RubyXL/NumberFormat.html +540 -68
  288. data/rdoc/RubyXL/NumberFormats.html +551 -71
  289. data/rdoc/RubyXL/OLEObject.html +487 -47
  290. data/rdoc/RubyXL/OLEObjectFile.html +510 -50
  291. data/rdoc/RubyXL/OLEObjects.html +487 -47
  292. data/rdoc/RubyXL/OLESize.html +487 -47
  293. data/rdoc/RubyXL/OOXMLContainerObject.html +756 -137
  294. data/rdoc/RubyXL/OOXMLIgnored.html +598 -80
  295. data/rdoc/RubyXL/OOXMLObject.html +506 -52
  296. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +741 -151
  297. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +834 -169
  298. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +894 -170
  299. data/rdoc/RubyXL/OOXMLTopLevelObject.html +735 -131
  300. data/rdoc/RubyXL/OdbcOleDbProperties.html +487 -47
  301. data/rdoc/RubyXL/Offset.html +487 -47
  302. data/rdoc/RubyXL/OlapProperties.html +487 -47
  303. data/rdoc/RubyXL/OleItem.html +487 -47
  304. data/rdoc/RubyXL/OleItems.html +487 -47
  305. data/rdoc/RubyXL/OleLink.html +487 -47
  306. data/rdoc/RubyXL/OutlineProperties.html +487 -47
  307. data/rdoc/RubyXL/PageMargins.html +487 -47
  308. data/rdoc/RubyXL/PageSetup.html +487 -47
  309. data/rdoc/RubyXL/PageSetupProperties.html +487 -47
  310. data/rdoc/RubyXL/Pane.html +487 -47
  311. data/rdoc/RubyXL/Parser.html +578 -78
  312. data/rdoc/RubyXL/PatternFill.html +487 -47
  313. data/rdoc/RubyXL/PersonMetadata.html +568 -0
  314. data/rdoc/RubyXL/PhoneticProperties.html +487 -47
  315. data/rdoc/RubyXL/PhoneticRun.html +487 -47
  316. data/rdoc/RubyXL/PivotArea.html +487 -47
  317. data/rdoc/RubyXL/PivotCache.html +487 -47
  318. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +529 -55
  319. data/rdoc/RubyXL/PivotCacheRecordsFile.html +510 -50
  320. data/rdoc/RubyXL/PivotCaches.html +487 -47
  321. data/rdoc/RubyXL/PivotReference.html +487 -47
  322. data/rdoc/RubyXL/PivotReferences.html +487 -47
  323. data/rdoc/RubyXL/PivotTableFile.html +529 -55
  324. data/rdoc/RubyXL/PivotTableSelection.html +487 -47
  325. data/rdoc/RubyXL/PresetGeometry.html +487 -47
  326. data/rdoc/RubyXL/PrintOptions.html +487 -47
  327. data/rdoc/RubyXL/PrinterSettingsFile.html +510 -50
  328. data/rdoc/RubyXL/ProtectedRange.html +487 -47
  329. data/rdoc/RubyXL/ProtectedRanges.html +487 -47
  330. data/rdoc/RubyXL/Protection.html +487 -47
  331. data/rdoc/RubyXL/QueryParameter.html +487 -47
  332. data/rdoc/RubyXL/QueryParameters.html +487 -47
  333. data/rdoc/RubyXL/QueryTable.html +575 -75
  334. data/rdoc/RubyXL/QueryTableDeletedField.html +487 -47
  335. data/rdoc/RubyXL/QueryTableDeletedFields.html +487 -47
  336. data/rdoc/RubyXL/QueryTableField.html +487 -47
  337. data/rdoc/RubyXL/QueryTableFields.html +487 -47
  338. data/rdoc/RubyXL/QueryTableRefresh.html +487 -47
  339. data/rdoc/RubyXL/RID.html +493 -47
  340. data/rdoc/RubyXL/RawOOXML.html +605 -85
  341. data/rdoc/RubyXL/Reference.html +1109 -207
  342. data/rdoc/RubyXL/Relationship.html +493 -47
  343. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +540 -65
  344. data/rdoc/RubyXL/RelationshipSupport.html +745 -126
  345. data/rdoc/RubyXL/RevisionPointer.html +487 -47
  346. data/rdoc/RubyXL/RichText.html +542 -70
  347. data/rdoc/RubyXL/RichTextRun.html +540 -68
  348. data/rdoc/RubyXL/Row.html +812 -148
  349. data/rdoc/RubyXL/RowExt.html +487 -47
  350. data/rdoc/RubyXL/RunProperties.html +487 -47
  351. data/rdoc/RubyXL/Scenario.html +487 -47
  352. data/rdoc/RubyXL/Scenarios.html +487 -47
  353. data/rdoc/RubyXL/Selection.html +540 -68
  354. data/rdoc/RubyXL/ShapeGuide.html +487 -47
  355. data/rdoc/RubyXL/ShapeTextRectangle.html +487 -47
  356. data/rdoc/RubyXL/SharedStringsTable.html +775 -137
  357. data/rdoc/RubyXL/Sheet.html +487 -47
  358. data/rdoc/RubyXL/SheetCalculationProperties.html +487 -47
  359. data/rdoc/RubyXL/SheetData.html +572 -78
  360. data/rdoc/RubyXL/SheetDataExt.html +487 -47
  361. data/rdoc/RubyXL/SheetDataSet.html +487 -47
  362. data/rdoc/RubyXL/SheetMetadata.html +510 -50
  363. data/rdoc/RubyXL/SheetName.html +487 -47
  364. data/rdoc/RubyXL/SheetNames.html +487 -47
  365. data/rdoc/RubyXL/Sheets.html +487 -47
  366. data/rdoc/RubyXL/SlicerCacheFile.html +510 -50
  367. data/rdoc/RubyXL/SlicerFile.html +510 -50
  368. data/rdoc/RubyXL/SmartTagProperties.html +487 -47
  369. data/rdoc/RubyXL/SmartTagType.html +487 -47
  370. data/rdoc/RubyXL/SmartTagTypes.html +487 -47
  371. data/rdoc/RubyXL/SmartTags.html +487 -47
  372. data/rdoc/RubyXL/SortCondition.html +487 -47
  373. data/rdoc/RubyXL/SortState.html +487 -47
  374. data/rdoc/RubyXL/Sqref.html +599 -81
  375. data/rdoc/RubyXL/Stop.html +487 -47
  376. data/rdoc/RubyXL/StringNode.html +493 -47
  377. data/rdoc/RubyXL/StringNodeW3C.html +598 -80
  378. data/rdoc/RubyXL/StringValue.html +493 -47
  379. data/rdoc/RubyXL/Stylesheet.html +707 -114
  380. data/rdoc/RubyXL/TableFile.html +510 -50
  381. data/rdoc/RubyXL/TableParts.html +493 -47
  382. data/rdoc/RubyXL/TableStyle.html +487 -47
  383. data/rdoc/RubyXL/TableStyles.html +487 -47
  384. data/rdoc/RubyXL/Text.html +591 -83
  385. data/rdoc/RubyXL/TextImportSettings.html +487 -47
  386. data/rdoc/RubyXL/Theme.html +651 -103
  387. data/rdoc/RubyXL/ThemeElements.html +487 -47
  388. data/rdoc/RubyXL/ThumbnailFile.html +510 -50
  389. data/rdoc/RubyXL/Top10.html +487 -47
  390. data/rdoc/RubyXL/VMLDrawingFile.html +530 -56
  391. data/rdoc/RubyXL/Variant.html +487 -47
  392. data/rdoc/RubyXL/Vector.html +540 -68
  393. data/rdoc/RubyXL/VectorValue.html +493 -47
  394. data/rdoc/RubyXL/VisualProperties.html +487 -47
  395. data/rdoc/RubyXL/WebPublishObject.html +487 -47
  396. data/rdoc/RubyXL/WebPublishObjects.html +487 -47
  397. data/rdoc/RubyXL/WebPublishingItem.html +487 -47
  398. data/rdoc/RubyXL/WebPublishingItems.html +487 -47
  399. data/rdoc/RubyXL/WebPublishingProperties.html +487 -47
  400. data/rdoc/RubyXL/WebQueryProperties.html +487 -47
  401. data/rdoc/RubyXL/Workbook.html +1560 -367
  402. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +1069 -226
  403. data/rdoc/RubyXL/WorkbookProperties.html +487 -47
  404. data/rdoc/RubyXL/WorkbookProtection.html +487 -47
  405. data/rdoc/RubyXL/WorkbookRoot.html +741 -123
  406. data/rdoc/RubyXL/WorkbookView.html +487 -47
  407. data/rdoc/RubyXL/WorkbookViews.html +487 -47
  408. data/rdoc/RubyXL/Worksheet.html +840 -154
  409. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +2725 -699
  410. data/rdoc/RubyXL/WorksheetDimensions.html +487 -47
  411. data/rdoc/RubyXL/WorksheetFormatProperties.html +493 -47
  412. data/rdoc/RubyXL/WorksheetProperties.html +487 -47
  413. data/rdoc/RubyXL/WorksheetProtection.html +487 -47
  414. data/rdoc/RubyXL/WorksheetView.html +487 -47
  415. data/rdoc/RubyXL/WorksheetViews.html +487 -47
  416. data/rdoc/RubyXL/XF.html +487 -47
  417. data/rdoc/RubyXL.html +1200 -163
  418. data/rdoc/created.rid +38 -38
  419. data/rdoc/css/rdoc.css +1670 -354
  420. data/rdoc/index.html +418 -433
  421. data/rdoc/js/aliki.js +511 -0
  422. data/rdoc/js/bash_highlighter.js +167 -0
  423. data/rdoc/js/c_highlighter.js +299 -0
  424. data/rdoc/js/{search.js → search_controller.js} +31 -12
  425. data/rdoc/js/search_data.js +1 -0
  426. data/rdoc/js/{navigation.js → search_navigation.js} +10 -10
  427. data/rdoc/js/search_ranker.js +239 -0
  428. data/rdoc/js/theme-toggle.js +112 -0
  429. data/rubyXL.gemspec +27 -70
  430. data/spec/lib/cell_spec.rb +56 -4
  431. data/spec/lib/color_spec.rb +7 -0
  432. data/spec/lib/parser_spec.rb +8 -5
  433. data/spec/lib/reference_spec.rb +69 -6
  434. data/spec/lib/rgb_color_spec.rb +2 -0
  435. data/spec/lib/stylesheet_spec.rb +2 -0
  436. data/spec/lib/text_spec.rb +3 -1
  437. data/spec/lib/workbook_spec.rb +6 -4
  438. data/spec/lib/worksheet_spec.rb +29 -17
  439. metadata +31 -47
  440. data/Gemfile.lock +0 -124
  441. data/rdoc/css/fonts.css +0 -167
  442. data/rdoc/fonts/Lato-Light.ttf +0 -0
  443. data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
  444. data/rdoc/fonts/Lato-Regular.ttf +0 -0
  445. data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  446. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  447. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  448. data/rdoc/images/add.png +0 -0
  449. data/rdoc/images/arrow_up.png +0 -0
  450. data/rdoc/images/brick.png +0 -0
  451. data/rdoc/images/brick_link.png +0 -0
  452. data/rdoc/images/bug.png +0 -0
  453. data/rdoc/images/bullet_black.png +0 -0
  454. data/rdoc/images/bullet_toggle_minus.png +0 -0
  455. data/rdoc/images/bullet_toggle_plus.png +0 -0
  456. data/rdoc/images/date.png +0 -0
  457. data/rdoc/images/delete.png +0 -0
  458. data/rdoc/images/find.png +0 -0
  459. data/rdoc/images/loadingAnimation.gif +0 -0
  460. data/rdoc/images/macFFBgHack.png +0 -0
  461. data/rdoc/images/package.png +0 -0
  462. data/rdoc/images/page_green.png +0 -0
  463. data/rdoc/images/page_white_text.png +0 -0
  464. data/rdoc/images/page_white_width.png +0 -0
  465. data/rdoc/images/plugin.png +0 -0
  466. data/rdoc/images/ruby.png +0 -0
  467. data/rdoc/images/tag_blue.png +0 -0
  468. data/rdoc/images/tag_green.png +0 -0
  469. data/rdoc/images/transparent.png +0 -0
  470. data/rdoc/images/wrench.png +0 -0
  471. data/rdoc/images/wrench_orange.png +0 -0
  472. data/rdoc/images/zoom.png +0 -0
  473. data/rdoc/js/darkfish.js +0 -84
  474. data/rdoc/js/navigation.js.gz +0 -0
  475. data/rdoc/js/search_index.js +0 -1
  476. data/rdoc/js/search_index.js.gz +0 -0
  477. data/rdoc/js/searcher.js +0 -229
  478. data/rdoc/js/searcher.js.gz +0 -0
  479. data/rdoc/table_of_contents.html +0 -3010
@@ -0,0 +1,299 @@
1
+ /**
2
+ * Client-side C syntax highlighter for RDoc
3
+ */
4
+
5
+ (function() {
6
+ 'use strict';
7
+
8
+ // C control flow and storage class keywords
9
+ const C_KEYWORDS = new Set([
10
+ 'auto', 'break', 'case', 'continue', 'default', 'do', 'else', 'extern',
11
+ 'for', 'goto', 'if', 'inline', 'register', 'return', 'sizeof', 'static',
12
+ 'switch', 'while',
13
+ '_Alignas', '_Alignof', '_Generic', '_Noreturn', '_Static_assert', '_Thread_local'
14
+ ]);
15
+
16
+ // C type keywords and type qualifiers
17
+ const C_TYPE_KEYWORDS = new Set([
18
+ 'bool', 'char', 'const', 'double', 'enum', 'float', 'int', 'long',
19
+ 'restrict', 'short', 'signed', 'struct', 'typedef', 'union', 'unsigned',
20
+ 'void', 'volatile', '_Atomic', '_Bool', '_Complex', '_Imaginary'
21
+ ]);
22
+
23
+ // Library-defined types (typedef'd in headers, not language keywords)
24
+ // Includes: Ruby C API types (VALUE, ID), POSIX types (size_t, ssize_t),
25
+ // fixed-width integer types (uint32_t, int64_t), and standard I/O types (FILE)
26
+ const C_TYPES = new Set([
27
+ 'VALUE', 'ID', 'size_t', 'ssize_t', 'ptrdiff_t', 'uintptr_t', 'intptr_t',
28
+ 'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
29
+ 'int8_t', 'int16_t', 'int32_t', 'int64_t',
30
+ 'FILE', 'DIR', 'va_list'
31
+ ]);
32
+
33
+ // Common Ruby VALUE macros and boolean literals
34
+ const RUBY_MACROS = new Set([
35
+ 'Qtrue', 'Qfalse', 'Qnil', 'Qundef', 'NULL', 'TRUE', 'FALSE', 'true', 'false'
36
+ ]);
37
+
38
+ const OPERATORS = new Set([
39
+ '==', '!=', '<=', '>=', '&&', '||', '<<', '>>', '++', '--',
40
+ '+=', '-=', '*=', '/=', '%=', '&=', '|=', '^=', '->',
41
+ '+', '-', '*', '/', '%', '<', '>', '=', '!', '&', '|', '^', '~'
42
+ ]);
43
+
44
+ // Single character that can start an operator
45
+ const OPERATOR_CHARS = new Set('+-*/%<>=!&|^~');
46
+
47
+ function isMacro(word) {
48
+ return RUBY_MACROS.has(word) || /^[A-Z][A-Z0-9_]*$/.test(word);
49
+ }
50
+
51
+ function isType(word) {
52
+ return C_TYPE_KEYWORDS.has(word) || C_TYPES.has(word) || /_t$/.test(word);
53
+ }
54
+
55
+ /**
56
+ * Escape HTML special characters
57
+ */
58
+ function escapeHtml(text) {
59
+ return text
60
+ .replace(/&/g, '&amp;')
61
+ .replace(/</g, '&lt;')
62
+ .replace(/>/g, '&gt;')
63
+ .replace(/"/g, '&quot;')
64
+ .replace(/'/g, '&#39;');
65
+ }
66
+
67
+ /**
68
+ * Check if position is at line start (only whitespace before it)
69
+ */
70
+ function isLineStart(code, pos) {
71
+ if (pos === 0) return true;
72
+ for (let i = pos - 1; i >= 0; i--) {
73
+ const ch = code[i];
74
+ if (ch === '\n') return true;
75
+ if (ch !== ' ' && ch !== '\t') return false;
76
+ }
77
+ return true;
78
+ }
79
+
80
+ /**
81
+ * Highlight C source code
82
+ */
83
+ function highlightC(code) {
84
+ const tokens = [];
85
+ let i = 0;
86
+ const len = code.length;
87
+
88
+ while (i < len) {
89
+ const char = code[i];
90
+
91
+ // Multi-line comment
92
+ if (char === '/' && code[i + 1] === '*') {
93
+ let end = code.indexOf('*/', i + 2);
94
+ end = (end === -1) ? len : end + 2;
95
+ const comment = code.substring(i, end);
96
+ tokens.push('<span class="c-comment">', escapeHtml(comment), '</span>');
97
+ i = end;
98
+ continue;
99
+ }
100
+
101
+ // Single-line comment
102
+ if (char === '/' && code[i + 1] === '/') {
103
+ const end = code.indexOf('\n', i);
104
+ const commentEnd = (end === -1) ? len : end;
105
+ const comment = code.substring(i, commentEnd);
106
+ tokens.push('<span class="c-comment">', escapeHtml(comment), '</span>');
107
+ i = commentEnd;
108
+ continue;
109
+ }
110
+
111
+ // Preprocessor directive (must be at line start)
112
+ if (char === '#' && isLineStart(code, i)) {
113
+ let end = i + 1;
114
+ while (end < len && code[end] !== '\n') {
115
+ if (code[end] === '\\' && end + 1 < len && code[end + 1] === '\n') {
116
+ end += 2; // Handle line continuation
117
+ } else {
118
+ end++;
119
+ }
120
+ }
121
+ const preprocessor = code.substring(i, end);
122
+ tokens.push('<span class="c-preprocessor">', escapeHtml(preprocessor), '</span>');
123
+ i = end;
124
+ continue;
125
+ }
126
+
127
+ // String literal
128
+ if (char === '"') {
129
+ let end = i + 1;
130
+ while (end < len && code[end] !== '"') {
131
+ if (code[end] === '\\' && end + 1 < len) {
132
+ end += 2; // Skip escaped character
133
+ } else {
134
+ end++;
135
+ }
136
+ }
137
+ if (end < len) end++; // Include closing quote
138
+ const string = code.substring(i, end);
139
+ tokens.push('<span class="c-string">', escapeHtml(string), '</span>');
140
+ i = end;
141
+ continue;
142
+ }
143
+
144
+ // Character literal
145
+ if (char === "'") {
146
+ let end = i + 1;
147
+ // Handle escape sequences like '\n', '\\', '\''
148
+ if (end < len && code[end] === '\\' && end + 1 < len) {
149
+ end += 2; // Skip backslash and escaped char
150
+ } else if (end < len) {
151
+ end++; // Single character
152
+ }
153
+ if (end < len && code[end] === "'") end++; // Closing quote
154
+ const charLit = code.substring(i, end);
155
+ tokens.push('<span class="c-value">', escapeHtml(charLit), '</span>');
156
+ i = end;
157
+ continue;
158
+ }
159
+
160
+ // Number (integer or float)
161
+ if (char >= '0' && char <= '9') {
162
+ let end = i;
163
+
164
+ // Hexadecimal
165
+ if (char === '0' && (code[i + 1] === 'x' || code[i + 1] === 'X')) {
166
+ end = i + 2;
167
+ while (end < len) {
168
+ const ch = code[end];
169
+ if ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F')) {
170
+ end++;
171
+ } else {
172
+ break;
173
+ }
174
+ }
175
+ }
176
+ // Octal
177
+ else if (char === '0' && code[i + 1] >= '0' && code[i + 1] <= '7') {
178
+ end = i + 1;
179
+ while (end < len && code[end] >= '0' && code[end] <= '7') end++;
180
+ }
181
+ // Decimal/Float
182
+ else {
183
+ while (end < len) {
184
+ const ch = code[end];
185
+ if ((ch >= '0' && ch <= '9') || ch === '.') {
186
+ end++;
187
+ } else {
188
+ break;
189
+ }
190
+ }
191
+ // Scientific notation
192
+ if (end < len && (code[end] === 'e' || code[end] === 'E')) {
193
+ end++;
194
+ if (end < len && (code[end] === '+' || code[end] === '-')) end++;
195
+ while (end < len && code[end] >= '0' && code[end] <= '9') end++;
196
+ }
197
+ }
198
+
199
+ // Suffix (u, l, f, etc.)
200
+ while (end < len) {
201
+ const ch = code[end];
202
+ if (ch === 'u' || ch === 'U' || ch === 'l' || ch === 'L' || ch === 'f' || ch === 'F') {
203
+ end++;
204
+ } else {
205
+ break;
206
+ }
207
+ }
208
+
209
+ const number = code.substring(i, end);
210
+ tokens.push('<span class="c-value">', escapeHtml(number), '</span>');
211
+ i = end;
212
+ continue;
213
+ }
214
+
215
+ // Identifier or keyword
216
+ if ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || char === '_') {
217
+ let end = i + 1;
218
+ while (end < len) {
219
+ const ch = code[end];
220
+ if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
221
+ (ch >= '0' && ch <= '9') || ch === '_') {
222
+ end++;
223
+ } else {
224
+ break;
225
+ }
226
+ }
227
+ const word = code.substring(i, end);
228
+
229
+ if (C_KEYWORDS.has(word)) {
230
+ tokens.push('<span class="c-keyword">', escapeHtml(word), '</span>');
231
+ } else if (isType(word)) {
232
+ // Check types before macros (VALUE, ID are types, not macros)
233
+ tokens.push('<span class="c-type">', escapeHtml(word), '</span>');
234
+ } else if (isMacro(word)) {
235
+ tokens.push('<span class="c-macro">', escapeHtml(word), '</span>');
236
+ } else {
237
+ // Check if followed by '(' -> function name
238
+ let nextCharIdx = end;
239
+ while (nextCharIdx < len && (code[nextCharIdx] === ' ' || code[nextCharIdx] === '\t')) {
240
+ nextCharIdx++;
241
+ }
242
+ if (nextCharIdx < len && code[nextCharIdx] === '(') {
243
+ tokens.push('<span class="c-function">', escapeHtml(word), '</span>');
244
+ } else {
245
+ tokens.push('<span class="c-identifier">', escapeHtml(word), '</span>');
246
+ }
247
+ }
248
+ i = end;
249
+ continue;
250
+ }
251
+
252
+ // Operators
253
+ if (OPERATOR_CHARS.has(char)) {
254
+ let op = char;
255
+ // Check for two-character operators
256
+ if (i + 1 < len) {
257
+ const twoChar = char + code[i + 1];
258
+ if (OPERATORS.has(twoChar)) {
259
+ op = twoChar;
260
+ }
261
+ }
262
+ tokens.push('<span class="c-operator">', escapeHtml(op), '</span>');
263
+ i += op.length;
264
+ continue;
265
+ }
266
+
267
+ // Everything else (punctuation, whitespace)
268
+ tokens.push(escapeHtml(char));
269
+ i++;
270
+ }
271
+
272
+ return tokens.join('');
273
+ }
274
+
275
+ /**
276
+ * Initialize C syntax highlighting on page load
277
+ */
278
+ function initHighlighting() {
279
+ const codeBlocks = document.querySelectorAll('pre.c');
280
+
281
+ codeBlocks.forEach(block => {
282
+ if (block.getAttribute('data-highlighted') === 'true') {
283
+ return;
284
+ }
285
+
286
+ const code = block.textContent;
287
+ const highlighted = highlightC(code);
288
+
289
+ block.innerHTML = highlighted;
290
+ block.setAttribute('data-highlighted', 'true');
291
+ });
292
+ }
293
+
294
+ if (document.readyState === 'loading') {
295
+ document.addEventListener('DOMContentLoaded', initHighlighting);
296
+ } else {
297
+ initHighlighting();
298
+ }
299
+ })();
@@ -1,23 +1,23 @@
1
- Search = function(data, input, result) {
1
+ SearchController = function(data, input, result) {
2
2
  this.data = data;
3
3
  this.input = input;
4
4
  this.result = result;
5
5
 
6
6
  this.current = null;
7
7
  this.view = this.result.parentNode;
8
- this.searcher = new Searcher(data.index);
8
+ this.ranker = new SearchRanker(data.index);
9
9
  this.init();
10
10
  }
11
11
 
12
- Search.prototype = Object.assign({}, Navigation, new function() {
12
+ SearchController.prototype = Object.assign({}, SearchNavigation, new function() {
13
13
  var suid = 1;
14
14
 
15
15
  this.init = function() {
16
16
  var _this = this;
17
17
  var observer = function(e) {
18
- switch(e.keyCode) {
19
- case 38: // Event.KEY_UP
20
- case 40: // Event.KEY_DOWN
18
+ switch(e.key) {
19
+ case 'ArrowUp':
20
+ case 'ArrowDown':
21
21
  return;
22
22
  }
23
23
  _this.search(_this.input.value);
@@ -25,7 +25,7 @@ Search.prototype = Object.assign({}, Navigation, new function() {
25
25
  this.input.addEventListener('keyup', observer);
26
26
  this.input.addEventListener('click', observer); // mac's clear field
27
27
 
28
- this.searcher.ready(function(results, isLast) {
28
+ this.ranker.ready(function(results, isLast) {
29
29
  _this.addResults(results, isLast);
30
30
  })
31
31
 
@@ -34,7 +34,9 @@ Search.prototype = Object.assign({}, Navigation, new function() {
34
34
  }
35
35
 
36
36
  this.search = function(value, selectFirstMatch) {
37
- value = value.trim().toLowerCase();
37
+ this.selectFirstMatch = selectFirstMatch;
38
+
39
+ value = value.trim();
38
40
  if (value) {
39
41
  this.setNavigationActive(true);
40
42
  } else {
@@ -51,7 +53,7 @@ Search.prototype = Object.assign({}, Navigation, new function() {
51
53
  this.result.setAttribute('aria-busy', 'true');
52
54
  this.result.setAttribute('aria-expanded', 'true');
53
55
  this.firstRun = true;
54
- this.searcher.find(value);
56
+ this.ranker.find(value);
55
57
  }
56
58
  }
57
59
 
@@ -76,7 +78,15 @@ Search.prototype = Object.assign({}, Navigation, new function() {
76
78
  //TODO: ECMAScript
77
79
  //if (jQuery.browser.msie) this.$element[0].className += '';
78
80
 
79
- if (isLast) this.result.setAttribute('aria-busy', 'false');
81
+ if (this.selectFirstMatch && this.current) {
82
+ this.selectFirstMatch = false;
83
+ this.select(this.current);
84
+ }
85
+
86
+ if (isLast) {
87
+ this.selectFirstMatch = false;
88
+ this.result.setAttribute('aria-busy', 'false');
89
+ }
80
90
  }
81
91
 
82
92
  this.move = function(isDown) {
@@ -86,7 +96,7 @@ Search.prototype = Object.assign({}, Navigation, new function() {
86
96
  this.current.classList.remove('search-selected');
87
97
  next.classList.add('search-selected');
88
98
  this.input.setAttribute('aria-activedescendant', next.getAttribute('id'));
89
- this.scrollIntoView(next, this.view);
99
+ this.scrollInElement(next, this.result);
90
100
  this.current = next;
91
101
  this.input.value = next.firstChild.firstChild.text;
92
102
  this.input.select();
@@ -101,10 +111,19 @@ Search.prototype = Object.assign({}, Navigation, new function() {
101
111
  }
102
112
 
103
113
  this.escapeHTML = function(html) {
104
- return html.replace(/[&<>]/g, function(c) {
114
+ return html.replace(/[&<>"`']/g, function(c) {
105
115
  return '&#' + c.charCodeAt(0) + ';';
106
116
  });
107
117
  }
108
118
 
119
+ this.hide = function() {
120
+ this.result.setAttribute('aria-expanded', 'false');
121
+ this.setNavigationActive(false);
122
+ }
123
+
124
+ this.show = function() {
125
+ this.result.setAttribute('aria-expanded', 'true');
126
+ this.setNavigationActive(true);
127
+ }
109
128
  });
110
129