rubyXL 3.4.39 → 3.4.40
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.
- checksums.yaml +4 -4
- data/Rakefile +107 -14
- data/VERSION +1 -1
- data/bin/console +10 -0
- data/bin/setup +3 -0
- data/lib/rubyXL/convenience_methods/cell.rb +6 -3
- data/lib/rubyXL/version.rb +3 -0
- data/lib/rubyXL.rb +1 -0
- data/rubyXL.gemspec +10 -482
- metadata +27 -430
- data/.circleci/config.yml +0 -71
- data/.codeclimate.yml +0 -3
- data/.rubocop.yml +0 -124
- data/CHANGELOG.md +0 -12
- data/Gemfile +0 -23
- data/rdoc/README_rdoc.html +0 -871
- data/rdoc/RubyXL/AExtension.html +0 -703
- data/rdoc/RubyXL/AExtensionStorageArea.html +0 -543
- data/rdoc/RubyXL/ActiveX.html +0 -654
- data/rdoc/RubyXL/ActiveXBinary.html +0 -560
- data/rdoc/RubyXL/AdjustHandleList.html +0 -539
- data/rdoc/RubyXL/Alignment.html +0 -539
- data/rdoc/RubyXL/AlternateContent.html +0 -543
- data/rdoc/RubyXL/AlternateUrls.html +0 -539
- data/rdoc/RubyXL/Authors.html +0 -539
- data/rdoc/RubyXL/AutoFilter.html +0 -539
- data/rdoc/RubyXL/AutoFilterColumn.html +0 -539
- data/rdoc/RubyXL/BinaryImageFile.html +0 -568
- data/rdoc/RubyXL/BodyProperties.html +0 -539
- data/rdoc/RubyXL/BooleanNode.html +0 -543
- data/rdoc/RubyXL/BooleanValue.html +0 -543
- data/rdoc/RubyXL/Border.html +0 -759
- data/rdoc/RubyXL/BorderEdge.html +0 -656
- data/rdoc/RubyXL/Borders.html +0 -608
- data/rdoc/RubyXL/Break.html +0 -539
- data/rdoc/RubyXL/BreakList.html +0 -539
- data/rdoc/RubyXL/CT_AdjPoint2D.html +0 -539
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +0 -539
- data/rdoc/RubyXL/CT_Backdrop.html +0 -539
- data/rdoc/RubyXL/CT_Bevel.html +0 -539
- data/rdoc/RubyXL/CT_BiLevelEffect.html +0 -539
- data/rdoc/RubyXL/CT_BlendEffect.html +0 -539
- data/rdoc/RubyXL/CT_Blip.html +0 -539
- data/rdoc/RubyXL/CT_BlipFillProperties.html +0 -539
- data/rdoc/RubyXL/CT_BlurEffect.html +0 -539
- data/rdoc/RubyXL/CT_Camera.html +0 -539
- data/rdoc/RubyXL/CT_Color.html +0 -539
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +0 -539
- data/rdoc/RubyXL/CT_ColorMapping.html +0 -539
- data/rdoc/RubyXL/CT_ColorScheme.html +0 -539
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +0 -539
- data/rdoc/RubyXL/CT_ConnectionSite.html +0 -539
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +0 -539
- data/rdoc/RubyXL/CT_DashStop.html +0 -539
- data/rdoc/RubyXL/CT_DashStopList.html +0 -539
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +0 -539
- data/rdoc/RubyXL/CT_DuotoneEffect.html +0 -539
- data/rdoc/RubyXL/CT_EffectContainer.html +0 -539
- data/rdoc/RubyXL/CT_EffectList.html +0 -539
- data/rdoc/RubyXL/CT_EffectReference.html +0 -539
- data/rdoc/RubyXL/CT_EffectStyleItem.html +0 -539
- data/rdoc/RubyXL/CT_EffectStyleList.html +0 -539
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +0 -539
- data/rdoc/RubyXL/CT_FillEffect.html +0 -539
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +0 -539
- data/rdoc/RubyXL/CT_FillStyleList.html +0 -539
- data/rdoc/RubyXL/CT_FlatText.html +0 -539
- data/rdoc/RubyXL/CT_FontCollection.html +0 -539
- data/rdoc/RubyXL/CT_FontReference.html +0 -539
- data/rdoc/RubyXL/CT_GeomGuideList.html +0 -539
- data/rdoc/RubyXL/CT_GlowEffect.html +0 -539
- data/rdoc/RubyXL/CT_GradientFillProperties.html +0 -539
- data/rdoc/RubyXL/CT_GradientStop.html +0 -539
- data/rdoc/RubyXL/CT_GradientStopList.html +0 -539
- data/rdoc/RubyXL/CT_HSLEffect.html +0 -539
- data/rdoc/RubyXL/CT_HslColor.html +0 -539
- data/rdoc/RubyXL/CT_Hyperlink.html +0 -539
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +0 -539
- data/rdoc/RubyXL/CT_LightRig.html +0 -539
- data/rdoc/RubyXL/CT_LineEndProperties.html +0 -539
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +0 -539
- data/rdoc/RubyXL/CT_LineProperties.html +0 -539
- data/rdoc/RubyXL/CT_LineStyleList.html +0 -539
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +0 -539
- data/rdoc/RubyXL/CT_LuminanceEffect.html +0 -539
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +0 -539
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +0 -539
- data/rdoc/RubyXL/CT_Path2D.html +0 -539
- data/rdoc/RubyXL/CT_Path2DArcTo.html +0 -539
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +0 -539
- data/rdoc/RubyXL/CT_Path2DList.html +0 -539
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +0 -539
- data/rdoc/RubyXL/CT_Path2DTo.html +0 -539
- data/rdoc/RubyXL/CT_PathShadeProperties.html +0 -539
- data/rdoc/RubyXL/CT_PatternFillProperties.html +0 -539
- data/rdoc/RubyXL/CT_Point3D.html +0 -539
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +0 -539
- data/rdoc/RubyXL/CT_PresetColor.html +0 -539
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +0 -539
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +0 -539
- data/rdoc/RubyXL/CT_PresetTextShape.html +0 -539
- data/rdoc/RubyXL/CT_ReflectionEffect.html +0 -539
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +0 -539
- data/rdoc/RubyXL/CT_RelativeRect.html +0 -539
- data/rdoc/RubyXL/CT_SRgbColor.html +0 -539
- data/rdoc/RubyXL/CT_ScRgbColor.html +0 -539
- data/rdoc/RubyXL/CT_Scene3D.html +0 -539
- data/rdoc/RubyXL/CT_SchemeColor.html +0 -539
- data/rdoc/RubyXL/CT_Shape3D.html +0 -539
- data/rdoc/RubyXL/CT_ShapeStyle.html +0 -539
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +0 -539
- data/rdoc/RubyXL/CT_SphereCoords.html +0 -539
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +0 -539
- data/rdoc/RubyXL/CT_StyleMatrix.html +0 -539
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +0 -539
- data/rdoc/RubyXL/CT_SupplementalFont.html +0 -539
- data/rdoc/RubyXL/CT_SystemColor.html +0 -539
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +0 -539
- data/rdoc/RubyXL/CT_TextBlipBullet.html +0 -539
- data/rdoc/RubyXL/CT_TextCharBullet.html +0 -539
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +0 -539
- data/rdoc/RubyXL/CT_TextFont.html +0 -539
- data/rdoc/RubyXL/CT_TextListStyle.html +0 -539
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +0 -539
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +0 -539
- data/rdoc/RubyXL/CT_TextSpacing.html +0 -539
- data/rdoc/RubyXL/CT_TextTabStop.html +0 -539
- data/rdoc/RubyXL/CT_TextTabStopList.html +0 -539
- data/rdoc/RubyXL/CT_TileInfoProperties.html +0 -539
- data/rdoc/RubyXL/CT_TintEffect.html +0 -539
- data/rdoc/RubyXL/CT_Transform2D.html +0 -539
- data/rdoc/RubyXL/CT_TransformEffect.html +0 -539
- data/rdoc/RubyXL/CT_Vector3D.html +0 -539
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +0 -539
- data/rdoc/RubyXL/CalculationChain.html +0 -633
- data/rdoc/RubyXL/CalculationChainCell.html +0 -539
- data/rdoc/RubyXL/CalculationProperties.html +0 -539
- data/rdoc/RubyXL/Cell.html +0 -1315
- data/rdoc/RubyXL/CellConvenienceMethods.html +0 -2311
- data/rdoc/RubyXL/CellExt.html +0 -539
- data/rdoc/RubyXL/CellSmartTag.html +0 -539
- data/rdoc/RubyXL/CellSmartTagProperty.html +0 -539
- data/rdoc/RubyXL/CellSmartTags.html +0 -539
- data/rdoc/RubyXL/CellStyle.html +0 -539
- data/rdoc/RubyXL/CellStyleXFs.html +0 -608
- data/rdoc/RubyXL/CellStyles.html +0 -608
- data/rdoc/RubyXL/CellValue.html +0 -609
- data/rdoc/RubyXL/CellWatch.html +0 -539
- data/rdoc/RubyXL/CellWatches.html +0 -539
- data/rdoc/RubyXL/CellXFs.html +0 -609
- data/rdoc/RubyXL/ChartColorsFile.html +0 -568
- data/rdoc/RubyXL/ChartFile.html +0 -664
- data/rdoc/RubyXL/ChartStyleFile.html +0 -568
- data/rdoc/RubyXL/ChartUserShapesFile.html +0 -568
- data/rdoc/RubyXL/Chartsheet.html +0 -743
- data/rdoc/RubyXL/ChartsheetPageSetup.html +0 -539
- data/rdoc/RubyXL/ChartsheetProperties.html +0 -539
- data/rdoc/RubyXL/ChartsheetProtection.html +0 -539
- data/rdoc/RubyXL/ChartsheetView.html +0 -539
- data/rdoc/RubyXL/ChartsheetViews.html +0 -539
- data/rdoc/RubyXL/Color.html +0 -629
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +0 -774
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +0 -845
- data/rdoc/RubyXL/ColorConvenienceClasses.html +0 -528
- data/rdoc/RubyXL/ColorConvenienceMethods.html +0 -606
- data/rdoc/RubyXL/ColorFilter.html +0 -539
- data/rdoc/RubyXL/ColorScale.html +0 -539
- data/rdoc/RubyXL/ColorSet.html +0 -539
- data/rdoc/RubyXL/Colors.html +0 -539
- data/rdoc/RubyXL/ColumnRange.html +0 -786
- data/rdoc/RubyXL/ColumnRanges.html +0 -773
- data/rdoc/RubyXL/Comment.html +0 -539
- data/rdoc/RubyXL/CommentList.html +0 -539
- data/rdoc/RubyXL/CommentsFile.html +0 -657
- data/rdoc/RubyXL/ConditionalFormatValue.html +0 -539
- data/rdoc/RubyXL/ConditionalFormatting.html +0 -539
- data/rdoc/RubyXL/ConditionalFormattingRule.html +0 -539
- data/rdoc/RubyXL/Connection.html +0 -539
- data/rdoc/RubyXL/ConnectionTable.html +0 -539
- data/rdoc/RubyXL/ConnectionTables.html +0 -539
- data/rdoc/RubyXL/ConnectionTextField.html +0 -539
- data/rdoc/RubyXL/ConnectionTextFields.html +0 -539
- data/rdoc/RubyXL/Connections.html +0 -633
- data/rdoc/RubyXL/ContentTypeDefault.html +0 -543
- data/rdoc/RubyXL/ContentTypeOverride.html +0 -543
- data/rdoc/RubyXL/ContentTypes.html +0 -721
- data/rdoc/RubyXL/ControlPropertiesFile.html +0 -568
- data/rdoc/RubyXL/CorePropertiesFile.html +0 -1013
- data/rdoc/RubyXL/CustomColor.html +0 -539
- data/rdoc/RubyXL/CustomColorList.html +0 -539
- data/rdoc/RubyXL/CustomFilter.html +0 -539
- data/rdoc/RubyXL/CustomFilters.html +0 -539
- data/rdoc/RubyXL/CustomGeometry.html +0 -539
- data/rdoc/RubyXL/CustomProperties.html +0 -539
- data/rdoc/RubyXL/CustomPropertiesFile.html +0 -568
- data/rdoc/RubyXL/CustomProperty.html +0 -539
- data/rdoc/RubyXL/CustomPropertyFile.html +0 -568
- data/rdoc/RubyXL/CustomSheetView.html +0 -539
- data/rdoc/RubyXL/CustomSheetViews.html +0 -539
- data/rdoc/RubyXL/CustomWorkbookView.html +0 -539
- data/rdoc/RubyXL/CustomWorkbookViews.html +0 -539
- data/rdoc/RubyXL/CustomXMLFile.html +0 -560
- data/rdoc/RubyXL/DXF.html +0 -539
- data/rdoc/RubyXL/DXFs.html +0 -539
- data/rdoc/RubyXL/DataBar.html +0 -539
- data/rdoc/RubyXL/DataConsolidate.html +0 -539
- data/rdoc/RubyXL/DataConsolidationReference.html +0 -539
- data/rdoc/RubyXL/DataConsolidationReferences.html +0 -539
- data/rdoc/RubyXL/DataType.html +0 -589
- data/rdoc/RubyXL/DataValidation.html +0 -539
- data/rdoc/RubyXL/DataValidations.html +0 -539
- data/rdoc/RubyXL/DateGroupItem.html +0 -539
- data/rdoc/RubyXL/DefinedName.html +0 -539
- data/rdoc/RubyXL/DefinedNameExt.html +0 -539
- data/rdoc/RubyXL/DefinedNames.html +0 -616
- data/rdoc/RubyXL/DefinedNamesExt.html +0 -539
- data/rdoc/RubyXL/DocumentPropertiesFile.html +0 -725
- data/rdoc/RubyXL/DrawingFile.html +0 -663
- data/rdoc/RubyXL/DynamicFilter.html +0 -539
- data/rdoc/RubyXL/EmbeddedControl.html +0 -539
- data/rdoc/RubyXL/EmbeddedControls.html +0 -539
- data/rdoc/RubyXL/Extension.html +0 -539
- data/rdoc/RubyXL/ExtensionStorageArea.html +0 -539
- data/rdoc/RubyXL/Extents.html +0 -539
- data/rdoc/RubyXL/ExternalBook.html +0 -539
- data/rdoc/RubyXL/ExternalLinksFile.html +0 -659
- data/rdoc/RubyXL/ExternalReference.html +0 -539
- data/rdoc/RubyXL/ExternalReferences.html +0 -539
- data/rdoc/RubyXL/ExtraColorSchemeList.html +0 -539
- data/rdoc/RubyXL/FieldItem.html +0 -539
- data/rdoc/RubyXL/FileRecoveryProperties.html +0 -539
- data/rdoc/RubyXL/FileSharing.html +0 -539
- data/rdoc/RubyXL/FileVersion.html +0 -539
- data/rdoc/RubyXL/Fill.html +0 -608
- data/rdoc/RubyXL/Fills.html +0 -608
- data/rdoc/RubyXL/FilterContainer.html +0 -539
- data/rdoc/RubyXL/FloatNode.html +0 -543
- data/rdoc/RubyXL/FloatValue.html +0 -543
- data/rdoc/RubyXL/Font.html +0 -626
- data/rdoc/RubyXL/FontConvenienceMethods.html +0 -1169
- data/rdoc/RubyXL/FontScheme.html +0 -539
- data/rdoc/RubyXL/Fonts.html +0 -608
- data/rdoc/RubyXL/Formula.html +0 -539
- data/rdoc/RubyXL/FunctionGroup.html +0 -539
- data/rdoc/RubyXL/FunctionGroups.html +0 -539
- data/rdoc/RubyXL/GenericStorageObject.html +0 -803
- data/rdoc/RubyXL/GradientFill.html +0 -539
- data/rdoc/RubyXL/HeaderFooterSettings.html +0 -539
- data/rdoc/RubyXL/Hyperlink.html +0 -539
- data/rdoc/RubyXL/HyperlinkRelFile.html +0 -560
- data/rdoc/RubyXL/Hyperlinks.html +0 -539
- data/rdoc/RubyXL/IconFilter.html +0 -539
- data/rdoc/RubyXL/IconSet.html +0 -539
- data/rdoc/RubyXL/IgnoredError.html +0 -539
- data/rdoc/RubyXL/IgnoredErrors.html +0 -539
- data/rdoc/RubyXL/IndexedColors.html +0 -539
- data/rdoc/RubyXL/InputCells.html +0 -539
- data/rdoc/RubyXL/IntegerNode.html +0 -543
- data/rdoc/RubyXL/IntegerValue.html +0 -543
- data/rdoc/RubyXL/LegacyCell.html +0 -597
- data/rdoc/RubyXL/LegacyWorksheet.html +0 -760
- data/rdoc/RubyXL/MRUColors.html +0 -539
- data/rdoc/RubyXL/MacrosFile.html +0 -568
- data/rdoc/RubyXL/MergedCell.html +0 -539
- data/rdoc/RubyXL/MergedCells.html +0 -539
- data/rdoc/RubyXL/NumFmt.html +0 -539
- data/rdoc/RubyXL/NumberFormat.html +0 -609
- data/rdoc/RubyXL/NumberFormats.html +0 -625
- data/rdoc/RubyXL/OLEObject.html +0 -539
- data/rdoc/RubyXL/OLEObjectFile.html +0 -568
- data/rdoc/RubyXL/OLEObjects.html +0 -539
- data/rdoc/RubyXL/OLESize.html +0 -539
- data/rdoc/RubyXL/OOXMLContainerObject.html +0 -909
- data/rdoc/RubyXL/OOXMLIgnored.html +0 -681
- data/rdoc/RubyXL/OOXMLObject.html +0 -561
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +0 -1034
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +0 -1091
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +0 -1174
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +0 -891
- data/rdoc/RubyXL/OdbcOleDbProperties.html +0 -539
- data/rdoc/RubyXL/Offset.html +0 -539
- data/rdoc/RubyXL/OlapProperties.html +0 -539
- data/rdoc/RubyXL/OleItem.html +0 -539
- data/rdoc/RubyXL/OleItems.html +0 -539
- data/rdoc/RubyXL/OleLink.html +0 -539
- data/rdoc/RubyXL/OutlineProperties.html +0 -539
- data/rdoc/RubyXL/PageMargins.html +0 -539
- data/rdoc/RubyXL/PageSetup.html +0 -539
- data/rdoc/RubyXL/PageSetupProperties.html +0 -539
- data/rdoc/RubyXL/Pane.html +0 -539
- data/rdoc/RubyXL/Parser.html +0 -670
- data/rdoc/RubyXL/PatternFill.html +0 -539
- data/rdoc/RubyXL/PersonMetadata.html +0 -568
- data/rdoc/RubyXL/PhoneticProperties.html +0 -539
- data/rdoc/RubyXL/PhoneticRun.html +0 -539
- data/rdoc/RubyXL/PivotArea.html +0 -539
- data/rdoc/RubyXL/PivotCache.html +0 -539
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +0 -590
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +0 -568
- data/rdoc/RubyXL/PivotCaches.html +0 -539
- data/rdoc/RubyXL/PivotReference.html +0 -539
- data/rdoc/RubyXL/PivotReferences.html +0 -539
- data/rdoc/RubyXL/PivotSelection.html +0 -539
- data/rdoc/RubyXL/PivotTableFile.html +0 -590
- data/rdoc/RubyXL/PresetGeometry.html +0 -539
- data/rdoc/RubyXL/PrintOptions.html +0 -539
- data/rdoc/RubyXL/PrinterSettingsFile.html +0 -568
- data/rdoc/RubyXL/ProtectedRange.html +0 -539
- data/rdoc/RubyXL/ProtectedRanges.html +0 -539
- data/rdoc/RubyXL/Protection.html +0 -539
- data/rdoc/RubyXL/QueryParameter.html +0 -539
- data/rdoc/RubyXL/QueryParameters.html +0 -539
- data/rdoc/RubyXL/QueryTable.html +0 -655
- data/rdoc/RubyXL/QueryTableDeletedField.html +0 -539
- data/rdoc/RubyXL/QueryTableDeletedFields.html +0 -539
- data/rdoc/RubyXL/QueryTableField.html +0 -539
- data/rdoc/RubyXL/QueryTableFields.html +0 -539
- data/rdoc/RubyXL/QueryTableRefresh.html +0 -539
- data/rdoc/RubyXL/RID.html +0 -543
- data/rdoc/RubyXL/RawOOXML.html +0 -703
- data/rdoc/RubyXL/Reference.html +0 -1332
- data/rdoc/RubyXL/Relationship.html +0 -543
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +0 -604
- data/rdoc/RubyXL/RelationshipSupport.html +0 -943
- data/rdoc/RubyXL/RevisionPointer.html +0 -539
- data/rdoc/RubyXL/RichText.html +0 -611
- data/rdoc/RubyXL/RichTextRun.html +0 -608
- data/rdoc/RubyXL/Row.html +0 -1003
- data/rdoc/RubyXL/RowExt.html +0 -539
- data/rdoc/RubyXL/RunProperties.html +0 -539
- data/rdoc/RubyXL/Scenario.html +0 -539
- data/rdoc/RubyXL/Scenarios.html +0 -539
- data/rdoc/RubyXL/Selection.html +0 -616
- data/rdoc/RubyXL/ShapeGuide.html +0 -539
- data/rdoc/RubyXL/ShapeTextRectangle.html +0 -539
- data/rdoc/RubyXL/SharedStringsTable.html +0 -952
- data/rdoc/RubyXL/Sheet.html +0 -539
- data/rdoc/RubyXL/SheetCalculationProperties.html +0 -539
- data/rdoc/RubyXL/SheetData.html +0 -652
- data/rdoc/RubyXL/SheetDataExt.html +0 -539
- data/rdoc/RubyXL/SheetDataSet.html +0 -539
- data/rdoc/RubyXL/SheetMetadata.html +0 -568
- data/rdoc/RubyXL/SheetName.html +0 -539
- data/rdoc/RubyXL/SheetNames.html +0 -539
- data/rdoc/RubyXL/Sheets.html +0 -539
- data/rdoc/RubyXL/SlicerCacheFile.html +0 -568
- data/rdoc/RubyXL/SlicerFile.html +0 -568
- data/rdoc/RubyXL/SmartTagProperties.html +0 -539
- data/rdoc/RubyXL/SmartTagType.html +0 -539
- data/rdoc/RubyXL/SmartTagTypes.html +0 -539
- data/rdoc/RubyXL/SmartTags.html +0 -539
- data/rdoc/RubyXL/SortCondition.html +0 -539
- data/rdoc/RubyXL/SortState.html +0 -539
- data/rdoc/RubyXL/Sqref.html +0 -681
- data/rdoc/RubyXL/Stop.html +0 -539
- data/rdoc/RubyXL/StringNode.html +0 -543
- data/rdoc/RubyXL/StringNodeW3C.html +0 -681
- data/rdoc/RubyXL/StringValue.html +0 -543
- data/rdoc/RubyXL/Stylesheet.html +0 -864
- data/rdoc/RubyXL/TableFile.html +0 -568
- data/rdoc/RubyXL/TableParts.html +0 -543
- data/rdoc/RubyXL/TableStyle.html +0 -539
- data/rdoc/RubyXL/TableStyles.html +0 -539
- data/rdoc/RubyXL/Text.html +0 -679
- data/rdoc/RubyXL/TextImportSettings.html +0 -539
- data/rdoc/RubyXL/Theme.html +0 -1077
- data/rdoc/RubyXL/ThemeElements.html +0 -539
- data/rdoc/RubyXL/ThumbnailFile.html +0 -568
- data/rdoc/RubyXL/Top10.html +0 -539
- data/rdoc/RubyXL/VMLDrawingFile.html +0 -590
- data/rdoc/RubyXL/Variant.html +0 -539
- data/rdoc/RubyXL/Vector.html +0 -612
- data/rdoc/RubyXL/VectorValue.html +0 -543
- data/rdoc/RubyXL/VisualProperties.html +0 -539
- data/rdoc/RubyXL/WebPublishObject.html +0 -539
- data/rdoc/RubyXL/WebPublishObjects.html +0 -539
- data/rdoc/RubyXL/WebPublishingItem.html +0 -539
- data/rdoc/RubyXL/WebPublishingItems.html +0 -539
- data/rdoc/RubyXL/WebPublishingProperties.html +0 -539
- data/rdoc/RubyXL/WebQueryProperties.html +0 -539
- data/rdoc/RubyXL/Workbook.html +0 -2085
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +0 -1407
- data/rdoc/RubyXL/WorkbookProperties.html +0 -539
- data/rdoc/RubyXL/WorkbookProtection.html +0 -539
- data/rdoc/RubyXL/WorkbookRoot.html +0 -940
- data/rdoc/RubyXL/WorkbookView.html +0 -539
- data/rdoc/RubyXL/WorkbookViews.html +0 -539
- data/rdoc/RubyXL/Worksheet.html +0 -1224
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +0 -4087
- data/rdoc/RubyXL/WorksheetDimensions.html +0 -539
- data/rdoc/RubyXL/WorksheetFormatProperties.html +0 -543
- data/rdoc/RubyXL/WorksheetProperties.html +0 -539
- data/rdoc/RubyXL/WorksheetProtection.html +0 -539
- data/rdoc/RubyXL/WorksheetView.html +0 -539
- data/rdoc/RubyXL/WorksheetViews.html +0 -539
- data/rdoc/RubyXL/XF.html +0 -539
- data/rdoc/RubyXL.html +0 -1381
- data/rdoc/created.rid +0 -45
- data/rdoc/css/rdoc.css +0 -1955
- data/rdoc/index.html +0 -455
- data/rdoc/js/aliki.js +0 -511
- data/rdoc/js/bash_highlighter.js +0 -167
- data/rdoc/js/c_highlighter.js +0 -299
- data/rdoc/js/search_controller.js +0 -129
- data/rdoc/js/search_data.js +0 -1
- data/rdoc/js/search_navigation.js +0 -105
- data/rdoc/js/search_ranker.js +0 -239
- data/rdoc/js/theme-toggle.js +0 -112
- data/spec/lib/cell_spec.rb +0 -694
- data/spec/lib/color_spec.rb +0 -21
- data/spec/lib/parser_spec.rb +0 -118
- data/spec/lib/reference_spec.rb +0 -122
- data/spec/lib/rgb_color_spec.rb +0 -29
- data/spec/lib/stylesheet_spec.rb +0 -27
- data/spec/lib/text_spec.rb +0 -27
- data/spec/lib/workbook_root_spec.rb +0 -43
- data/spec/lib/workbook_spec.rb +0 -197
- data/spec/lib/worksheet_spec.rb +0 -1777
- data/spec/spec_helper.rb +0 -13
- data/test/input/.gitkeep +0 -0
- data/test/output/.gitkeep +0 -0
- data/test/test_parse_write.rb +0 -15
- data/tmp/.gitignore +0 -1
data/rdoc/js/c_highlighter.js
DELETED
|
@@ -1,299 +0,0 @@
|
|
|
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, '&')
|
|
61
|
-
.replace(/</g, '<')
|
|
62
|
-
.replace(/>/g, '>')
|
|
63
|
-
.replace(/"/g, '"')
|
|
64
|
-
.replace(/'/g, ''');
|
|
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,129 +0,0 @@
|
|
|
1
|
-
SearchController = function(data, input, result) {
|
|
2
|
-
this.data = data;
|
|
3
|
-
this.input = input;
|
|
4
|
-
this.result = result;
|
|
5
|
-
|
|
6
|
-
this.current = null;
|
|
7
|
-
this.view = this.result.parentNode;
|
|
8
|
-
this.ranker = new SearchRanker(data.index);
|
|
9
|
-
this.init();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
SearchController.prototype = Object.assign({}, SearchNavigation, new function() {
|
|
13
|
-
var suid = 1;
|
|
14
|
-
|
|
15
|
-
this.init = function() {
|
|
16
|
-
var _this = this;
|
|
17
|
-
var observer = function(e) {
|
|
18
|
-
switch(e.key) {
|
|
19
|
-
case 'ArrowUp':
|
|
20
|
-
case 'ArrowDown':
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
_this.search(_this.input.value);
|
|
24
|
-
};
|
|
25
|
-
this.input.addEventListener('keyup', observer);
|
|
26
|
-
this.input.addEventListener('click', observer); // mac's clear field
|
|
27
|
-
|
|
28
|
-
this.ranker.ready(function(results, isLast) {
|
|
29
|
-
_this.addResults(results, isLast);
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
this.initNavigation();
|
|
33
|
-
this.setNavigationActive(false);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
this.search = function(value, selectFirstMatch) {
|
|
37
|
-
this.selectFirstMatch = selectFirstMatch;
|
|
38
|
-
|
|
39
|
-
value = value.trim();
|
|
40
|
-
if (value) {
|
|
41
|
-
this.setNavigationActive(true);
|
|
42
|
-
} else {
|
|
43
|
-
this.setNavigationActive(false);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (value == '') {
|
|
47
|
-
this.lastQuery = value;
|
|
48
|
-
this.result.innerHTML = '';
|
|
49
|
-
this.result.setAttribute('aria-expanded', 'false');
|
|
50
|
-
this.setNavigationActive(false);
|
|
51
|
-
} else if (value != this.lastQuery) {
|
|
52
|
-
this.lastQuery = value;
|
|
53
|
-
this.result.setAttribute('aria-busy', 'true');
|
|
54
|
-
this.result.setAttribute('aria-expanded', 'true');
|
|
55
|
-
this.firstRun = true;
|
|
56
|
-
this.ranker.find(value);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
this.addResults = function(results, isLast) {
|
|
61
|
-
var target = this.result;
|
|
62
|
-
if (this.firstRun && (results.length > 0 || isLast)) {
|
|
63
|
-
this.current = null;
|
|
64
|
-
this.result.innerHTML = '';
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
for (var i=0, l = results.length; i < l; i++) {
|
|
68
|
-
var item = this.renderItem.call(this, results[i]);
|
|
69
|
-
item.setAttribute('id', 'search-result-' + target.childElementCount);
|
|
70
|
-
target.appendChild(item);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
if (this.firstRun && results.length > 0) {
|
|
74
|
-
this.firstRun = false;
|
|
75
|
-
this.current = target.firstChild;
|
|
76
|
-
this.current.classList.add('search-selected');
|
|
77
|
-
}
|
|
78
|
-
//TODO: ECMAScript
|
|
79
|
-
//if (jQuery.browser.msie) this.$element[0].className += '';
|
|
80
|
-
|
|
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
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
this.move = function(isDown) {
|
|
93
|
-
if (!this.current) return;
|
|
94
|
-
var next = isDown ? this.current.nextElementSibling : this.current.previousElementSibling;
|
|
95
|
-
if (next) {
|
|
96
|
-
this.current.classList.remove('search-selected');
|
|
97
|
-
next.classList.add('search-selected');
|
|
98
|
-
this.input.setAttribute('aria-activedescendant', next.getAttribute('id'));
|
|
99
|
-
this.scrollInElement(next, this.result);
|
|
100
|
-
this.current = next;
|
|
101
|
-
this.input.value = next.firstChild.firstChild.text;
|
|
102
|
-
this.input.select();
|
|
103
|
-
}
|
|
104
|
-
return true;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
this.hlt = function(html) {
|
|
108
|
-
return this.escapeHTML(html).
|
|
109
|
-
replace(/\u0001/g, '<em>').
|
|
110
|
-
replace(/\u0002/g, '</em>');
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
this.escapeHTML = function(html) {
|
|
114
|
-
return html.replace(/[&<>"`']/g, function(c) {
|
|
115
|
-
return '&#' + c.charCodeAt(0) + ';';
|
|
116
|
-
});
|
|
117
|
-
}
|
|
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
|
-
}
|
|
128
|
-
});
|
|
129
|
-
|