├── .github ├── FUNDING.yml └── workflows │ └── BuildModule.yml ├── .gitignore ├── Build └── Build-Module.ps1 ├── CHANGELOG.MD ├── Docs ├── Add-HTML.md ├── Add-HTMLScript.md ├── Add-HTMLStyle.md ├── ConvertTo-CascadingStyleSheets.md ├── Email.md ├── EmailAttachment.md ├── EmailBCC.md ├── EmailBody.md ├── EmailCC.md ├── EmailFrom.md ├── EmailHTML.md ├── EmailHeader.md ├── EmailListItem.md ├── EmailOptions.md ├── EmailReplyTo.md ├── EmailServer.md ├── EmailSubject.md ├── EmailText.md ├── EmailTextBox.md ├── EmailTo.md ├── New-CalendarEvent.md ├── New-ChartAxisX.md ├── New-ChartAxisY.md ├── New-ChartBar.md ├── New-ChartBarOptions.md ├── New-ChartCategory.md ├── New-ChartDonut.md ├── New-ChartGrid.md ├── New-ChartLegend.md ├── New-ChartLine.md ├── New-ChartPie.md ├── New-ChartRadial.md ├── New-ChartTheme.md ├── New-ChartToolbar.md ├── New-DiagramEvent.md ├── New-DiagramLink.md ├── New-DiagramNode.md ├── New-DiagramOptionsInteraction.md ├── New-DiagramOptionsLayout.md ├── New-DiagramOptionsLinks.md ├── New-DiagramOptionsManipulation.md ├── New-DiagramOptionsNodes.md ├── New-DiagramOptionsPhysics.md ├── New-GageSector.md ├── New-HTML.md ├── New-HTMLCalendar.md ├── New-HTMLChart.md ├── New-HTMLCodeBlock.md ├── New-HTMLColumn.md ├── New-HTMLContainer.md ├── New-HTMLContent.md ├── New-HTMLDiagram.md ├── New-HTMLFooter.md ├── New-HTMLGage.md ├── New-HTMLHeader.md ├── New-HTMLHeading.md ├── New-HTMLHierarchicalTree.md ├── New-HTMLHorizontalLine.md ├── New-HTMLImage.md ├── New-HTMLList.md ├── New-HTMLListItem.md ├── New-HTMLLogo.md ├── New-HTMLMain.md ├── New-HTMLPanel.md ├── New-HTMLSection.md ├── New-HTMLSpanStyle.md ├── New-HTMLStatus.md ├── New-HTMLStatusItem.md ├── New-HTMLTabOptions.md ├── New-HTMLTable.md ├── New-HTMLTableButtonCSV.md ├── New-HTMLTableButtonCopy.md ├── New-HTMLTableButtonExcel.md ├── New-HTMLTableButtonPDF.md ├── New-HTMLTableButtonPageLength.md ├── New-HTMLTableButtonPrint.md ├── New-HTMLTableCondition.md ├── New-HTMLTableContent.md ├── New-HTMLTableHeader.md ├── New-HTMLTableReplace.md ├── New-HTMLTag.md ├── New-HTMLText.md ├── New-HTMLTimeline.md ├── New-HTMLTimelineItem.md ├── New-HTMLToast.md ├── New-HTMLTree.md ├── New-HierarchicalTreeNode.md ├── New-HtmlTab.md ├── New-TableButtonCSV.md ├── New-TableButtonCopy.md ├── New-TableButtonExcel.md ├── New-TableButtonPDF.md ├── New-TableButtonPageLength.md ├── New-TableButtonPrint.md ├── New-TableCondition.md ├── New-TableContent.md ├── New-TableHeader.md ├── New-TableReplace.md ├── New-TableRowGrouping.md ├── New-TreeNode.md ├── Out-HtmlView.md ├── Readme.md └── Save-HTML.md ├── Examples ├── Example-Accordion │ └── Example-Accordion01.ps1 ├── Example-BuildingTags │ └── Example-Tags.ps1 ├── Example-Calendars │ ├── Example-Calendar01.ps1 │ └── Example-Calendar02.ps1 ├── Example-Carousel │ ├── Example-Carousel01.ps1 │ └── Example-Carousel02.ps1 ├── Example-Charts │ ├── Example-ChartDonut.ps1 │ ├── Example-ChartSparks.ps1 │ ├── Example-ChartsBars.ps1 │ ├── Example-ChartsDesign.ps1 │ ├── Example-ChartsLine.ps1 │ ├── Example-ChartsLine1.ps1 │ ├── Example-ChartsMultiSeries.ps1 │ ├── Example-ChartsPie.ps1 │ ├── Example-ChartsWithTablesBar.ps1 │ ├── Example-ChartsWithTablesBarStacked.ps1 │ ├── Example-ChartsWithTablesDecimal.ps1 │ ├── Example-ChartsWithTablesDonut.ps1 │ ├── Example-ChartsWithTablesLine.ps1 │ ├── Example-ChartsWithTablesPie.ps1 │ ├── Example-ChartsWithTablesRadial.ps1 │ ├── Example-ChartsWithTablesTimeLine.ps1 │ ├── Example-MixedCharts.ps1 │ ├── Example-SyncedCharts.ps1 │ └── Test.ps1 ├── Example-Comparing │ ├── Example-Comparing01.ps1 │ ├── Example-Comparing02.ps1 │ └── Example-Comparing03.ps1 ├── Example-ComparingOutHtmlView │ └── Example-OutHTMLView.ps1 ├── Example-ContainerPanelSection │ ├── ContainerPanelSection01.ps1 │ ├── ContainerPanelSection02.ps1 │ └── ContainerPanelSection03.ps1 ├── Example-ConvertToCSS │ └── Example-ConvertToCss.ps1 ├── Example-DashimoStyle │ ├── Run-AdvancedActiveDirectoryDashboard.ps1 │ ├── Run-Chart.ps1 │ ├── Run-ChartsBar.ps1 │ ├── Run-ChartsBar00.ps1 │ ├── Run-ChartsLine.ps1 │ ├── Run-ComplicatedExample.ps1 │ ├── Run-EasyDashboard.ps1 │ ├── Run-EasyDashboardConditions.ps1 │ ├── Run-SimplestTable01-DefaultSort.ps1 │ ├── Run-SimplestTable02.ps1 │ ├── Run-SimplestTable03.ps1 │ ├── Run-SimplestTable04.ps1 │ ├── Run-SimplestTable05.ps1 │ ├── Run-SimplestTable06.ps1 │ ├── Run-SimplestTable07.ps1 │ ├── Run-SimplestTable08.ps1 │ ├── Run-SimplestTable09.ps1 │ ├── Run-SimplestTable10.ps1 │ ├── Run-SimplestTable11.ps1 │ └── Run-TabsLoop.ps1 ├── Example-Diagrams │ ├── Example-Basic.Experimental.ps1 │ ├── Example-Basic.Tabs.ps1 │ ├── Example-Basic.TabsAlternative.ps1 │ ├── Example-Basic.Wizard.ps1 │ ├── Example-Basic.ps1 │ ├── Example-BasicWithHeight.ps1 │ ├── Example-Diagram1.ps1 │ ├── Example-DiagramWIthBackground.ps1 │ ├── Example-DiagramWithCharts.ps1 │ ├── Example-Diagrams01.ps1 │ ├── Example-Diagrams02_DashimoStyle.ps1 │ ├── Example-DiagramsChartsTable.ps1 │ ├── Example-DifferentLinks.ps1 │ ├── Example-Easy.ps1 │ ├── Example-Easy2.ps1 │ ├── Example-Easy3WithFiltering.ps1 │ ├── Example-Easy4.ps1 │ ├── Example-FontsAwesome.ps1 │ ├── Example-HierarchicalLayout01.ps1 │ ├── Example-HierarchicalLayout02.ps1 │ ├── Example-HierarchicalLayout03.ps1 │ ├── Example-HierarchicalLayout04.ps1 │ ├── Example-HierarchicalLayout05.ps1 │ ├── Example-HierarchicalLayout06.ps1 │ ├── Example-HierarchicalLayout07.ps1 │ ├── Example-ID.ps1 │ ├── Example-LargeDiagram.ps1 │ ├── Example-LinkedDiagramWithTable.ps1 │ ├── Example-LoadFromJSON.ps1 │ ├── Example-LotsOfTexts.ps1 │ ├── Example-NodesEdgesOptions.ps1 │ ├── Example-RandomDiagram.ps1 │ ├── Example-Shapes.ps1 │ ├── Example-ShapesAndIcons.ps1 │ ├── Example-Unifi.ps1 │ └── Example-UnifiWithMultiline.ps1 ├── Example-DiagramsMermeid │ └── Example-DiagramsMermeid.ps1 ├── Example-Disclaimer │ └── Example-Disclaimer.ps1 ├── Example-Emails │ ├── Example-DifferentFeaturesInAction.ps1 │ ├── Example-EmailBody.ps1 │ ├── Example-EmailBodyBasic.ps1 │ ├── Example-EmailBodyTable.ps1 │ ├── Example-EmailLayout.ps1 │ ├── Example-PasswordNotification.ps1 │ ├── Example-PasswordNotificationColors.ps1 │ ├── Example-PasswordNotificationDiff.ps1 │ └── README.MD ├── Example-Experiments │ ├── Example-TabsInLine01.ps1 │ └── Example-Test.ps1 ├── Example-Formatting │ └── Example-Formatting.ps1 ├── Example-Gages │ ├── Example-Gages-Enhanced.ps1 │ ├── Example-Gages.ps1 │ └── Example-UseAbsoluteValues.ps1 ├── Example-GenerateHelp.ps1 ├── Example-GenerateHelpCalendar.ps1 ├── Example-Headings │ └── Example-Headings.ps1 ├── Example-IE │ └── Example.ps1 ├── Example-IconsAndColors │ ├── Example-Colors.ps1 │ ├── Example-IconsAndColors.ps1 │ └── Example-SimpleIcons.ps1 ├── Example-InfoCard │ ├── Example-DensityTest.ps1 │ ├── Example-InfoCard-Advanced.ps1 │ ├── Example-InfoCard-BoundaryTest.ps1 │ ├── Example-InfoCard-ShadowShowcase.ps1 │ ├── Example-InfoCard.ps1 │ ├── Example-MicrosoftEntra.ps1 │ ├── Example-QuickCheck-NewInfoCard.ps1 │ ├── Example-QuickCheck.ps1 │ ├── Example-ResponsiveWrap-Test.ps1 │ ├── ResponsiveWrap-Summary.ps1 │ ├── Test-AllCommands-Density.ps1 │ ├── Test-DOM-Structures.ps1 │ └── Test-MinItemsPerRow.ps1 ├── Example-InlineOtherHTMLFile.ps1 │ └── Example-InlineHTML01.ps1 ├── Example-Links │ └── Example-Links.ps1 ├── Example-Lists │ └── Example-Lists01.ps1 ├── Example-Maps │ ├── Example-Maps.ps1 │ └── Example-WorldMap.ps1 ├── Example-Margins │ └── Example-Margins01.ps1 ├── Example-Markdown │ ├── Example-Markdown.ps1 │ └── Example-Markdown1.ps1 ├── Example-OrganizationalCharts │ ├── Example-OrgChart01.ps1 │ └── Example-OrgChart02.ps1 ├── Example-Panels │ └── Example01-Panels.ps1 ├── Example-QR │ ├── Example-QR01.ps1 │ └── Example-QR02.ps1 ├── Example-SearchRegularExpression │ └── Example-SearchRegularExpression.ps1 ├── Example-StatusPage │ ├── Example-StatusPage01.ps1 │ ├── Example-StatusPage02.ps1 │ ├── Example-StatusPage03.ps1 │ ├── Example-StatusPage04.ps1 │ ├── Example-StatusPage05.ps1 │ ├── Example-StatusPage06.ps1 │ └── Example-StatusPage07.ps1 ├── Example-StyleChange │ └── Example-StyleChange.ps1 ├── Example-Table │ ├── Example-CSV.ps1 │ ├── Example-DateTimeSorting.ps1 │ ├── Example-IncludeExcludeProperties.ps1 │ ├── Example-MixedDataStores.ps1 │ ├── Example-SearchBuilder.ps1 │ ├── Example-TableAdvancedFreeze.ps1 │ ├── Example-TableColumnVisibility.ps1 │ ├── Example-TableJavaScriptConditions.ps1 │ ├── Example-TableTranspose01.ps1 │ ├── Example7_01.ps1 │ ├── Example7_02.ps1 │ ├── Example7_02_DataStoreJava.ps1 │ ├── Example7_03.ps1 │ ├── Example7_05.ps1 │ ├── Example7_06.ps1 │ ├── Example7_08.ps1 │ ├── Example7_09.ps1 │ ├── Example7_10.ps1 │ ├── Example7_11-Responsive.ps1 │ ├── Example7_12.ps1 │ ├── Example7_13.ps1 │ ├── Example7_AlphabetSearch.ps1 │ ├── Example7_AlphabetSearch2.ps1 │ ├── Example7_DataStoreAjaxJSON.ps1 │ ├── Example7_DataStoreHTML.ps1 │ ├── Example7_DataStoreJava.ps1 │ ├── Example7_DataStoreJavaScript.ps1 │ ├── Example7_DataStoreJavaScript02.ps1 │ ├── Example7_DataStoreJavaScript03.ps1 │ ├── Example7_MeasureTime.ps1 │ ├── Example7_MixedDataStore.ps1 │ ├── Example7_PercentageBar.ps1 │ ├── Example7_TableStyle.ps1 │ ├── Example7_TestTableOutputForWeirdChars.ps1 │ └── data │ │ ├── ID1.json │ │ ├── ID10.json │ │ ├── ID11.json │ │ ├── ID12.json │ │ ├── ID13.json │ │ ├── ID14.json │ │ ├── ID15.json │ │ ├── ID16.json │ │ ├── ID17.json │ │ ├── ID18.json │ │ ├── ID2.json │ │ ├── ID3.json │ │ ├── ID4.json │ │ ├── ID5.json │ │ ├── ID6.json │ │ ├── ID7.json │ │ ├── ID8.json │ │ └── ID9.json ├── Example-TableHostedSolution │ └── Example43-HostingOnly01.ps1 ├── Example-TableJavaScript │ ├── Example44-LargeData.ps1 │ └── Example44.ps1 ├── Example-TableModification │ └── Example41.ps1 ├── Example-TableSearchBuilder │ ├── Example-TableSearchBuilder.ps1 │ └── Example-TableSearchBuilder02.ps1 ├── Example-TableSearchPanes │ └── Example-TableSearchPanes.ps1 ├── Example-TablesForBlog.ps1 │ ├── Example-AlphabetSearch.ps1 │ ├── Example-FuzzySearch.ps1 │ ├── Example-SearchBuilder.ps1 │ ├── Example-SearchPane.ps1 │ ├── Example-TableConditions.ps1 │ ├── Example-TableOptions.ps1 │ └── Test.ps1 ├── Example-Tabs │ ├── Example-Tabs01.ps1 │ ├── Example-Tabs02.ps1 │ ├── Example-Tabs03.ps1 │ ├── Example-Tabs04.ps1 │ ├── Example-Tabs05.ps1 │ ├── Example-Tabs06.ps1 │ ├── Example-Tabs07.ps1 │ ├── Example-Tabs08.ps1 │ ├── Example-Tabs09.ps1 │ └── Example-Tabs10.ps1 ├── Example-TabsInline.ps1 │ ├── Example-TabsInLine02.ps1 │ ├── Example-TabsInLine03.ps1 │ ├── Example-TabsInLine04.ps1 │ └── Example-TabsInLine05.ps1 ├── Example-Texts │ ├── Example-Texts01.ps1 │ └── Example-Texts02.ps1 ├── Example-TreeView │ ├── Example-TreeView01.ps1 │ └── Example-TreeView02.ps1 ├── Example-VisualIndicators │ └── TestColors.ps1 ├── Example-WinBox │ ├── Example-WinBox01.ps1 │ └── Example-WinBox02.ps1 ├── Example-Wizard │ ├── Example-Wizard01.ps1 │ └── Example-Wizard06.ps1 ├── Example01-TableColumnSort │ └── Example01.ps1 ├── Example02-TableAndTabsAndLogo │ ├── Example1.ps1 │ └── Example2.ps1 ├── Example03-TableAndTabsAndLogo │ └── Example3.ps1 ├── Example04-TableAndTabs │ ├── Example4-01.ps1 │ └── Example4-02.ps1 ├── Example05-TableAndTabsAndContentAndCodeBlock │ └── Example5.ps1 ├── Example06-CodeBlocks │ ├── CodeBlocks01.ps1 │ └── CodeBlocks02.ps1 ├── Example08-TableAdvanced │ ├── Example08.ps1 │ └── Example08_02.ps1 ├── Example09-TableAndChartsAndCodeBlocks │ └── Example9.ps1 ├── Example10-TableAndTabs │ └── Example10.ps1 ├── Example11-Headings │ └── Example11.ps1 ├── Example14-Other │ └── Example14.ps1 ├── Example17-TableMultiSearch │ └── Example17.ps1 ├── Example18-Out-HTMLView.ps1 │ └── Example-Out-HTMLView1.ps1 ├── Example19-NewLineAndInvokeHTML │ └── Example19.ps1 ├── Example20-TableConditionsWithSomeText │ ├── Example-TableConditions01.ps1 │ ├── Example-TableConditions02.ps1 │ ├── Example20.ps1 │ ├── Example20_01.ps1 │ └── Example21.ps1 ├── Example21-Experimental │ └── Example21-01.ps1 ├── Example23-Charts │ ├── Example-ChartBarNext.ps1 │ ├── Example-ChartDonutNext.ps1 │ ├── Example-ChartPie.ps1 │ ├── Example-ChartPieNext.ps1 │ ├── Example-ChartRadial.ps1 │ ├── Example-ChartTabs.ps1 │ ├── Example-ChartTimeLine.ps1 │ ├── Example-ChartTimeLine02.ps1 │ ├── Example-ChartsBar.ps1 │ ├── Example-ChartsBarColor.ps1 │ ├── Example-ChartsBarDonuts.ps1 │ ├── Example-ChartsBarSmall.ps1 │ ├── Example-ChartsBarStacked.ps1 │ └── Example-ChartsLine.ps1 ├── Example24-TableTricks │ ├── Example24_01.ps1 │ └── Example24_02.ps1 ├── Example25-Toasts │ └── Example25.ps1 ├── Example27-SectionsPanelsContainers │ ├── Example-SectionCustomStyle.ps1 │ ├── Example-SectionWithCustomHeader.ps1 │ ├── Example27-01.ps1 │ ├── Example27-02.ps1 │ ├── Example27-03.ps1 │ ├── Example27-04.ps1 │ ├── Example27-05.ps1 │ ├── Example27-06.ps1 │ ├── Example27-07.ps1 │ ├── Example27-08.ps1 │ ├── Example27-09.ps1 │ ├── Example27-10.ps1 │ ├── Example27-11.ps1 │ ├── Example27-12.ps1 │ └── Example27-15.ps1 ├── Example29-HierarchicalTree │ └── Example29-HierarchicalTree01.ps1 ├── Example29-Logo │ └── Example29-01.ps1 ├── Example30-LinkedTable │ ├── Example30-LinkedProcesses.ps1 │ ├── Example30-LinkedTable01.ps1 │ ├── Example30-LinkedTableToTable01.ps1 │ └── Example30-LinkedTableToTable02.ps1 ├── Example31-NestedTabs │ ├── Example31-NestedTabs.ps1 │ └── Example31-Tabbing.ps1 ├── Example34-HeaderMainFooter │ ├── Example34_01.ps1 │ └── Example34_02.ps1 ├── Example35-FavIcon │ ├── Example35_01.ps1 │ ├── Example35_02.ps1 │ └── favicon.png ├── Example36-TableOptions │ └── Example36.TableOptions01.ps1 ├── Example37-LongTextTable │ └── Example37.ps1 ├── Example38-Emails │ ├── Example38-Emails01.ps1 │ ├── Example38-Emails02.ps1 │ └── Example38-Emails03.ps1 ├── Example39-CompareObjects │ ├── Example39-01.ps1 │ ├── Example39-02.ps1 │ ├── Example39-03.ps1 │ └── Example39-04.ps1 ├── Example39-TableColumnOption │ └── Example39_01.ps1 ├── Example40-BodyConfiguration │ └── Example40-Body01.ps1 ├── Example41-Navigation01 │ └── Example41-Navigation01.ps1 ├── Example41-Navigation02 │ └── Example41-Navigation02.ps1 ├── Example41-NavigationFloat │ └── Example41-NavigationFloat.ps1 ├── Example41-NavigationTopMenu │ └── Example41-Navigation03.ps1 ├── Example42-NavigationInsert │ └── Example41-InsertNav.ps1 ├── Example43-Summary │ └── Example43-Summary01.ps1 ├── Example44-FontIcon │ └── Example44-FontIcon.ps1 └── Example45-ScrollingText │ └── Example45-Scrolling.ps1 ├── LICENSE ├── PSWriteHTML.AzurePipelines.yml ├── PSWriteHTML.Tests.ps1 ├── PSWriteHTML.psd1 ├── PSWriteHTML.psm1 ├── Private ├── Add-ConfigurationCSS.ps1 ├── Add-ParametersToScriptBlock.ps1 ├── ChartsAll │ ├── New-ApexChart.ps1 │ ├── New-ChartInternalArea.ps1 │ ├── New-ChartInternalAxisX.ps1 │ ├── New-ChartInternalBar.ps1 │ ├── New-ChartInternalColors.ps1 │ ├── New-ChartInternalDataLabels.ps1 │ ├── New-ChartInternalDataSet.ps1 │ ├── New-ChartInternalGradient.ps1 │ ├── New-ChartInternalGrid.ps1 │ ├── New-ChartInternalLegend.ps1 │ ├── New-ChartInternalLine.ps1 │ ├── New-ChartInternalMarker.ps1 │ ├── New-ChartInternalPattern.ps1 │ ├── New-ChartInternalPie.ps1 │ ├── New-ChartInternalRadial.ps1 │ ├── New-ChartInternalRadialDataLabels.ps1 │ ├── New-ChartInternalRadialType1.ps1 │ ├── New-ChartInternalRadialType2.ps1 │ ├── New-ChartInternalSize.ps1 │ ├── New-ChartInternalSpark.ps1 │ ├── New-ChartInternalStroke.ps1 │ ├── New-ChartInternalStrokeDefinition.ps1 │ ├── New-ChartInternalTheme.ps1 │ ├── New-ChartInternalTimeLine.ps1 │ ├── New-ChartInternalTitle.ps1 │ ├── New-ChartInternalToolTip.ps1 │ ├── New-ChartInternalToolbar.ps1 │ ├── New-ChartInternalZoom..ps1 │ ├── New-HTMLChartArea.ps1 │ ├── New-HTMLChartBar.ps1 │ ├── New-HTMLChartLine.ps1 │ ├── New-HTMLChartPie.ps1 │ ├── New-HTMLChartRadial.ps1 │ ├── New-HTMLChartSpark.ps1 │ └── New-HTMLChartTimeLine.ps1 ├── Convert-FontToBinary.ps1 ├── Convert-FromRotate.ps1 ├── Convert-Image.ps1 ├── Convert-ImageToBinary.ps1 ├── Convert-ImagesToBinary.ps1 ├── ConvertFrom-Size.ps1 ├── ConvertTo-HTMLStyle.ps1 ├── ConvertTo-LimitedCSS.ps1 ├── ConvertTo-SVG.ps1 ├── ConvertTo-Size.ps1 ├── Get-ConfigurationCSS.ps1 ├── Get-FeaturesInUse.ps1 ├── Get-HTMLLogos.ps1 ├── Get-HTMLPartContent.ps1 ├── Get-ImageFile.ps1 ├── Get-Resources.ps1 ├── New-DefaultSettings.ps1 ├── New-DiagramInternalEvent.ps1 ├── New-HTMLCustomCSS.ps1 ├── New-HTMLCustomJS.ps1 ├── New-HTMLTabHead.ps1 ├── New-InternalDiagram.ps1 ├── New-InternalNavIcon.ps1 ├── New-InternalNavLink.ps1 ├── New-RequestCssConfiguration.ps1 ├── New-TableJavaScript.ps1 ├── New-TablePercentageBarInternal.ps1 ├── New-TableServerSide.ps1 ├── Parameters.Configuration.ps1 ├── Parameters.HTMLIcons.ps1 ├── Parameters │ ├── Script.RGBColors.ps1 │ └── ScriptBlock.RGBColors.ps1 ├── Remove-ConfigurationCSS.ps1 ├── Remove-DotsFromCssClass.ps1 ├── Rename-Dictionary.ps1 ├── Set-ConfigurationCSS.ps1 ├── Set-Tag.ps1 └── Tables │ ├── Add-CustomFormatForDatetimeSorting.ps1 │ ├── Add-TableContent.ps1 │ ├── Add-TableEvent.ps1 │ ├── Add-TableFiltering.ps1 │ ├── Add-TableHeader.ps1 │ ├── Add-TableRowGrouping.ps1 │ ├── Add-TableState.ps1 │ ├── Convert-TableRowGrouping.ps1 │ ├── New-TableConditionHeaderHighligher.ps1 │ ├── New-TableConditionInternal.ps1 │ ├── New-TableConditionalFormatting.ps1 │ └── New-TableConditionalFormattingInline.ps1 ├── Public ├── Add-HTML.ps1 ├── Add-HTMLScript.ps1 ├── Add-HTMLStyle.ps1 ├── ConvertTo-CascadingStyleSheets.ps1 ├── Email.ps1 ├── EmailAttachment.ps1 ├── EmailBCC.ps1 ├── EmailBody.ps1 ├── EmailCC.ps1 ├── EmailFrom.ps1 ├── EmailHeader.ps1 ├── EmailLayout.ps1 ├── EmailLayoutColumn.ps1 ├── EmailLayoutRow.ps1 ├── EmailListItem.ps1 ├── EmailOptions.ps1 ├── EmailReplyTo.ps1 ├── EmailServer.ps1 ├── EmailSubject.ps1 ├── EmailTo.ps1 ├── Enable-HTMLFeature.ps1 ├── New-AccordionItem.ps1 ├── New-CalendarEvent.ps1 ├── New-CarouselSlide.ps1 ├── New-ChartAxisX.ps1 ├── New-ChartAxisY.ps1 ├── New-ChartBar.ps1 ├── New-ChartBarOptions.ps1 ├── New-ChartDataLabel.ps1 ├── New-ChartDesign.ps1 ├── New-ChartDonut.ps1 ├── New-ChartEvent.ps1 ├── New-ChartGrid.ps1 ├── New-ChartLegend.ps1 ├── New-ChartLine.ps1 ├── New-ChartMarker.ps1 ├── New-ChartPie.ps1 ├── New-ChartRadial.ps1 ├── New-ChartRadialOptions.ps1 ├── New-ChartSpark.ps1 ├── New-ChartTheme.ps1 ├── New-ChartTimeLine.ps1 ├── New-ChartToolTip.ps1 ├── New-ChartToolbar.ps1 ├── New-DiagramEvent.ps1 ├── New-DiagramLink.ps1 ├── New-DiagramNode.ps1 ├── New-DiagramOptionsInteraction.ps1 ├── New-DiagramOptionsLayout.ps1 ├── New-DiagramOptionsLinks.ps1 ├── New-DiagramOptionsManipulation.ps1 ├── New-DiagramOptionsNodes.ps1 ├── New-DiagramOptionsPhysics.ps1 ├── New-GageSector.ps1 ├── New-HTML.ps1 ├── New-HTMLAccordion.ps1 ├── New-HTMLAnchor.ps1 ├── New-HTMLCalendar.ps1 ├── New-HTMLCarousel.ps1 ├── New-HTMLCarouselStyle.ps1 ├── New-HTMLChart.ps1 ├── New-HTMLCodeBlock.ps1 ├── New-HTMLContainer.ps1 ├── New-HTMLDate.ps1 ├── New-HTMLDiagram.ps1 ├── New-HTMLFontIcon.ps1 ├── New-HTMLFooter.ps1 ├── New-HTMLFrame.ps1 ├── New-HTMLGage.ps1 ├── New-HTMLHeader.ps1 ├── New-HTMLHeading.ps1 ├── New-HTMLHierarchicalTree.ps1 ├── New-HTMLHorizonalLine.ps1 ├── New-HTMLImage.ps1 ├── New-HTMLInfoCard.ps1 ├── New-HTMLList.ps1 ├── New-HTMLListItem.ps1 ├── New-HTMLLogo.ps1 ├── New-HTMLMain.ps1 ├── New-HTMLMap.ps1 ├── New-HTMLMarkdown.ps1 ├── New-HTMLMermeidChart.ps1 ├── New-HTMLNav.ps1 ├── New-HTMLNavFloat.ps1 ├── New-HTMLNavTop.ps1 ├── New-HTMLOrgChart.ps1 ├── New-HTMLPage.ps1 ├── New-HTMLPanel.ps1 ├── New-HTMLPanelStyle.ps1 ├── New-HTMLQRCode.ps1 ├── New-HTMLSection.ps1 ├── New-HTMLSectionScrolling.ps1 ├── New-HTMLSectionScrollingItem.ps1 ├── New-HTMLSectionStyle.ps1 ├── New-HTMLSpanStyle.ps1 ├── New-HTMLStatus.ps1 ├── New-HTMLStatusItem.ps1 ├── New-HTMLSummary.ps1 ├── New-HTMLSummaryItem.ps1 ├── New-HTMLSummaryItemData.ps1 ├── New-HTMLTab.ps1 ├── New-HTMLTabPanel.ps1 ├── New-HTMLTabPanelColor.ps1 ├── New-HTMLTabStyle.ps1 ├── New-HTMLTable.ps1 ├── New-HTMLTableOption.ps1 ├── New-HTMLTableStyle.ps1 ├── New-HTMLTag.ps1 ├── New-HTMLText.ps1 ├── New-HTMLTextBox.ps1 ├── New-HTMLTimeLine.ps1 ├── New-HTMLTimelineItem.ps1 ├── New-HTMLToast.ps1 ├── New-HTMLTree.ps1 ├── New-HTMLTreeChildCounter.ps1 ├── New-HTMLTreeNode.ps1 ├── New-HTMLWinBox.ps1 ├── New-HTMLWizard.ps1 ├── New-HTMLWizardColor.ps1 ├── New-HTMLWizardStep.ps1 ├── New-HierarchicalTreeNode.ps1 ├── New-MapArea.ps1 ├── New-MapLegendOption.ps1 ├── New-MapLegendSlice.ps1 ├── New-MapPlot.ps1 ├── New-NavFloatWidget.ps1 ├── New-NavFloatWidgetItem.ps1 ├── New-NavItem.ps1 ├── New-NavLink.ps1 ├── New-NavTopMenu.ps1 ├── New-OrgChartNode.ps1 ├── New-TableAlphabetSearch.ps1 ├── New-TableButtonCSV.ps1 ├── New-TableButtonColumnVisibility.ps1 ├── New-TableButtonCopy.ps1 ├── New-TableButtonExcel.ps1 ├── New-TableButtonPDF.ps1 ├── New-TableButtonPageLength.ps1 ├── New-TableButtonPrint.ps1 ├── New-TableButtonSearchBuilder.ps1 ├── New-TableColumnOption.ps1 ├── New-TableCondition.ps1 ├── New-TableConditionGroup.ps1 ├── New-TableContent.ps1 ├── New-TableEvent.ps1 ├── New-TableHeader.ps1 ├── New-TableLanguage.ps1 ├── New-TablePercentageBar.ps1 ├── New-TablePercentageBarCondition.ps1 ├── New-TableReplace.ps1 ├── New-TableRowGrouping.ps1 ├── Out-HTMLView.ps1 └── Save-HTML.ps1 ├── Resources ├── CSS │ ├── accordion.min.css │ ├── accordionSummary.css │ ├── animate.min.css │ ├── apexcharts.css │ ├── dashboardCards.css │ ├── dataTables.alphabetSearch.css │ ├── dataTables.autoFill.min.css │ ├── dataTables.colReorder.min.css │ ├── dataTables.dateTime.css │ ├── dataTables.fixedColumns.min.css │ ├── dataTables.fixedHeader.min.css │ ├── dataTables.jquery.min.css │ ├── dataTables.keyTable.min.css │ ├── dataTables.responsive.min.css │ ├── dataTables.rowGroup.min.css │ ├── dataTables.rowReorder.min.css │ ├── dataTables.scroller.min.css │ ├── dataTables.searchBuilder.css │ ├── dataTables.searchHighlight.css │ ├── dataTables.searchPanes.min.css │ ├── dataTables.select.min.css │ ├── dataTables.stateRestore.min.css │ ├── datatables.SearchFade.min.css │ ├── datatables.buttons.min.css │ ├── datatables.noscript.css │ ├── datatables.simplify.css │ ├── enlighterjs.min.css │ ├── fontsAwesome.min.css │ ├── fontsMaterialDesignIconic.min.css │ ├── fontsSimpleIcons.min.css │ ├── jquery.hsmenu-dropdown.css │ ├── jquery.hsmenu-sidepenal.css │ ├── jquery.hsmenu.css │ ├── jquery.orgchart.min.css │ ├── jquery.smartTab.min.css │ ├── jquery.smartWizard.min.css │ ├── jstree.min.css │ ├── kineto.min.css │ ├── kinetoStyle.css │ ├── message.css │ ├── popper.css │ ├── responsiveWrap.css │ ├── sectionScrolling.css │ ├── select.dataTables.min.css │ ├── showdown.css │ ├── slick-theme.min.css │ ├── slick.min.css │ ├── status.css │ ├── timeline-simple.css │ ├── toasts.css │ ├── ui.fancytree.min.css │ ├── vis-network.find.css │ ├── vis-network.loadingbar.css │ ├── vis-network.min.css │ ├── vis-timeline-graph2d.min.css │ ├── winbox.min.css │ ├── winbox.modern.min.css │ └── winbox.white.min.css ├── Images │ └── Other │ │ ├── Alternate.jpg │ │ ├── Blank.jpg │ │ ├── Corporate.jpg │ │ ├── PowerShell.jpg │ │ ├── Sample.jpg │ │ └── external-site.gif ├── JS │ ├── HideSection.js │ ├── ResizeImage.js │ ├── Sortable.js │ ├── accordion.min.js │ ├── accordionSummary.js │ ├── apexcharts.min.js │ ├── apexchartsEvents.js │ ├── dataTables.alphabetSearch.min.js │ ├── dataTables.autoFill.min.js │ ├── dataTables.buttons.colVis.min.js │ ├── dataTables.buttons.min.js │ ├── dataTables.buttons.toggleView.js │ ├── dataTables.colReorder.min.js │ ├── dataTables.conditions.js │ ├── dataTables.dateTime.js │ ├── dataTables.datetimeMoment.js │ ├── dataTables.fixedColumns.min.js │ ├── dataTables.fixedHeader.min.js │ ├── dataTables.fuzzySearch.js │ ├── dataTables.jquery.min.js │ ├── dataTables.keyTable.min.js │ ├── dataTables.pageResize.min.js │ ├── dataTables.percentageBars.js │ ├── dataTables.responsive.min.js │ ├── dataTables.rowGroup.min.js │ ├── dataTables.rowReorder.min.js │ ├── dataTables.scroller.min.js │ ├── dataTables.searchBuilder.js │ ├── dataTables.searchHighlight.min.js │ ├── dataTables.searchHighlightRequire.js │ ├── dataTables.searchPanes.min.js │ ├── dataTables.select.min.js │ ├── dataTables.stateRestore.min.js │ ├── datatables.SearchFade.min.js │ ├── datatables.buttons.html5.min.js │ ├── datatables.buttons.print.min.js │ ├── easy.qrcode.min.js │ ├── enlighterjs-footer.js │ ├── enlighterjs.min.js │ ├── escapeRegex.js │ ├── fullCalendar.js │ ├── html2canvas.min.js │ ├── iframeResizer.min.js │ ├── jquery.fancytree-all-deps.min.js │ ├── jquery.hsmenu-dropdown.js │ ├── jquery.hsmenu-sidepenal.js │ ├── jquery.hsmenu.js │ ├── jquery.mapael.min.js │ ├── jquery.min.js │ ├── jquery.mousewheel.min.js │ ├── jquery.orgchart.min.js │ ├── jquery.smartTab.min.js │ ├── jquery.smartWizard.min.js │ ├── jspdf.min.js │ ├── jstree.min.js │ ├── jszip.min.js │ ├── justgage.min.js │ ├── kineto.min.js │ ├── mermaid.min.js │ ├── moment.min.js │ ├── momentDateText.js │ ├── pdfmake.min.js │ ├── popper.min.js │ ├── raphael.min.js │ ├── redrawObjects.js │ ├── sectionScrolling.js │ ├── showdown-toc.min.js │ ├── showdown.min.js │ ├── slick.min.js │ ├── tabbis.js │ ├── tabbisAdditional.js │ ├── tooltip.min.js │ ├── vfs_fonts.min.js │ ├── vis-data.min.js │ ├── vis-network.find.js │ ├── vis-network.functions.js │ ├── vis-network.loadingbar.js │ ├── vis-network.min.js │ ├── vis-timeline-graph2d.min.js │ ├── winbox.min.js │ ├── winbox.support.js │ └── xss.min.js └── Maps │ ├── africa │ └── africa.js │ ├── algeria │ └── algeria.js │ ├── argentina │ └── argentina.js │ ├── australia │ └── australia.js │ ├── austria │ └── austria_districts.js │ ├── belgium │ └── belgium.js │ ├── brazil │ └── brazil.js │ ├── canada │ └── canada.js │ ├── china │ └── china.js │ ├── colombia │ └── co.js │ ├── croatia │ └── croatia.js │ ├── egypt │ └── eg.js │ ├── england │ ├── england_ceremonial_counties.js │ ├── england_counties.js │ ├── greater_london_county.js │ ├── greater_manchester_county.js │ ├── merseyside_county.js │ ├── south_yorkshire_county.js │ ├── tyne_and_wear_county.js │ ├── west_midlands_county.js │ └── west_yorkshire_county.js │ ├── european_union │ └── european_union.js │ ├── france │ ├── france_departments.js │ ├── france_departments_domtom.js │ ├── france_region_01.js │ ├── france_region_02.js │ ├── france_region_03.js │ ├── france_region_04.js │ ├── france_region_06.js │ ├── france_region_11.js │ ├── france_region_21.js │ ├── france_region_22.js │ ├── france_region_23.js │ ├── france_region_24.js │ ├── france_region_25.js │ ├── france_region_26.js │ ├── france_region_31.js │ ├── france_region_41.js │ ├── france_region_42.js │ ├── france_region_43.js │ ├── france_region_52.js │ ├── france_region_53.js │ ├── france_region_54.js │ ├── france_region_72.js │ ├── france_region_73.js │ ├── france_region_74.js │ ├── france_region_82.js │ ├── france_region_83.js │ ├── france_region_91.js │ ├── france_region_93.js │ ├── france_region_94.js │ ├── france_regions.js │ ├── france_regions_2016.js │ ├── france_regions_2016_domtom.js │ ├── france_regions_domtom.js │ ├── lyon_districts.js │ ├── marseille_districts.js │ ├── paris_districts.js │ └── paris_districts_without_bois.js │ ├── germany │ └── germany.js │ ├── india │ └── india_states.js │ ├── indonesia │ └── indonesia.js │ ├── iran │ └── iran.js │ ├── italy │ └── italy.js │ ├── japan │ └── japan.js │ ├── laos │ └── laos.js │ ├── mexico │ └── mexico.js │ ├── morocco │ └── morocco.js │ ├── netherlands │ └── netherlands_provinces.js │ ├── peru │ └── peru.js │ ├── poland │ └── poland.js │ ├── russia │ └── russia.js │ ├── scandinavia │ └── scandinavia.js │ ├── spain │ └── spain.js │ ├── srilanka │ └── sri_lanka.js │ ├── thailand │ └── thailand.js │ ├── trinidad_and_tobago │ └── trinidad_and_tobago.js │ ├── turkey │ └── turkey.js │ ├── ukraine │ ├── ukraine.js │ └── vinnytsia_region.js │ ├── united_kingdom │ ├── uk_postcode_areas.js │ ├── uk_postcode_areas_mercator.js │ └── united_kingdom.js │ ├── usa │ └── usa_states.js │ ├── wales │ └── wales_county.js │ ├── world │ ├── world_countries.js │ ├── world_countries_mercator.js │ ├── world_countries_miller.js │ ├── world_countries_with_antarctica.js │ └── world_countries_with_antarctica_full_long_and_lat.js │ └── yemen │ └── yemen.js ├── Tests ├── New-HTML.Tests.ps1 ├── New-HTMLTable.Tests.ps1 └── Out-HTMLView.Tests.ps1 └── readme.md /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: PrzemyslawKlys 4 | custom: https://paypal.me/PrzemyslawKlys -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Ignore/* 2 | .vs/* 3 | .vscode/* 4 | Examples/Output/* 5 | Examples/Reports/* 6 | Examples/Logs/* 7 | Examples/Package/* 8 | Examples/*.xml 9 | Examples/*.html 10 | Releases/* 11 | Artefacts/* 12 | ReleasedUnpacked/* 13 | Sources/.vs 14 | Sources/*/.vs 15 | Sources/*/obj 16 | Sources/*/bin 17 | Sources/*/*/obj 18 | Sources/*/*/bin 19 | Sources/packages/* 20 | Lib/Default/* 21 | Lib/Standard/* 22 | Lib/Core/* 23 | *.json 24 | *.html -------------------------------------------------------------------------------- /Docs/Add-HTML.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # Add-HTML 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | Add-HTML [[-HTML] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -HTML 34 | {{ Fill HTML Description }} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailAttachment.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailAttachment 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailAttachment [[-FilePath] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -FilePath 34 | {{ Fill FilePath Description }} 35 | 36 | ```yaml 37 | Type: String[] 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailBCC.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailBCC 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailBCC [[-Addresses] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Addresses 34 | {{ Fill Addresses Description }} 35 | 36 | ```yaml 37 | Type: String[] 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailCC.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailCC 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailCC [[-Addresses] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Addresses 34 | {{ Fill Addresses Description }} 35 | 36 | ```yaml 37 | Type: String[] 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailFrom.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailFrom 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailFrom [[-Address] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Address 34 | {{ Fill Address Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailHTML.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailHTML 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailHTML [[-HTML] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -HTML 34 | {{ Fill HTML Description }} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailHeader.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailHeader 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailHeader [[-EmailHeader] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -EmailHeader 34 | {{ Fill EmailHeader Description }} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailReplyTo.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailReplyTo 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailReplyTo [[-Address] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Address 34 | {{ Fill Address Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailSubject.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailSubject 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailSubject [[-Subject] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Subject 34 | {{ Fill Subject Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/EmailTo.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # EmailTo 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | EmailTo [[-Addresses] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Addresses 34 | {{ Fill Addresses Description }} 35 | 36 | ```yaml 37 | Type: String[] 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-ChartCategory.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-ChartCategory 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLColumn.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLColumn 9 | 10 | ## SYNOPSIS 11 | {{Fill in the Synopsis}} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{Fill in the Description}} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLContent.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLContent 9 | 10 | ## SYNOPSIS 11 | Creates a section in HTML 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{Fill in the Description}} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ## OUTPUTS 35 | 36 | ## NOTES 37 | 38 | ## RELATED LINKS 39 | -------------------------------------------------------------------------------- /Docs/New-HTMLFooter.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLFooter 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-HTMLFooter [[-HTMLContent] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -HTMLContent 34 | {{ Fill HTMLContent Description }} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 1 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-HTMLHeader.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLHeader 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-HTMLHeader [[-HTMLContent] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -HTMLContent 34 | {{ Fill HTMLContent Description }} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 1 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-HTMLHierarchicalTree.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLHierarchicalTree 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-HTMLHierarchicalTree [[-TreeView] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -TreeView 34 | {{ Fill TreeView Description }} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-HTMLHorizontalLine.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLHorizontalLine 9 | 10 | ## SYNOPSIS 11 | {{Fill in the Synopsis}} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-HTMLHorizontalLine [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{Fill in the Description}} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### CommonParameters 34 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 35 | 36 | ## INPUTS 37 | 38 | ### None 39 | 40 | ## OUTPUTS 41 | 42 | ### System.Object 43 | ## NOTES 44 | 45 | ## RELATED LINKS 46 | -------------------------------------------------------------------------------- /Docs/New-HTMLStatus.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLStatus 9 | 10 | ## SYNOPSIS 11 | {{Fill in the Synopsis}} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-HTMLStatus [[-Content] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{Fill in the Description}} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Content 34 | {{Fill Content Description}} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-HTMLTabOptions.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTabOption 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableButtonCSV.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableButtonCSV 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableButtonCopy.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableButtonCopy 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableButtonExcel.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableButtonExcel 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableButtonPageLength.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableButtonPageLength 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableButtonPrint.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableButtonPrint 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableCondition.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableCondition 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableContent.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableContent 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableHeader.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableHeader 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTableReplace.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTableReplace 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ## DESCRIPTION 16 | {{ Fill in the Description }} 17 | 18 | ## EXAMPLES 19 | 20 | ### Example 1 21 | ```powershell 22 | PS C:\> {{ Add example code here }} 23 | ``` 24 | 25 | {{ Add example description here }} 26 | 27 | ## PARAMETERS 28 | 29 | ### CommonParameters 30 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 31 | 32 | ## INPUTS 33 | 34 | ### None 35 | 36 | ## OUTPUTS 37 | 38 | ### System.Object 39 | ## NOTES 40 | 41 | ## RELATED LINKS 42 | -------------------------------------------------------------------------------- /Docs/New-HTMLTimeline.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-HTMLTimeline 9 | 10 | ## SYNOPSIS 11 | {{Fill in the Synopsis}} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-HTMLTimeline [[-Content] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{Fill in the Description}} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Content 34 | {{Fill Content Description}} 35 | 36 | ```yaml 37 | Type: ScriptBlock 38 | Parameter Sets: (All) 39 | Aliases: TimeLineItems 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-TableButtonCSV.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-TableButtonCSV 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-TableButtonCSV [[-Title] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Title 34 | {{ Fill Title Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-TableButtonCopy.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-TableButtonCopy 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-TableButtonCopy [[-Title] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Title 34 | {{ Fill Title Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-TableButtonExcel.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-TableButtonExcel 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-TableButtonExcel [[-Title] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Title 34 | {{ Fill Title Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-TableButtonPageLength.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-TableButtonPageLength 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-TableButtonPageLength [[-Title] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Title 34 | {{ Fill Title Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Docs/New-TableButtonPrint.md: -------------------------------------------------------------------------------- 1 | --- 2 | external help file: PSWriteHTML-help.xml 3 | Module Name: PSWriteHTML 4 | online version: 5 | schema: 2.0.0 6 | --- 7 | 8 | # New-TableButtonPrint 9 | 10 | ## SYNOPSIS 11 | {{ Fill in the Synopsis }} 12 | 13 | ## SYNTAX 14 | 15 | ``` 16 | New-TableButtonPrint [[-Title] ] [] 17 | ``` 18 | 19 | ## DESCRIPTION 20 | {{ Fill in the Description }} 21 | 22 | ## EXAMPLES 23 | 24 | ### Example 1 25 | ```powershell 26 | PS C:\> {{ Add example code here }} 27 | ``` 28 | 29 | {{ Add example description here }} 30 | 31 | ## PARAMETERS 32 | 33 | ### -Title 34 | {{ Fill Title Description }} 35 | 36 | ```yaml 37 | Type: String 38 | Parameter Sets: (All) 39 | Aliases: 40 | 41 | Required: False 42 | Position: 0 43 | Default value: None 44 | Accept pipeline input: False 45 | Accept wildcard characters: False 46 | ``` 47 | 48 | ### CommonParameters 49 | This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). 50 | 51 | ## INPUTS 52 | 53 | ### None 54 | 55 | ## OUTPUTS 56 | 57 | ### System.Object 58 | ## NOTES 59 | 60 | ## RELATED LINKS 61 | -------------------------------------------------------------------------------- /Examples/Example-BuildingTags/Example-Tags.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTMLTag -Tag 'meta' -Attributes @{ charset = "utf-8" } -NoClosing 4 | #New-HTMLTag -Tag 'meta' -Attributes @{ 'http-equiv' = 'X-UA-Compatible'; content = 'IE=8' } -SelfClosing 5 | New-HTMLTag -Tag 'meta' -Attributes @{ name = 'viewport'; content = 'width=device-width, initial-scale=1' } -NoClosing 6 | New-HTMLTag -Tag 'meta' -Attributes @{ 'http-equiv' = "Content-Type"; content = "text/html; charset=utf-8" } -NoClosing -------------------------------------------------------------------------------- /Examples/Example-Calendars/Example-Calendar01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $ProcessSmaller = Get-Process | Select-Object -First 1 4 | 5 | New-HTML -Name 'Test' -FilePath "$PSScriptRoot\Example-Calendar01.html" -Show -Online { 6 | New-HTMLSection { 7 | New-HTMLSection -HeaderText 'Test 1' { 8 | New-HTMLTable -DataTable $ProcessSmaller 9 | } 10 | New-HTMLSection -HeaderText 'Test 2' { 11 | New-HTMLCalendar { 12 | New-CalendarEvent -Title 'Active Directory Meeting' -Description 'We will talk about stuff' -StartDate (Get-Date) 13 | New-CalendarEvent -Title 'Lunch' -StartDate (Get-Date).AddDays(2).AddHours(-3) -EndDate (Get-Date).AddDays(3) -Description 'Very long lunch' 14 | } 15 | } 16 | } 17 | } -Format -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartDonut.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML { 4 | New-HTMLChart -Title 'OneDrive Utilization' -TitleAlignment center { 5 | New-ChartLegend -LegendPosition bottom 6 | New-ChartDonut -Name 'OneDrive Utilization' -Value 15 -Color '#6dbf88' 7 | New-ChartDonut -Name 'Not Utilized' -Value 20 -Color Yellow 8 | } 9 | } -ShowHTML -FilePath $PSScriptRoot\Example-ChartDonut.html -Online -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsBars.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example-ChartsBars.html { 4 | New-HTMLSection -HeaderText 'Bar Charts - Test' -CanCollapse { 5 | New-HTMLPanel { 6 | New-HTMLChart { 7 | New-ChartLegend -LegendPosition bottom -HorizontalAlign right -Color Red, Blue, Yellow -DisableOnItemHoverHighlightDataSeries -DisableOnItemClickToggleDataSeries 8 | New-ChartAxisY -LabelMaxWidth 200 -LabelAlign left -Show -LabelFontColor Red, Blue, Green -TitleText 'This is title for y Axis' -TitleColor Red 9 | New-ChartBarOptions -Distributed 10 | New-ChartBar -Name 'Test very long' -Value 1 11 | New-ChartBar -Name 'Test1' -Value 20 12 | New-ChartBar -Name 'Test2 and even longer title' -Value 30 13 | } -Title 'Testing Title' -TitleAlignment center -SubTitle 'Because SubTitles are better' -SubTitleAlignment center -SubTitleFontSize 30 -TitleColor Gold 14 | } 15 | } 16 | } -Show -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsDesign.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example-ChartsDesign.html { 4 | New-HTMLSection -HeaderText 'Bar Charts - Test' -CanCollapse { 5 | New-HTMLPanel { 6 | New-HTMLChart { 7 | New-ChartLegend -LegendPosition bottom -HorizontalAlign right -Color Red, Blue, Yellow -DisableOnItemHoverHighlightDataSeries -DisableOnItemClickToggleDataSeries 8 | New-ChartAxisY -LabelMaxWidth 200 -LabelAlign left -Show -LabelFontColor Red, Blue, Green -TitleText 'This is title for y Axis' -TitleColor Red 9 | New-ChartBarOptions -Distributed 10 | New-ChartBar -Name 'Test very long' -Value 1 11 | New-ChartBar -Name 'Test1' -Value 20 12 | New-ChartBar -Name 'Test2 and even longer title' -Value 30 13 | 14 | New-ChartDesign -GradientShade light -GradientType diagonal1 -GradientInverseColors 15 | } -Title 'Testing Title' -TitleAlignment center -SubTitle 'Because SubTitles are better' -SubTitleAlignment center -SubTitleFontSize 30 -TitleColor Gold 16 | } 17 | } 18 | } -Show -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsLine1.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $test = @( 4 | @{date = "May 4"; time = "00:02:47"; participantNumber = 0 } 5 | @{date = "May 4"; time = "00:07:47"; participantNumber = 0 } 6 | @{date = "May 4"; time = "00:12:47"; participantNumber = 3 } 7 | @{date = "May 4"; time = "00:17:47"; participantNumber = 2 } 8 | @{date = "May 4"; time = "00:22:47"; participantNumber = 1 } 9 | @{date = "May 4"; time = "00:27:47"; participantNumber = 2 } 10 | @{date = "May 4"; time = "00:32:47"; participantNumber = 3 } 11 | @{date = "May 4"; time = "00:37:47"; participantNumber = 4 } 12 | @{date = "May 4"; time = "00:42:47"; participantNumber = 5 } 13 | @{date = "May 4"; time = "00:47:47"; participantNumber = 10 }) 14 | 15 | New-HTML -TitleText 'Charts - TimeLine' -Online -FilePath "$PSScriptRoot\Example-ChartsLine1.html" { 16 | New-HTMLSection -Name 'Total number of Calls' -Collapsable -TextBackGroundColor "#000000" -TextColor "#ff7900" { 17 | New-HTMLPanel -Invisible { 18 | New-HTMLChart { 19 | New-ChartAxisX -Name $test.date 20 | ChartLegend -Name 'Calls Number' 21 | New-ChartLine -Name 'Participants Number' -Value $test.participantNumber -Color "#ff7900" 22 | New-ChartAxisY -Show -TitleText 'Time' 23 | } 24 | } 25 | } 26 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsPie.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | # Define HTML 4 | New-HTML { 5 | New-HTMLSection { 6 | New-HTMLChart { 7 | New-ChartPie -Name 'Pie Part 1' -Value 20 8 | New-ChartPie -Name 'Pie Part 2' -Value 30 9 | New-ChartPie -Name 'Pie Part 3' -Value 40 10 | } 11 | } 12 | } -ShowHTML -FilePath $PSScriptRoot\Example-ChartsPie.html -Online -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsWithTablesDecimal.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | # Define data 4 | $DataTable = @( 5 | [PSCustomObject] @{ 6 | Name = '192.168.0.1' 7 | ComputerName = 'host1' 8 | Value = 12 9 | } 10 | [PSCustomObject] @{ 11 | Name = '192.168.0.2' 12 | ComputerName = 'host2' 13 | Value = 15 14 | } 15 | [PSCustomObject] @{ 16 | Name = '192.168.0.3' 17 | ComputerName = 'host3' 18 | Value = 17 19 | } 20 | ) 21 | 22 | # Define HTML 23 | New-HTML { 24 | New-HTMLTable -DataTable $DataTable -DataTableID 'NewIDtoSearchInChart' 25 | New-HTMLChart { 26 | New-ChartToolbar -Download 27 | foreach ($Object in $DataTable) { 28 | New-ChartPie -Name $Object.Name -Value $Object.Value 29 | } 30 | # Define event 31 | New-ChartEvent -DataTableID 'NewIDtoSearchInChart' -ColumnID 0 32 | } 33 | } -ShowHTML -FilePath $PSScriptRoot\Example-ChartsWithTablesDecimal.html -Online #-Format -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsWithTablesDonut.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | # Define data 4 | $DataTable = @( 5 | [PSCustomObject] @{ 6 | Name = 'My Object 1' 7 | Time = 1 8 | DateFrom = (Get-Date).AddDays(-1) 9 | DateTo = (Get-Date) 10 | } 11 | [PSCustomObject] @{ 12 | Name = 'My Object 2' 13 | Time = 5 14 | DateFrom = (Get-Date).AddDays(-3) 15 | DateTo = (Get-Date).AddDays(3) 16 | } 17 | [PSCustomObject] @{ 18 | Name = 'My Object 3' 19 | Time = 12 20 | DateFrom = (Get-Date).AddDays(3) 21 | DateTo = (Get-Date).AddDays(7) 22 | } 23 | ) 24 | 25 | New-HTML { 26 | New-HTMLTableOption -DataStore JavaScript 27 | New-HTMLTable -DataTable $DataTable -DataTableID 'Ooopsa' 28 | New-HTMLChart -Gradient { 29 | foreach ($Object in $DataTable) { 30 | New-ChartDonut -Name $Object.Name -Value $Object.Time 31 | } 32 | New-ChartEvent -DataTableID 'Ooopsa' -ColumnID 0 33 | } 34 | } -ShowHTML -FilePath $PSScriptRoot\Example-ChartsWithTablesDonut.html -Online -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsWithTablesPie.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | # Define data 4 | $DataTable = @( 5 | [PSCustomObject] @{ 6 | Name = 'My Object 1' 7 | Time = 1 8 | Money = 5 9 | Taxes = 20 10 | } 11 | [PSCustomObject] @{ 12 | Name = 'My Object 2' 13 | Time = 3 14 | Money = 1 15 | Taxes = 5 16 | } 17 | [PSCustomObject] @{ 18 | Name = 'My Object 3' 19 | Time = 12 20 | Money = 5 21 | Taxes = 1 22 | } 23 | ) 24 | 25 | # Define HTML 26 | New-HTML { 27 | New-HTMLSection { 28 | for ($i = 0; $i -le 5; $i++) { 29 | #New-HTMLContainer { 30 | New-HTMLChart { 31 | New-ChartToolbar -Download 32 | foreach ($Object in $DataTable) { 33 | New-ChartPie -Name $Object.Name -Value $Object.Time 34 | } 35 | } 36 | #} 37 | } 38 | } -Direction column 39 | } -ShowHTML -FilePath $PSScriptRoot\Example-ChartsWithTablesPie.html -Online #-Format -------------------------------------------------------------------------------- /Examples/Example-Charts/Example-ChartsWithTablesTimeLine.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | # Define data 4 | $DataTable = @( 5 | [PSCustomObject] @{ 6 | Name = 'My Object 1' 7 | Time = 1 8 | DateFrom = (Get-Date).AddDays(-1) 9 | DateTo = (Get-Date) 10 | } 11 | [PSCustomObject] @{ 12 | Name = 'My Object 2' 13 | Time = 5 14 | DateFrom = (Get-Date).AddDays(-3) 15 | DateTo = (Get-Date).AddDays(3) 16 | } 17 | [PSCustomObject] @{ 18 | Name = 'My Object 3' 19 | Time = 12 20 | DateFrom = (Get-Date).AddDays(3) 21 | DateTo = (Get-Date).AddDays(7) 22 | } 23 | ) 24 | New-HTML -TitleText 'Charts - TimeLine' -Online -FilePath $PSScriptRoot\Example-ChartsWithTablesTimeLine.html { 25 | New-HTMLTable -DataTable $DataTable -DataTableID 'NewIDtoSearchInChart' 26 | New-HTMLChart -Title 'Incidents Reported vs Solved' -TitleAlignment center { 27 | foreach ($Object in $DataTable) { 28 | New-ChartTimeLine -DateFrom $Object.DateFrom -DateTo $Object.DateTo -Name $Object.Name 29 | } 30 | New-ChartEvent -DataTableID 'NewIDtoSearchInChart' -ColumnID 0 31 | } 32 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Charts/Test.ps1: -------------------------------------------------------------------------------- 1 |  2 | 3 | Dashboard -Name "Test report" -FilePath ".\testreport.html" { 4 | Section -Name "Tests" { 5 | Chart { 6 | ChartToolbar 7 | ChartBarOptions -Vertical 8 | ChartBar -Name "Passed" -Value 1 -Color Green 9 | ChartBar -Name "Failed" -Value 5 -Color Red 10 | ChartBar -Name "Awaiting" -Value 2 -Color Blue 11 | } 12 | } 13 | Section -Name "Tests2" { 14 | Chart { 15 | ChartBar -Name "Status" -Value 1, 5, 2 16 | ChartLegend -Name 'Passed', 'Failing', 'Awaiting' -Color Green, Red, Blue 17 | } 18 | } 19 | Section -Name "Tests2" { 20 | Chart { 21 | ChartBar -Name "C# Tests" -Value 1, 5, 2 22 | ChartBar -Name "PowerShell Tests" -Value 1, 5, 2 23 | ChartBar -Name "F# Tests" -Value 1, 15, 2 24 | ChartLegend -Name 'Passed', 'Failing', 'Awaiting' -Color Green, Red, Blue 25 | } 26 | } 27 | Section -Name "Tests2" { 28 | Chart { 29 | ChartBarOptions -Vertical 30 | ChartBar -Name "C# Tests" -Value 1, 5, 2 31 | ChartBar -Name "PowerShell Tests" -Value 1, 5, 2 32 | ChartBar -Name "F# Tests" -Value 1, 15, 2 33 | ChartLegend -Name 'Passed', 'Failing', 'Awaiting' -Color Green, Red, Blue 34 | } 35 | } 36 | } #-ShowHTML -------------------------------------------------------------------------------- /Examples/Example-ComparingOutHtmlView/Example-OutHTMLView.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Objects2 = @( 4 | Get-ADComputer -SearchBase 'OU=Domain Controllers,DC=ad,DC=evotec,DC=xyz' -Filter * -Properties * 5 | ) 6 | $Objects2 | Out-HtmlView -Compare -HighlightDifferences { 7 | New-HTMLTableCondition -Name 'Name' -Value 'AllowReversiblePasswordEncryption' -BackgroundColor Gold -Row 8 | New-HTMLTableCondition -Name 'Status' -ComparisonType string -Operator eq -Value $false -BackgroundColor Red -Color White 9 | New-HTMLTableCondition -Name 'Status' -ComparisonType string -Operator eq -Value $true -BackgroundColor Green -Color White 10 | } 11 | -------------------------------------------------------------------------------- /Examples/Example-ConvertToCSS/Example-ConvertToCss.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Css = [ordered] @{ 4 | ".tabsWrapper" = [ordered]@{ 5 | 'text-align' = 'center' 6 | 'margin' = "10px auto" 7 | 'font-family' = "'Roboto', sans-serif !important" 8 | 'text-transform' = 'uppercase' 9 | 'font-size' = '15px' 10 | } 11 | '[data-tabs]' = [ordered]@{ 12 | 'display' = 'flex' 13 | 'margin-top' = '10px' 14 | # /*font-size = 15px;*/ 15 | 'padding' = '0px' 16 | 'box-shadow' = '0px 5px 20px rgba(0, 0, 0, 0.1)' 17 | 'border-radius' = '4px' 18 | 'justify-content' = 'center' 19 | } 20 | 21 | '[data-tabs]>*' = [ordered]@{ 22 | 'cursor' = 'pointer' 23 | 'padding' = '10px 20px' 24 | } 25 | 26 | '[data-tabs] .active' = [ordered]@{ 27 | 'background' = '#1e90ff' # DodgerBlue 28 | 'color' = '#fff' 29 | 'border-radius' = '4px' 30 | } 31 | 32 | '[data-panes]>*' = [ordered]@{ 33 | 'display' = 'none' 34 | } 35 | 36 | '[data-panes]>.active' = [ordered]@{ 37 | 'display' = 'block' 38 | } 39 | } 40 | 41 | ConvertTo-CascadingStyleSheets -Css $Css 42 | -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-Chart.ps1: -------------------------------------------------------------------------------- 1 |  2 | $Bounces = @( 3 | [PSCustomObject] @{ BounceTypeName = 'Area1'; Total = 5 } 4 | [PSCustomObject] @{ BounceTypeName = 'Area2'; Total = 13 } 5 | [PSCustomObject] @{ BounceTypeName = 'Area3'; Total = 18 } 6 | [PSCustomObject] @{ BounceTypeName = 'Area4'; Total = 1 } 7 | ) 8 | 9 | Dashboard -Name 'Bounce Chart' -FilePath C:\Scripts\DashboardChartsBar00.html { 10 | TabOptions -slimtabs 11 | Tab -Name 'Bounce Chart by Type' { 12 | Panel { 13 | Chart { 14 | ChartTheme -Palette palette6 15 | ChartLegend -FontSize 14 -FontFamily 'Arial' 16 | foreach ($Bounce in $Bounces) { 17 | ChartPie -Name $Bounce.BounceTypeName -Value $Bounce.Total 18 | } 19 | } 20 | } 21 | Section -Invisible { 22 | Table -DataTable $Bounces -HideFooter { 23 | Table -title 'Email Address' 24 | TableHeader -names 'EmailAddress' -alignment Left 25 | TableHeader -names 'Bounce Type','Date' -alignment Center 26 | TableContent -ColumnIndex 2,3 -alignment center 27 | } 28 | } 29 | } 30 | } -Show -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-EasyDashboard.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 5 4 | $Process1 = Get-Process | Select-Object -First 5 5 | $Process2 = Get-Process | Select-Object -First 5 6 | $Process3 = Get-Process | Select-Object -First 5 7 | 8 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\Output\DashboardEasy.html -Show { 9 | Tab -Name 'First tab' { 10 | Section -Name 'Test' { 11 | Table -DataTable $Process -Filtering 12 | } 13 | Section -Name 'Test2' -Collapsable -Collapsed { 14 | Panel { 15 | Table -DataTable $Process1 16 | } 17 | Panel { 18 | Table -DataTable $Process1 19 | } 20 | } 21 | Section -Name 'Test3' { 22 | Table -DataTable $Process -DefaultSortColumn 'Id' 23 | } 24 | } 25 | Tab -Name 'second tab' { 26 | Panel { 27 | Table -DataTable $Process2 28 | } 29 | Panel { 30 | Table -DataTable $Process2 31 | } 32 | Panel { 33 | Table -DataTable $Process3 -DefaultSortIndex 4 -ScrollCollapse 34 | } 35 | } 36 | } -Online -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable01-DefaultSort.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $PRocess = @( 4 | [PSCustomObject] @{ PRI = 1; ID = 7; Text = "Placeholder Text" } 5 | [PSCustomObject] @{ PRI = 1; ID = 5; Text = "Placeholder Text" } 6 | [PSCustomObject] @{ PRI = 2; ID = 4; Text = "Placeholder Text" } 7 | [PSCustomObject] @{ PRI = 2; ID = 2; Text = "Placeholder Text" } 8 | [PSCustomObject] @{ PRI = 3; ID = 1; Text = "Placeholder Text" } 9 | [PSCustomObject] @{ PRI = 3; ID = 6; Text = "Placeholder Text" } 10 | [PSCustomObject] @{ PRI = 3; ID = 3; Text = "Placeholder Text" } 11 | ) 12 | 13 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\DashboardEasy01.html -Show { 14 | #Table -DataTable $Process -DefaultSortIndex 2 -ScrollCollapse -HideFooter -Buttons @() 15 | 16 | #Table -DataTable $Process -DefaultSortColumn 'PRI' -ScrollCollapse -HideFooter -Buttons @() 17 | 18 | #Table -DataTable $Process -DefaultSortColumn 'ID' -DefaultSortOrder Descending -ScrollCollapse -HideFooter -Buttons @() 19 | 20 | Table -DataTable $Process -DefaultSortColumn 'PRI', 'Id' -DefaultSortOrder Descending, Ascending -ScrollCollapse -HideFooter -Buttons @() 21 | 22 | Table -DataTable $Process -DefaultSortColumn 'PRI', 'Id' -DefaultSortOrder Descending, Descending -ScrollCollapse -HideFooter -Buttons @() 23 | } -Online -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 200 4 | $Process1 = Get-Process | Select-Object -First 5 5 | 6 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\Output\DashboardEasy02.html -Show { 7 | Section -Name 'Test1' -TextAlignment left -TextBackGroundColor BlueViolet { 8 | Table -DataTable $Process -PagingOptions @(50, 100, 150, 200) -HideFooter 9 | #Table -DataTable $Process1 10 | } 11 | Section -Name 'Test3' -BackgroundColor DarkOrange { 12 | Table -DataTable $Process1 13 | # Table -DataTable $Process1 14 | } 15 | Section -Name 'Test2' -Collapsable { 16 | Panel { 17 | # Table -DataTable $Process1 18 | } 19 | Panel { 20 | # Table -DataTable $Process1 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable05.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 15 | Select-Object name, Priorityclass, fileversion, handles, cpu 4 | 5 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\Output\DashboardEasy05.html -Show { 6 | Section -Name 'Test' -Collapsable { 7 | Container { 8 | Panel { 9 | Table -DataTable $Process { 10 | TableButtonPDF 11 | TableButtonCopy 12 | TableButtonExcel 13 | TableButtonPageLength 14 | } -Buttons @() -DisableSearch -PagingOptions @(5, 10) -HideFooter 15 | } 16 | Panel { 17 | Table -DataTable $Process -DisableSearch -HideFooter -PagingOptions @(5, 10) 18 | } 19 | Panel { 20 | Table -DataTable $Process { 21 | TableButtonPDF -PageSize A10 -Orientation landscape 22 | TableButtonCopy 23 | TableButtonExcel 24 | } -Buttons @() -DisableSearch -DisablePaging -HideFooter 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable06.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 15 | Select-Object name, Priorityclass, fileversion, handles, cpu 4 | 5 | $PagingOptions = @(5, 10) 6 | $Proces = '1Password', 'aesm_service' 7 | 8 | $ProcessGreen = 'audiodg', 'browser_broker' 9 | 10 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\Output\DashboardEasy06.html { 11 | Section -Name 'Test' -Collapsable { 12 | Container { 13 | Panel { 14 | Table -DataTable $Process { 15 | TableButtonPDF 16 | TableButtonCopy 17 | TableButtonExcel 18 | TableButtonPageLength 19 | foreach ($T in $Proces) { 20 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value $T -Row -Color Red 21 | } 22 | foreach ($Green in $ProcessGreen) { 23 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value $Green -Row -BackgroundColor Green 24 | } 25 | } -Buttons @() -DisableSearch -PagingOptions $PagingOptions -HideFooter 26 | } 27 | } 28 | } 29 | } -Show -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable07.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 30 4 | 5 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\Output\DashboardEasy07.html -Show { 6 | Table -DataTable $Process -HideFooter { 7 | TableConditionalFormatting -Name 'ID' -ComparisonType number -Operator gt -Value 10000 -Color BlueViolet -Row 8 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value 'chrome' -Color White -BackgroundColor Crimson -Row 9 | TableConditionalFormatting -Name 'PriorityClass' -ComparisonType string -Operator eq -Value 'Idle' -Color White -BackgroundColor Green 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable08.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 30 4 | 5 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\Output\DashboardEasy08.html -Show { 6 | Tab { 7 | Table -DataTable $Process -HideFooter { 8 | TableConditionalFormatting -Name 'ID' -ComparisonType number -Operator gt -Value 10000 -Color BlueViolet -Row 9 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value 'chrome' -Color White -BackgroundColor Crimson -Row 10 | TableConditionalFormatting -Name 'PriorityClass' -ComparisonType string -Operator eq -Value 'Idle' -Color White -BackgroundColor Green 11 | } 12 | } 13 | Tab -Name 'Test 1' -IconBrands amazon { 14 | Section -Name 'Test' -Collapsable -Collapsed { 15 | Table -DataTable $Process -HideFooter { 16 | TableConditionalFormatting -Name 'ID' -ComparisonType number -Operator gt -Value 10000 -Color BlueViolet -Row 17 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value 'chrome' -Color White -BackgroundColor Crimson -Row 18 | TableConditionalFormatting -Name 'PriorityClass' -ComparisonType string -Operator eq -Value 'Idle' -Color White -BackgroundColor Green 19 | } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable09.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 30 4 | 5 | Dashboard -Name 'Dashimo Test' -FilePath $PSScriptRoot\Output\DashboardEasy09.html -Show { 6 | 7 | Section -Name 'Test' -Collapsable { 8 | Table -DataTable $Process -HideFooter { 9 | TableConditionalFormatting -Name 'ID' -ComparisonType number -Operator gt -Value 10000 -Color BlueViolet -Row 10 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value 'chrome' -Color White -BackgroundColor Crimson -Row 11 | TableConditionalFormatting -Name 'PriorityClass' -ComparisonType string -Operator eq -Value 'Idle' -Color White -BackgroundColor Green 12 | } 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /Examples/Example-DashimoStyle/Run-SimplestTable11.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $outputfile = "$PSScriptRoot\Output\DashboardEasy11.html" 4 | $p1 = Get-Process | select-object -first 5 5 | 6 | Dashboard -Name "Office365 Status" -FilePath $outputfile -AutoRefresh 300 { 7 | Tab -Name 'Current Issues' { 8 | Section -Invisible { 9 | Section -Name 'Current Issues' { 10 | Table -DataTable $p1 -Style cell-border { 11 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value "1Password" -Color White -BackgroundColor Crimson -Row 12 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value "AppVShNotify" -Color White -BackgroundColor DarkOrange -Row 13 | TableConditionalFormatting -Name 'Name' -ComparisonType string -Operator eq -Value "ApplicationFrameHost" -Color White -BackgroundColor Yellow -Row 14 | } 15 | } 16 | } 17 | } 18 | } -Show -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-Basic.Tabs.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -Online:$true -FilePath $PSScriptRoot\Example-Basic.Tabs.html { 4 | New-HTMLTabStyle -SlimTabs 5 | New-HTMLTab -Name 'Diagram 1' -IconRegular arrow-alt-circle-left { 6 | New-HTMLPanel { 7 | New-HTMLDiagram { 8 | New-DiagramNode -Label '1 test' -To '3', '6', '7' -ColorBackground Bisque 9 | New-DiagramNode -Label '2' -To 'Przemyslaw Klys', '1 test' 10 | } 11 | } 12 | } 13 | New-HTMLTab -Name 'Diagrams 2' -IconRegular arrow-alt-circle-left { 14 | New-HTMLDiagram { 15 | New-DiagramNode -Label '1 test' -To '3', '6', '7' -ColorBackground Bisque 16 | New-DiagramNode -Label '2' -To 'Przemyslaw Klys', '1 test' 17 | } 18 | New-HTMLDiagram { 19 | New-DiagramNode -Label '1 test' -To '3', '6', '7' -ColorBackground Bisque 20 | New-DiagramNode -Label '2' -To 'Przemyslaw Klys', '1 test' 21 | } 22 | } 23 | New-HTMLTab -Name 'Diagram 3' -IconRegular arrow-alt-circle-left { 24 | New-HTMLPanel { 25 | New-HTMLDiagram { 26 | New-DiagramNode -Label '1 test' -To '3', '6', '7' -ColorBackground Bisque 27 | New-DiagramNode -Label '2' -To 'Przemyslaw Klys', '1 test' 28 | } 29 | } 30 | } 31 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-Basic.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -Online -FilePath $PSScriptRoot\Example-Basic.html { 4 | New-HTMLTabStyle -SlimTabs 5 | New-HTMLTab -Name 'Diagrams' -IconRegular arrow-alt-circle-left { 6 | New-HTMLSection -HeaderText 'Diagram - Defaults' -CanCollapse { 7 | New-HTMLPanel { 8 | New-HTMLDiagram { 9 | New-DiagramNode -Label '1 test' -To '3','6','7' -ColorBackground Bisque 10 | New-DiagramNode -Label '2' -To 'Przemyslaw Klys','1 test' 11 | New-DiagramNode -Label '3' 12 | New-DiagramNode -Label 'Size based on name' -Shape database -Size 10 13 | New-DiagramNode -Label 'Przemyslaw Klys' 14 | New-DiagramNode -Label '6' -To 'Przemyslaw Klys' -ColorBorder Aquamarine -ColorBackground Yellow 15 | New-DiagramNode -Label '7' -To 'Przemyslaw Klys' -ColorHighlightBackground Red -Shape diamond 16 | New-DiagramNode -Label '8' -To 'Przemyslaw Klys' -ColorHoverBorder Yellow -Shape diamond 17 | } 18 | } 19 | } 20 | } 21 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-BasicWithHeight.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -Title 'Shows how to control diagram height' { 4 | New-HTMLSectionStyle -BorderRadius 0px -HeaderBackGroundColor Grey -RemoveShadow 5 | New-HTMLSection -Title 'Shows how to fill whole screen with diagram' { 6 | New-HTMLDiagram -Height 'calc(100vh - 50px)' { 7 | New-DiagramNode -Label 'Test' -To 'test2' -Shape box -FontColor Red 8 | 9 | $Label = @" 10 | This is Test 11 | This is more test 12 | Ooops 13 | "@ 14 | New-DiagramNode -Id 'test2' -Label $Label -FontMulti html -Shape box -FontAlign left 15 | } 16 | } 17 | #New-HTMLTable -DataTable (Get-Process | Select-Object -First 2) 18 | } -FilePath $PSScriptRoot\Example-BasicWithHeight.html -Online -ShowHTML 19 | 20 | 21 | -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-Diagram1.ps1: -------------------------------------------------------------------------------- 1 | New-HTML -TitleText 'My diagram' -Online -FilePath $PSScriptRoot\Example-Basic02.html { 2 | New-HTMLTabStyle -SlimTabs 3 | New-HTMLTab -Name 'Diagrams' -IconRegular arrow-alt-circle-left { 4 | New-HTMLSection -HeaderText 'Diagram - Defaults' -CanCollapse { 5 | New-HTMLPanel { 6 | New-HTMLDiagram { 7 | New-DiagramNode -Label '1 test' -To '3', '6', '7' -ColorBackground Bisque 8 | New-DiagramNode -Label '2' -To 'Przemyslaw Klys', '1 test' 9 | New-DiagramNode -Label '3' -Title 'my new popup' 10 | New-DiagramNode -Label 'Size based on name' -Shape database -Size 10 -Title "Long Line`nIn another line" 11 | New-DiagramNode -Label 'Przemyslaw Klys' 12 | New-DiagramNode -Label '6' -To 'Przemyslaw Klys' -ColorBorder Aquamarine -ColorBackground Yellow 13 | New-DiagramNode -Label '7' -To 'Przemyslaw Klys' -ColorHighlightBackground Red -Shape diamond 14 | New-DiagramNode -Label '8' -To 'Przemyslaw Klys' -ColorHoverBorder Yellow -Shape diamond 15 | } 16 | } 17 | } 18 | } 19 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-DiagramWithCharts.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -Online -FilePath $PSScriptRoot\Example-DiagramWithCharts.html { 4 | New-HTMLSection { 5 | New-HTMLDiagram { 6 | New-DiagramNode -Label 'One node' -To 'Second node', 'Third node' -ColorBackground Bisque 7 | New-DiagramNode -Label 'Second node' 8 | New-DiagramNode -Label 'Third node' -IconBrands amazon -IconColor Brown 9 | New-DiagramNode -Label 'Bart Simson' -Image 'https://cdn.imgbin.com/5/2/1/imgbin-bart-simpson-homer-simpson-supreme-drawing-bart-simpson-bard-simpsons-jAfrtPtYNPTK5rQrcKULn5XBn.jpg' -To 'Second node' 10 | } #-DisableLoadingBar 11 | } 12 | New-HTMLSection { 13 | New-HTMLChart { 14 | New-ChartToolbar -Download 15 | #New-ChartBarOptions -Gradient 16 | New-ChartLegend -Name 'Time', 'Money', 'Taxes' 17 | New-ChartBar -Name 'Test' -Value 1, 2, 3 18 | New-ChartBar -Name 'Test1' -Value 2, 5, 7 19 | New-ChartBar -Name 'Test2' -Value 3, 1, 2 20 | } 21 | } 22 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-Diagrams02_DashimoStyle.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | Dashboard -TitleText 'My charts' -Online -FilePath $PSScriptRoot\Example-Diagrams02_DashimoStyle.html { 4 | Diagram -Height 'calc(100vh - 20px)' { 5 | DiagramOptionsInteraction -Hover $true 6 | DiagramOptionsPhysics -Enabled $false 7 | DiagramNode -Label '1 test' -To '3', '6', '7' -ColorBackground Bisque 8 | DiagramNode -Label '2' -To '5', '1 test' 9 | DiagramNode -Label '3' 10 | DiagramNode -Label '4' 11 | DiagramNode -Label '5' 12 | DiagramNode -Label '6' -To '5' -ColorBorder Aquamarine -ColorBackground Yellow 13 | DiagramNode -Label '7' -To '5' -ColorHighlightBackground Red 14 | DiagramNode -Label '8' -To '5' -ColorHoverBorder Yellow 15 | } 16 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-DiagramsChartsTable.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Processes = Get-Process | Select-Object -First 1 | Sort-Object workingset 4 | New-HTML -Online -FilePath $PSScriptRoot\Example-DiagramsChartsTable1.html -Show { 5 | New-HTMLTable -DataTable $Processes 6 | New-HTMLChart { 7 | foreach ($Process in $Processes) { 8 | New-ChartBar -Name $Process.name -Value $Process.Workingset 9 | } 10 | } 11 | New-HTMLDiagram { 12 | New-DiagramNode -Label '1' -To '2' 13 | New-DiagramNode -Label '2' -To '3' 14 | New-DiagramNode -Label '3' -To '4' 15 | New-DiagramNode -Label '4' 16 | } 17 | } 18 | 19 | $Processes = Get-Process | Select-Object -First 1 | Sort-Object workingset 20 | New-HTML -Online -FilePath $PSScriptRoot\Example-DiagramsChartsTable2.html -Show { 21 | New-HTMLDiagram { 22 | New-DiagramNode -Label '1' -To '2' 23 | New-DiagramNode -Label '2' -To '3' 24 | New-DiagramNode -Label '3' -To '4' 25 | New-DiagramNode -Label '4' 26 | } 27 | New-HTMLTable -DataTable $Processes 28 | New-HTMLChart { 29 | foreach ($Process in $Processes) { 30 | New-ChartBar -Name $Process.name -Value $Process.Workingset 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-DifferentLinks.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -FilePath $PSScriptRoot\Example-DifferentLinks.html { 4 | New-HTMLDiagram { 5 | New-DiagramNode -Label 2 6 | New-DiagramNode -LABEL 3 7 | New-DiagramLink -from 2 -to 3 -label 'ello' -ArrowsToEnabled $true 8 | New-DiagramLink -from 2 -to 3 -Label 'test' -ArrowsFromEnabled $true 9 | } 10 | } -ShowHTML -Online -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-Easy.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -Online -FilePath $PSScriptRoot\Example-Easy.html { 4 | New-HTMLPanel { 5 | New-HTMLDiagram { 6 | New-DiagramNode -Label 'One node' -To 'Second node', 'Third node' -ColorBackground Bisque 7 | New-DiagramNode -Label 'Second node' 8 | New-DiagramNode -Label 'Third node' 9 | } 10 | } 11 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-Easy2.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -Online -FilePath $PSScriptRoot\Example-Easy2.html { 4 | New-HTMLSection { 5 | New-HTMLDiagram { 6 | New-DiagramNode -Label 'One node' -To 'Second node', 'Third node' -ColorBackground Bisque 7 | New-DiagramNode -Label 'Second node' 8 | New-DiagramNode -Label 'Third node' -IconBrands amazon -IconColor Brown 9 | New-DiagramNode -Label 'Bart Simson' -Image 'https://cdn.imgbin.com/5/2/1/imgbin-bart-simpson-homer-simpson-supreme-drawing-bart-simpson-bard-simpsons-jAfrtPtYNPTK5rQrcKULn5XBn.jpg' -To 'Second node' 10 | } #-DisableLoadingBar 11 | } 12 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-Easy4.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -FilePath $PSScriptRoot\Example-Easy6.html { 4 | New-HTMLSection -Invisible { 5 | New-HTMLSection { 6 | New-HTMLDiagram { 7 | New-DiagramNode -Label 'One node' -To 'Second node', 'Third node' -ColorBackground Bisque 8 | New-DiagramNode -Label 'Second node' 9 | New-DiagramNode -IconBrands accessible-icon -Label 'Test' 10 | } #-DisableLoader 11 | } 12 | New-HTMLSection -Height 1000px { 13 | New-HTMLDiagram { 14 | New-DiagramNode -Label 'One node' -To 'Second node', 'Third node' -ColorBackground Bisque 15 | New-DiagramNode -Label 'Second node' 16 | } -DisableLoader 17 | } 18 | } 19 | } -ShowHTML -Online -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-FontsAwesome.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -Online:$true -FilePath $PSScriptRoot\Example-FontsAwesome.html { 4 | New-HTMLDiagram { 5 | New-DiagramNode -Label 'IconBrands example' -IconBrands accessible-icon 6 | New-DiagramNode -Label 'IconRegular example' -IconRegular address-card 7 | New-DiagramNode -Label 'IconSolid example' -IconSolid air-freshener 8 | } -DisableLoader 9 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-HierarchicalLayout02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My diagram' -FilePath $PSScriptRoot\Example-HierarchicalLayout02.html { 4 | New-HTMLDiagram -Height '1000px' { 5 | New-DiagramOptionsLayout -HierarchicalEnabled $true -HierarchicalDirection FromUpToDown #-HierarchicalSortMethod directed 6 | New-DiagramOptionsPhysics -Enabled $false 7 | New-DiagramNode -Label 'One node' -ColorBackground Bisque -Level 1 8 | New-DiagramNode -Label 'Second node' -Level 1 9 | New-DiagramNode -Label 'Third node' -IconBrands amazon -IconColor Brown -Level 3 10 | New-DiagramNode -Label 'Fourth node' -IconRegular building -IconColor Brown -Level 4 11 | New-DiagramNode -Label 'Fifth node' -IconSolid align-left -IconColor Brown -Level 4 12 | New-DiagramNode -Level 4 -Label 'Bart Simson' -Image 'https://cdn.imgbin.com/5/2/1/imgbin-bart-simpson-homer-simpson-supreme-drawing-bart-simpson-bard-simpsons-jAfrtPtYNPTK5rQrcKULn5XBn.jpg' -To 'Second node' 13 | New-DiagramLink -Label 'Super Connection' -From 'Fourth node' -To 'Bart Simson' 14 | New-DiagramLink -From 'One node' -To 'Second Node' 15 | New-DiagramLink -From 'One node' -To 'Third node' 16 | New-DiagramLink -From 'Third node' -To 'Fourth node' 17 | New-DiagramLink -From 'Fifth node' -To 'Bart Simson' 18 | } 19 | } -ShowHTML -Online -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-HierarchicalLayout04.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My Ubiquiti Network' -Online -FilePath "$PSScriptRoot\Example-HierarchicalLayout04.html" { 4 | New-HTMLSection -HeaderText 'Diagram - My Network' -CanCollapse { 5 | New-HTMLDiagram -Height '1000px' { 6 | New-DiagramOptionsLayout -RandomSeed 500 -HierarchicalEnabled $true -HierarchicalDirection FromLeftToRight 7 | New-DiagramNode -Label 'DC2' -IconSolid address-card -IconColor Green -Level 1 8 | New-DiagramNode -ID '17000' -Label 'DC2' -Level 2 -To 'DC2' 9 | New-DiagramNode -ID '17001' -Label 'DC2' -Level 2 -To 'DC2' 10 | New-DiagramNode -Label 'DC3' -Level 3 -To '17001' 11 | New-DiagramNode -Label 'DC4' -Level 3 -To '17001' 12 | New-DiagramNode -Label 'Fourth Level' -Level 4 -To 'DC4' 13 | } 14 | } 15 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-HierarchicalLayout05.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My Ubiquiti Network' -Online -FilePath "$PSScriptRoot\Example-HierarchicalLayout05.html" { 4 | New-HTMLSection -HeaderText 'Diagram - My Network' -CanCollapse { 5 | New-HTMLDiagram -Height '1000px' { 6 | New-DiagramOptionsLayout -RandomSeed 500 -HierarchicalEnabled $true -HierarchicalDirection FromUpToDown 7 | New-DiagramOptionsLinks -FontSize 12 -WidthConstraint 90 -Length 200 8 | New-DiagramOptionsNodes -WidthConstraintMaximum 200 -Margin 10 -Shape box 9 | New-DiagramNode -ID 1 -Label "This is my very long title that I want to use on Level 1" -Level 1 10 | New-DiagramNode -ID 3 -Label "This is my very long title that I want to use on Level 2" -Level 2 -To 1 11 | New-DiagramNode -ID 4 -Label "This is my very long title that I want to use on Level 2" -Level 2 -To 1 12 | New-DiagramNode -ID 5 -Label "This is my very long title that I want to use on Level 3" -Level 3 -To 3 13 | New-DiagramNode -ID 6 -Label "This is my very long title that I want to use on Level 3" -Level 3 -To 3 14 | New-DiagramNode -ID 7 -Label "This is my very long title that I want to use on Level 4" -Level 4 -To 6 15 | } 16 | } 17 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-ID.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My Ubiquiti Network' -Online -FilePath $PSScriptRoot\Example-ID.html { 4 | New-HTMLSection -HeaderText 'Diagram - My Network' -CanCollapse { 5 | New-HTMLDiagram -Height '1000px' { 6 | New-DiagramOptionsInteraction -Hover $true 7 | #New-DiagramOptionsManipulation 8 | New-DiagramOptionsPhysics 9 | New-DiagramOptionsLayout -RandomSeed 500 10 | New-DiagramNode -Label 'DC2' -IconSolid address-card -IconColor Green -To '17000', '17001' 11 | New-DiagramNode -ID '17000' -Label 'DC2' 12 | New-DiagramNode -ID '17001' -Label 'DC2' 13 | } 14 | } 15 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-LinkedDiagramWithTable.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Processes = Get-Process | Select-Object -First 10 -Property Id, ProcessName 4 | $TableID = 'RandomID' 5 | 6 | New-HTML -TitleText 'My Title' -FilePath $PSScriptRoot\Example-LinkedDiagramWithTable.html { 7 | New-HTMLSection -Invisible { 8 | New-HTMLPanel { 9 | New-HTMLTable -DataTable $Processes -DataTableID $TableID -DataStore JavaScript 10 | } 11 | New-HTMLPanel { 12 | New-HTMLDiagram -Height '1000px' { 13 | New-DiagramEvent -ID $TableID -ColumnID 0 14 | New-DiagramNode -Label 'Processes' -IconBrands delicious 15 | foreach ($_ in $Processes) { 16 | New-DiagramNode -Label $_.ProcessName -Id $_.Id -To 'Processes' 17 | } 18 | } 19 | } 20 | } 21 | } -Online -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Diagrams/Example-LoadFromJSON.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $JSON = Get-Content "$PSScriptRoot\Example-LoadFromJSON.json" | ConvertFrom-Json 4 | 5 | New-HTML -TitleText 'My diagram' -FilePath $PSScriptRoot\Example-LoadFromJSON.html { 6 | New-HTMLDiagram -Height '1000px' { 7 | foreach ($Node in $JSON.nodes) { 8 | New-DiagramNode -Level $Node.Level -Label $Node.Label 9 | } 10 | foreach ($Link in $JSON.edges) { 11 | New-DiagramLink -From $Link.From -To $Link.To 12 | } 13 | 14 | } 15 | } -ShowHTML -Online -------------------------------------------------------------------------------- /Examples/Example-Disclaimer/Example-Disclaimer.ps1: -------------------------------------------------------------------------------- 1 | $Company = 'Evotec' 2 | 3 | $Text = @" 4 | This email is from Evotec. It may contain confidential information. It is intended for the addressee only and may not be copied or disclosed to any third party without our permission. If you are not the intended recipient please contact the sender as soon as possible and delete the material from any computer. If this email has been sent as a personal message to the addressee, the sender is not acting in his/her capacity as an employee or officer of $Company Limited and no liability is accepted for the content of any such email. Outgoing email may be monitored for the purpose of ensuring compliance with our email policy and relevant laws 5 | "@ 6 | 7 | $HTML = New-HTMLText -FontSize 10 -FontFamily 'Source Sans Pro' -Text $Text 8 | Save-HTML -FilePath $PSScriptRoot\Disclaimer.html -HTML $HTML -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Emails/Example-EmailBodyBasic.ps1: -------------------------------------------------------------------------------- 1 | $Table = (Get-Process | Select-Object -First 2 -Property Name, BasePriority, Company, CompanyName) 2 | 3 | $Body = EmailBody -FontSize 12px -FontFamily 'Tahoma' { 4 | EmailText -Text 'This should be font 8pt, table should also be font 8pt' -FontSize 8pt 5 | EmailTable -DataTable $Table -HideFooter { 6 | EmailTableCondition -Name 'Name' -Operator eq -Value 'svchost' -BackgroundColor TeaGreen -FailBackgroundColor Salmon -Inline 7 | } 8 | } 9 | 10 | Send-MailMessage -Body $Body -------------------------------------------------------------------------------- /Examples/Example-Emails/Example-EmailBodyTable.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Table = @( 4 | [PSCustomObject] @{ 5 | Name = 'Process1' 6 | BasePriority = 1 7 | Company = 'Company1' 8 | CompanyName = 'Company Name 1', "Teest" 9 | } 10 | [PSCustomObject] @{ 11 | Name = 'Process1' 12 | BasePriority = 1 13 | Company = 'Company1' 14 | CompanyName = @('Company Name 1', "Teest") 15 | } 16 | [PSCustomObject] @{ 17 | Name = 'Process1' 18 | BasePriority = 1 19 | Company = 'Company1' 20 | CompanyName = "Teest" 21 | } 22 | ) 23 | 24 | $Output = EmailBody -FontSize 15px -FontFamily 'Tahoma' { 25 | EmailTableOption -PrettifyObject -PrettifyObjectSeparator " - " 26 | EmailText -Text 'This should be font 8pt, table should also be font 8pt' 27 | EmailTable -Table $Table # this will use PrettifyObject from above 28 | 29 | EmailText -LineBreak 30 | 31 | EmailTable -Table $Table -PrettifyObject -PrettifyObjectSeparator ", " 32 | 33 | EmailText -LineBreak 34 | 35 | EmailTextBox -FontFamily 'Calibri' -Size 17 -TextDecoration underline -Color DarkSalmon -Alignment center { 36 | 'Demonstration' 37 | } 38 | EmailText -LineBreak 39 | } 40 | 41 | Save-HTML -ShowHTML -HTML $Output -------------------------------------------------------------------------------- /Examples/Example-Emails/Example-PasswordNotification.ps1: -------------------------------------------------------------------------------- 1 | Import-Module PSWriteHTML -Force 2 | 3 | $UserNotify = 'Przemysław Kłys' 4 | $PasswordExpiryDays = 5 5 | 6 | 7 | Email -WhatIf { 8 | EmailHeader { 9 | EmailFrom -Address 'reminder@domain.pl' 10 | EmailTo -Addresses "przemyslaw.klys@domain.pl" 11 | EmailServer -Server 'mail.evotec.com' -UserName 'YourUsername' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile 12 | EmailOptions -Priority High -DeliveryNotifications Never 13 | EmailSubject -Subject 'This is a test email' 14 | } 15 | EmailBody -FontFamily 'Calibri' -Size 15 { 16 | EmailTextBox { 17 | "Hello $UserNotify," 18 | "" 19 | "Your password is due to expire in $PasswordExpiryDays days." 20 | "" 21 | 'To change your password: ' 22 | '- press CTRL+ALT+DEL -> Change a password...' 23 | '' 24 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 25 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 26 | '' 27 | 'Alternatively you can always call Help Desk at +48 22 00 00 00' 28 | '' 29 | 'Kind regards,' 30 | 'Evotec IT' 31 | } 32 | EmailText -LineBreak 33 | } 34 | } -------------------------------------------------------------------------------- /Examples/Example-Emails/Example-PasswordNotificationDiff.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | ### Prepare your data: 4 | 5 | $UserNotify = 'Przemysław Kłys' 6 | $PasswordExpiryDays = 5 7 | 8 | Email -WhatIf -To 'przemyslaw.klys@domain.pl' -Server 'mail.domain.com' -From 'reminder@domain.pl' -Subject 'Tis is a test email' -Username 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile -Priority High -DeliveryNotifications Never { 9 | EmailBody -FontFamily 'Calibri' -Size 15 { 10 | EmailTextBox { 11 | "Hello $UserNotify," 12 | "" 13 | "Your password is due to expire in $PasswordExpiryDays days." 14 | "" 15 | 'To change your password: ' 16 | '- press CTRL+ALT+DEL -> Change a password...' 17 | '' 18 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 19 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 20 | '' 21 | 'Alternatively you can always call Help Desk at +48 22 00 00 00' 22 | '' 23 | 'Kind regards,' 24 | 'Evotec IT' 25 | } 26 | EmailText -LineBreak 27 | } 28 | } -AttachSelf -Verbose -------------------------------------------------------------------------------- /Examples/Example-Experiments/Example-Test.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML { 4 | Add-JS -Placement Header -Link 'https://code.jquery.com/jquery-3.3.1.min.js' 5 | Add-CSS -Placement Inline -Link 'https://cdn.jsdelivr.net/npm/jquery-smarttab@3/dist/css/smart_tab_all.min.css' 6 | Add-JS -Placement Header -Link 'https://cdn.jsdelivr.net/npm/jquery-smarttab@3/dist/js/jquery.smartTab.min.js' 7 | Add-CSS -Placement Inline -CSS @{ 8 | body = @{ 9 | 'background-color' = '#f4f4f4' 10 | } 11 | } 12 | } -Online -FilePath $PSScriptRoot\Example-Test.html -------------------------------------------------------------------------------- /Examples/Example-Formatting/Example-Formatting.ps1: -------------------------------------------------------------------------------- 1 | Import-Module PSParseHTML -Force 2 | 3 | New-HTML -Online { 4 | 5 | } -FilePath $PSScriptRoot\Output\TestWithoutFormat.html 6 | 7 | New-HTML -Online { 8 | 9 | } -FilePath $PSScriptRoot\Output\TestWithFormat.html -Format 10 | 11 | New-HTML -Online { 12 | 13 | } -FilePath $PSScriptRoot\Output\TestMinimize.html -Minify 14 | 15 | #Format-HTML -File 'C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSWriteHTML\Examples\Example25-Toasts\Example25.html' -OutputFile $PSScriptRoot\Output\Example.Toasts.html 16 | #Optimize-ResourceFile -File 'C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSWriteHTML\Resources\CSS\datatables.min.css' -OutputFile $PSScriptRoot\Output\Example.DataTables.css 17 | #Optimize-ResourceFile -File 'C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSWriteHTML\Resources\JS\HideSection.js' -OutputFile $PSScriptRoot\Output\Example.HideSection.js 18 | #Optimize-ResourceFile -File 'C:\Users\przemyslaw.klys\OneDrive - Evotec\Support\GitHub\PSWriteHTML\Resources\JS\jquery-3.3.1.min.js' -OutputFile $PSScriptRoot\Output\Example.Jquery.js 19 | -------------------------------------------------------------------------------- /Examples/Example-IE/Example.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Processes = Get-Process | Select-Object -First 3 4 | 5 | New-HTML -TitleText 'My Title' -FilePath $PSScriptRoot\TestIE.html -ShowHTML { 6 | New-HTMLTable -DataTable $Processes -PagingOptions @(2,4) 7 | } -Online -------------------------------------------------------------------------------- /Examples/Example-InfoCard/Example-QuickCheck-NewInfoCard.ps1: -------------------------------------------------------------------------------- 1 | Import-Module ..\..\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML { 4 | New-HTMLSection -HeaderText "Application Overview" -Density Comfortable { 5 | New-HTMLInfoCard -Title "Total Applications" -Number 55 -Subtitle "Active Apps" -Icon "📱" -IconColor '#0078d4' 6 | New-HTMLInfoCard -Title "App Registrations" -Number 63 -Subtitle "Registered" -Icon "📋" -IconColor '#0078d4' 7 | New-HTMLInfoCard -Title "Enterprise Apps" -Number 45454 -Subtitle "Enterprise" -Icon "🏢" -IconColor '#0078d4' 8 | New-HTMLInfoCard -Title "Microsoft Apps" -Number 123 -Subtitle "Official" -Icon "Ⓜ️" -IconColor '#0078d4' 9 | } 10 | New-HTMLSection -HeaderText "Application Overview" -Density Comfortable { 11 | New-HTMLSection -Invisible { 12 | New-HTMLInfoCard -Title "Managed Identities" -Number 13 -Subtitle "System Managed" -Icon "🔐" -IconColor '#0078d4' 13 | New-HTMLInfoCard -Title "Apps w/ Delegated Permissions" -Number 19 -Subtitle "User Consent" -Icon "👥" -IconColor '#0078d4' 14 | New-HTMLInfoCard -Title "Apps w/ Application Permissions" -Number 500 -Subtitle "Admin Consent" -Icon "🔑" -IconColor '#0078d4' 15 | New-HTMLInfoCard -Title "Apps with No Sign-In Activity" -Number 2300 -Subtitle "Inactive" -Icon "⚠️" -IconColor '#d13438' 16 | } 17 | } 18 | } -FilePath "$PSScriptRoot\Example-QuickCheck-NewInfoCard.html" -Online -Show -------------------------------------------------------------------------------- /Examples/Example-Links/Example-Links.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | 4 | New-HTML { 5 | New-HTMLText -Text @( 6 | "This is a string with [SomeURL](https://evotec.xyz) and this isn't. " 7 | "This is more complicated [URL](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn535495(v=ws.11)) with double () and it doesn't work properly " 8 | "More URLs in one line [SomeURL](https://evotec.xyz) and and [SomeURL](https://evotec.xyz)." 9 | ) 10 | New-HTMLText -Text @( 11 | "[Attacking Read-Only Domain Controllers (RODCs) to Own Active Directory](https://adsecurity.org/?p=3592)" 12 | ) 13 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Maps/Example-Maps.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML { 4 | New-HTMLSection -Invisible { 5 | New-HTMLPanel { 6 | New-HTMLMap -Map poland 7 | } 8 | New-HTMLPanel { 9 | New-HTMLMap -Map usa_states 10 | } 11 | } 12 | New-HTMLSection -Invisible { 13 | New-HTMLPanel { 14 | New-HTMLMap -Map world_countries 15 | } 16 | } 17 | New-HTMLSection -Invisible { 18 | New-HTMLPanel { 19 | New-HTMLMap -Map European_Union 20 | } 21 | } 22 | } -ShowHTML -Online -FilePath $PSScriptRoot\Example-Maps.html -------------------------------------------------------------------------------- /Examples/Example-OrganizationalCharts/Example-OrgChart01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML { 4 | New-HTMLOrgChart { 5 | New-OrgChartNode -Name 'Test' -Title 'Test2' { 6 | New-OrgChartNode -Name 'Test' -Title 'Test2' 7 | New-OrgChartNode -Name 'Test' -Title 'Test2' 8 | New-OrgChartNode -Name 'Test' -Title 'Test2' { 9 | New-OrgChartNode -Name 'Test' -Title 'Test2' 10 | } 11 | } 12 | } -AllowExport -ExportExtension pdf -Draggable 13 | } -FilePath $PSScriptRoot\Example-OrgChart01.html -ShowHTML -Online -------------------------------------------------------------------------------- /Examples/Example-QR/Example-QR01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -Online -FilePath $PSScriptRoot\Example-QR01.html { 4 | New-HTMLQRCode -Link 'https://evotec.xyz' 5 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-QR/Example-QR02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -Online -FilePath $PSScriptRoot\Example-QR02.html { 4 | New-HTMLSection -Invisible { 5 | New-HTMLPanel { 6 | New-HTMLQRCode -Link 'https://evotec.xyz' 7 | } 8 | New-HTMLPanel { 9 | New-HTMLQRCode -Link 'https://evotec.xyz' -Height 250 -Width 250 -Logo 'https://evotec.xyz/wp-content/uploads/2015/05/Logo-evotec-012.png' -LogoWidth 100 -LogoInline 10 | } 11 | } 12 | # Unfortunetly this table when defined outside of New-HTML won't work, not yet - would need to think on new solution 13 | $Table = @( 14 | [PSCustomObject] @{ 15 | ComputerName = 'EvoWin' 16 | QRCode = New-HTMLQRCode -Link 'https://evotec.xyz/EvoWin' -Height 50 -Width 50 -Title 'Evotec' -TitleColor Red 17 | } 18 | [PSCustomObject] @{ 19 | ComputerName = 'EvoMac' 20 | QRCode = New-HTMLQRCode -Link 'https://evotec.xyz/EvoMac' -Height 50 -Width 50 -Logo 'https://evotec.xyz/wp-content/uploads/2015/05/Logo-evotec-012.png' 21 | } 22 | ) 23 | New-HTMLTable -DataTable $Table -Filtering -InvokeHTMLTags 24 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-StatusPage/Example-StatusPage01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | 4 | New-HTML -TitleText 'Services Status' -Online:$false -FilePath $PSScriptRoot\StatusPage01.html { 5 | New-HTMLSection -Invisible { 6 | New-HTMLPanel -Invisible { 7 | New-HTMLToast -TextHeader 'Information' -Text 'Everything is running smoothly!' -BarColorLeft Blue -IconSolid info-circle -IconColor Blue 8 | New-HTMLToast -TextHeader 'Information' -Text 'Everything is running smoothly!' -BarColorLeft Orange -IconSolid tablet -IconColor Orange 9 | New-HTMLToast -TextHeader 'Information' -Text 'Everything is running smoothly!' -BarColorLeft Blue -IconSolid info-circle -IconColor Blue 10 | } 11 | New-HTMLPanel -Invisible { 12 | New-HTMLTimeline { 13 | New-HTMLTimelineItem -HeadingText 'Azure AD is down' -Text "We have huge problems" -Date (Get-Date).AddDays(-1) 14 | New-HTMLTimelineItem -HeadingText 'Azure AD ...' -Text "We have huge problems" -Date (Get-Date).AddDays(-2) 15 | New-HTMLTimelineItem -HeadingText 'AD just died' -Text "We have huge problems" -Date (Get-Date).AddDays(-3) -Color Red 16 | } 17 | } 18 | } 19 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Table/Example-CSV.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $data = Get-Process | Select-Object Name, WorkingSet, Id, VirtualMemorySize, CPU -First 10 4 | New-HTML -HtmlData { 5 | New-HTMLTable -DataTable $data -HideFooter -PagingLength 7 -PagingOptions 5, 7, 10, 15, 30, 50, 100 -HTML { 6 | #New-TableButtonCopy 7 | #New-TableButtonColumnVisibility 8 | New-TableButtonCSV 9 | New-TableCondition -Name Name -ComparisonType string -Operator eq -Value 1password -Color BlueViolet -BackgroundColor MoonYellow -Row 10 | New-TableCondition -Name Name -ComparisonType string -Operator like -Value svc -Color White -BackgroundColor Green 11 | } -DataStore JavaScript 12 | } -ShowHTML -FilePath $PSScriptRoot\Example-CVS.html -Online -------------------------------------------------------------------------------- /Examples/Example-Table/Example-TableAdvancedFreeze.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $ProcessesAll = Get-Process 4 | 5 | New-HTML -TitleText 'Title' -Online -FilePath $PSScriptRoot\Example-TableAdvancedFreeze.html -ShowHTML { 6 | New-HTMLSection -HeaderText 'Demo for ScrollY' { 7 | New-HTMLPanel { 8 | New-HTMLTable -DataTable $ProcessesAll -DisablePaging -FixedHeader -FixedFooter 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /Examples/Example-Table/Example-TableTranspose01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Title = 'My title' 4 | 5 | $Object = @( 6 | [PSCustomObject] @{ 7 | Test = 5 8 | Ello = 'Motto' 9 | Hello = 'Totto' 10 | } 11 | [PSCustomObject] @{ 12 | Test = 5 13 | Ello = 'Motto' 14 | Hello = 'Totto' 15 | } 16 | [PSCustomObject] @{ 17 | Test = 5 18 | Ello = 'Motto' 19 | Hello = 'Totto' 20 | } 21 | [PSCustomObject] @{ 22 | Test = 5 23 | Ello = 'Motto' 24 | Hello = 'Totto' 25 | } 26 | [PSCustomObject] @{ 27 | Test = 5 28 | Ello = 'Motto' 29 | Hello = 'Totto' 30 | } 31 | [PSCustomObject] @{ 32 | Test = 3 33 | Ello = 'Lotto' 34 | Hello = 'Totto' 35 | } 36 | ) 37 | 38 | 39 | $Object | Out-HtmlView -Transpose -TransposeName 'Test' -Filtering 40 | 41 | New-HTML -TitleText $Title -Online -FilePath $PSScriptRoot\Example-TableTranspose01.html { 42 | New-HTMLTable -DataTable $Object -Filtering -Transpose -TransposeName 'Test' 43 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_02_DataStoreJava.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $DataTable3 = @( 4 | [PSCustomObject] @{ 5 | 'Test1' = 'Test' + [System.Environment]::NewLine + 'test3' 6 | 'Test2' = 'Test' + [System.Environment]::NewLine + 'test3' + "`n test" 7 | 'Test3' = 'Test' + [System.Environment]::NewLine + 'test3' + "`r`n test" 8 | 'Test4' = 'Test' + [System.Environment]::NewLine + 'test3' + "`r test" 9 | 'Test5' = 'Test' + "`r`n" + 'test3' + "test" 10 | "Test6 $([System.Environment]::NewLine) ok" = @" 11 | Test1 12 | Test2 13 | Test3 14 | 15 | Test4 16 | "@ 17 | 'Test7' = 'Test' + "`n`n" + "Oops" 18 | 'Test9' = 'Test' + "
" + "Oops" 19 | 'Test8"Oopps"' = 'MyTest "Ofcourse"' 20 | "Test9'Ooops'" = "MyTest 'Ofcourse'" 21 | 22 | } 23 | ) 24 | $DataTable3 | Out-HtmlView -FilePath C:\Support\GitHub\PSWriteHTML\Examples\Example-Table\Example7_02_DataStoreJava.html -Online -DataStore JavaScript -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_03.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $DataTable1 = @( 4 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name3' } 5 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name3' } 6 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name3' } 7 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name3' } 8 | ) 9 | 10 | New-HTML { 11 | New-HTMLTable -DataTable $DataTable1 -Title 'Test1' # Title will be used for filename when using export 12 | } -ShowHTML -FilePath $PSScriptRoot\Example7_03.html -Online -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_08.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $DataTable1 = @( 4 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name3' } 5 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name4' } 6 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name5' } 7 | [PSCustomObject] @{ Test = 'Name'; Test2 = 'Name2'; Test3 = 'Name6' } 8 | ) 9 | 10 | $DataTable1 | Out-HtmlView -Online -FilePath $PSScriptRoot\Example7_08_OutHTMlView.html -InvokeHTMLTags -SearchPane -Title 'Test' -DataStore JavaScript { 11 | New-TableColumnOption -ColumnIndex 1,2 -Hidden $true 12 | New-TableColumnOption -ColumnIndex 3 -Searchable $false 13 | } -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_09.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Test = Get-Process | Select-Object -First 30 4 | # New-HTML option 5 | New-HTML { 6 | New-HTMLTable -DataTable $Test -Filtering -FilteringLocation bottom -DefaultSortIndex 0 -DefaultSortOrder Ascending -ScrollX -ScrollY -ScrollSizeY 300 7 | } -ShowHTML -Online -FilePath $PSScriptRoot\Testing.html 8 | 9 | # Out-HTMLView 10 | Out-HtmlView -DataTable $Test -Filtering -FilteringLocation bottom -DefaultSortIndex 0 -DefaultSortOrder Ascending -ScrollX -ScrollY -ScrollSizeY 300 -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_11-Responsive.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Test = Get-Process | Select-Object -First 2 4 | $AllProperties = $Test | Get-Member -MemberType Properties | Where-Object { 5 | $_.Name -notin 'Name', 'Id' 6 | } | Select-Object -ExpandProperty Name 7 | # New-HTML option 8 | New-HTML { 9 | New-HTMLTable -DataTable $Test { 10 | TableHeader -Names 'Name', 'ID' -Title 'Process Information' -BackGroundColor Green 11 | #TableHeader -Names 'PagedMemorySize', 'PrivateMemorySize', 'VirtualMemorySize' -Title 'Memory' -Color White -BackGroundColor Gainsboro 12 | 13 | New-HTMLTableHeader -Names 'ID', 'Name' -ResponsiveOperations all 14 | New-HTMLTableHeader -ResponsiveOperations none -Names $AllProperties 15 | } -ResponsivePriorityOrder 'Name', 'Id' -PagingLength 1 16 | } -ShowHTML -Online -FilePath $PSScriptRoot\Example7_11-Responsive.html -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_12.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML { 4 | $Table2 = New-HTMLTable -DataTable (Get-Process | Select-Object -First 1) 5 | $DataTable3 = @( 6 | [PSCustomObject] @{ 7 | SomeObject = 'Test2' 8 | New = 'Test' 9 | Table = [string] $Table2 10 | } 11 | ) 12 | New-HTMLTable -DataTable $DataTable3 -InvokeHTMLTags 13 | } -ShowHTML -Online -FilePath $PSScriptRoot\Example7_12.html -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_13.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $DataTable1 = @( 4 | [PSCustomObject] @{ 5 | Test = 'Name'; 6 | Test2 = 'Name2'; 7 | Test3 = 'Name3' 8 | Test41 = 'Name3' 9 | Test42 = 'Name3' 10 | Test43 = 'Name3' 11 | Test44 = 'Name3' 12 | Test45 = 'Name3' 13 | Test46 = 'Name3' 14 | Test48 = 'Name3' 15 | Test47 = 'Name3' 16 | Test49 = 'Name3' 17 | Test455 = 'Name3' 18 | Test412 = 'Name3' 19 | Test413 = 'Name3' 20 | Test414 = 'Name3' 21 | } 22 | ) 23 | New-HTML { 24 | New-HTMLTable -Title 'Test' -DataStore JavaScript { 25 | #New-TableColumnOption -ColumnIndex 1 -Width 900 26 | } -ScrollX -DataTable $DataTable1 27 | } -ShowHTML -FilePath $PSScriptRoot\Example7_08_OutHTMlView.html -Online -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_AlphabetSearch.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | #$Process = Get-Process | Select-Object -First 30 4 | $ProcessSmaller = Get-Process | Select-Object -First 4 -Property Name, Id, PriorityClass, Responding 5 | 6 | New-HTML { 7 | New-HTMLSection -Invisible { 8 | New-HTMLSection -HeaderText 'Standard Table with Search Highlight' { 9 | New-HTMLTable -DataTable $ProcessSmaller -SearchHighlight 10 | } 11 | New-HTMLSection -HeaderText 'Standard Table with Alphabet Search' { 12 | New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch 13 | } 14 | } 15 | New-HTMLSection -Invisible { 16 | New-HTMLSection -HeaderText 'Standard Table with Search Builder' { 17 | New-HTMLTable -DataTable $ProcessSmaller -SearchBuilder 18 | } 19 | New-HTMLSection -HeaderText 'Standard Table with Alphabet Search - Advanced' { 20 | New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch { 21 | New-TableAlphabetSearch -ColumnName 'Name' -AddNumbers -CaseSensitive 22 | } 23 | } 24 | } 25 | } -ShowHTML -Online -FilePath $PSScriptRoot\Example7_AlphabetSearch.html -Format -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_AlphabetSearch2.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | #$Process = Get-Process | Select-Object -First 30 4 | $ProcessSmaller = Get-ADUser -Filter * | Select-Object -First 3 # -Property Name, Id, PriorityClass, Responding 5 | 6 | New-HTML { 7 | New-HTMLSection -HeaderText 'Standard Table with Alphabet Search' { 8 | New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch { 9 | 10 | } 11 | New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch { 12 | New-TableAlphabetSearch -ColumnName Name -AddNumbers 13 | } 14 | } 15 | New-HTMLSection -HeaderText 'Standard Table with Alphabet Search' { 16 | New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch { 17 | New-TableAlphabetSearch -ColumnName SID -CaseSensitive 18 | } 19 | } 20 | New-HTMLSection -HeaderText 'Standard Table with Alphabet Search' { 21 | New-HTMLTable -DataTable $ProcessSmaller -AlphabetSearch { 22 | 23 | } 24 | } 25 | New-HTMLSection -HeaderText 'Standard Table without ALphabet' { 26 | New-HTMLTable -DataTable $ProcessSmaller { 27 | 28 | } 29 | } 30 | } -ShowHTML -FilePath $PSScriptRoot\Example7_AlphabetSearch2.html -Format -Online -------------------------------------------------------------------------------- /Examples/Example-Table/Example7_MeasureTime.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Processes = Get-Process | Select-Object -First 50 4 | $Title = 'My title' 5 | 6 | Measure-Command { 7 | New-HTML -TitleText $Title -Online -FilePath $PSScriptRoot\Example7_MeasureTime01.html { 8 | New-HTMLSection -HeaderText '1 section' { 9 | New-HTMLTable -DataTable $Processes -HideFooter { 10 | New-TableRowGrouping -Name 'PriorityClass' -Color Red -BackgroundColor GreenYellow 11 | } -DisableSearch 12 | } 13 | New-HTMLSection -HeaderText '2 section' { 14 | New-HTMLTable -DataTable $Processes -HideFooter -ImmediatelyShowHiddenDetails -HideShowButton 15 | } 16 | } -ShowHTML 17 | } 18 | 19 | Measure-Command { 20 | New-HTML -TitleText $Title -Online -FilePath $PSScriptRoot\Example7_MeasureTime02.html { 21 | New-HTMLSection -HeaderText '1 section' { 22 | New-HTMLTable -DataTable $Processes -HideFooter { 23 | New-TableRowGrouping -Name 'PriorityClass' -Color Red -BackgroundColor GreenYellow 24 | } -DisableSearch -DataStore JavaScript 25 | } 26 | New-HTMLSection -HeaderText '2 section' { 27 | New-HTMLTable -DataTable $Processes -HideFooter -ImmediatelyShowHiddenDetails -HideShowButton -DataStore JavaScript 28 | } 29 | } -ShowHTML 30 | } 31 | -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID1.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID10.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID10.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID11.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID11.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID12.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID12.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID13.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID13.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID14.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID15.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID15.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID16.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID17.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID17.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID18.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID18.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID2.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID3.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID4.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID5.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID5.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID6.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID6.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID7.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID7.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID8.json -------------------------------------------------------------------------------- /Examples/Example-Table/data/ID9.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example-Table/data/ID9.json -------------------------------------------------------------------------------- /Examples/Example-TableSearchBuilder/Example-TableSearchBuilder.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Table = Get-Process | Select-Object -First 2 -Property Name, Id, PriorityClass, Handle, HandleCount, WorkingSet 4 | 5 | New-HTML -TitleText "Testing Search Pane" -FilePath "$PSScriptRoot\Example-TableSearchBuilder.html" { 6 | # Hide Buttons 7 | New-HTMLSection -HeaderText "SearchBuilder" -Content { 8 | New-HTMLTable -DataTable $Table -Filtering { 9 | 10 | } -Buttons @('copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5', 'pageLength', 'searchPanes') -SearchBuilder 11 | } 12 | 13 | New-HTMLSection -HeaderText "SearchPane" -Content { 14 | New-HTMLTable -DataTable $Table -Filtering { 15 | 16 | } -SearchPane 17 | } 18 | } -ShowHTML -Online #-Format -------------------------------------------------------------------------------- /Examples/Example-TableSearchBuilder/Example-TableSearchBuilder02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Table = Get-Process | Select-Object -First 4 -Property Name, Id, PriorityClass, Handle, HandleCount, WorkingSet 4 | 5 | New-HTML -TitleText "Testing Search Pane" -FilePath "$PSScriptRoot\Example-TableSearchBuilder02.html" { 6 | # Do it via buttons 7 | New-HTMLSection -HeaderText "SearchBuilder" -Content { 8 | New-HTMLTable -DataTable $Table -Filtering { 9 | 10 | } -Buttons @('copyHtml5', 'excelHtml5', 'csvHtml5', 'pdfHtml5', 'pageLength', 'searchPanes', 'searchBuilder') 11 | } 12 | New-HTMLSection -HeaderText "SearchBuilder" -Content { 13 | New-HTMLTable -DataTable $Table -Filtering { 14 | New-TableButtonSearchBuilder -ButtonName 'Advanced Search' -DefaultLogic OR -GreyScale 15 | } 16 | } 17 | 18 | New-HTMLSection -HeaderText "SearchPane" -Content { 19 | New-HTMLTable -DataTable $Table -Filtering { 20 | 21 | } -SearchPane -SearchBuilder 22 | } 23 | } -ShowHTML -Online -Format -------------------------------------------------------------------------------- /Examples/Example-TablesForBlog.ps1/Example-AlphabetSearch.ps1: -------------------------------------------------------------------------------- 1 | $Users = Get-ADUser -Filter * -Properties LastLogonDate, PasswordLastSet 2 | New-HTML { 3 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 10 -AlphabetSearch { 4 | New-TableAlphabetSearch -ColumnName 'Name' -CaseSensitive -AddNumbers 5 | } 6 | } -ShowHTML -FilePath "$PSScriptRoot\Example-AlphabetSearch.html" -Online -------------------------------------------------------------------------------- /Examples/Example-TablesForBlog.ps1/Example-FuzzySearch.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Users = Get-ADUser -Filter * -Properties LastLogonDate, PasswordLastSet | Select-Object -First 6 4 | New-HTML { 5 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 5 { 6 | New-TableAlphabetSearch -ColumnName 'Name' -CaseSensitive -AddNumbers 7 | } -FuzzySearch -FuzzySearchSmartToggle 8 | 9 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 5 { 10 | New-TableAlphabetSearch -ColumnName 'Name' -CaseSensitive -AddNumbers 11 | } 12 | } -ShowHTML -FilePath "$PSScriptRoot\Example-FuzzySearch.html" -Online -------------------------------------------------------------------------------- /Examples/Example-TablesForBlog.ps1/Example-SearchBuilder.ps1: -------------------------------------------------------------------------------- 1 | $Users = Get-ADUser -Filter * -Properties LastLogonDate, PasswordLastSet 2 | New-HTML { 3 | New-HTMLTableOption -DataStore JavaScript -DateTimeFormat 'dd.MM.yyyy HH:mm:ss' -ArrayJoin -ArrayJoinString ',' 4 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 10 -SearchBuilder 5 | } -ShowHTML -FilePath "$PSScriptRoot\Example-Builder.html" -Online -------------------------------------------------------------------------------- /Examples/Example-TablesForBlog.ps1/Example-SearchPane.ps1: -------------------------------------------------------------------------------- 1 | $Users = Get-ADUser -Filter * -Properties LastLogonDate, PasswordLastSet 2 | New-HTML { 3 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 10 -SearchPane 4 | } -ShowHTML -FilePath "$PSScriptRoot\Example-SearchPane01.html" -Online 5 | 6 | 7 | $Users = Get-ADUser -Filter * -Properties LastLogonDate, PasswordLastSet 8 | New-HTML { 9 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 10 -Buttons excelHtml5, searchPanes 10 | } -ShowHTML -FilePath "$PSScriptRoot\Example-SearchPane02.html" -Online -------------------------------------------------------------------------------- /Examples/Example-TablesForBlog.ps1/Example-TableConditions.ps1: -------------------------------------------------------------------------------- 1 | $Users = Get-ADUser -Filter * -Properties LastLogonDate, PasswordLastSet 2 | New-HTML { 3 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 10 { 4 | $DateGreaterLogon = (Get-Date -Year 2019 -Month 1 -Day 1) 5 | $PasswordLastSet = (Get-Date -Year 2020 -Month 1 -Day 1) 6 | New-TableConditionGroup -Logic AND { 7 | New-TableCondition -Name 'LastLogonDate' -ComparisonType date -DateTimeFormat 'DD.MM.YYYY HH:mm:ss' -Operator gt -Value $DateGreaterLogon 8 | New-TableCondition -Name 'PasswordLastSet' -ComparisonType date -DateTimeFormat 'DD.MM.YYYY HH:mm:ss' -Operator gt -Value $PasswordLastSet 9 | } -TextDecoration underline -Color White -BackgroundColor SeaGreen -HighlightHeaders LastLogonDate, ObjectGUID, ObjectClass 10 | } -DateTimeSortingFormat 'DD.MM.YYYY HH:mm:ss', 'M/D/YYYY', 'YYYY-MM-DD' 11 | } -ShowHTML -FilePath "$PSScriptRoot\Example-TableConditions.html" -Online -------------------------------------------------------------------------------- /Examples/Example-TablesForBlog.ps1/Example-TableOptions.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Objects = @( 4 | [PSCustomObject] @{ Name = 'Przemek'; Tags = 'PowerShell', 'IT', 'SomethingElse'; Value = 15; Date = (Get-Date).AddYears(-20) } 5 | [PSCustomObject] @{ Name = 'Adam'; Tags = 'Rain', 'MorseCode'; Value = 30; Date = (Get-Date).AddYears(-20) } 6 | ) 7 | New-HTML { 8 | New-HTMLTableOption -DataStore JavaScript -DateTimeFormat 'yyyy-MM-dd' -ArrayJoin -ArrayJoinString ',' 9 | New-HTMLTable -DataTable $Objects -Title 'Table with Users' -HideFooter -PagingLength 10 -SearchBuilder 10 | } -ShowHTML -FilePath "$PSScriptRoot\Example-TableOptions.html" -Online -------------------------------------------------------------------------------- /Examples/Example-TablesForBlog.ps1/Test.ps1: -------------------------------------------------------------------------------- 1 | $Users = Get-ADUser -Filter * -Properties LastLogonDate, PasswordLastSet | Select-Object -First 3 2 | New-HTML { 3 | New-HTMLTable -DataTable $Users -Title 'Table with Users' -HideFooter -PagingLength 10 { 4 | $DateGreaterLogon = (Get-Date -Year 2019 -Month 1 -Day 1) 5 | $PasswordLastSet = (Get-Date -Year 2020 -Month 1 -Day 1) 6 | New-TableConditionGroup -Logic AND { 7 | New-TableCondition -Name 'LastLogonDate' -ComparisonType date -DateTimeFormat 'DD.MM.YYYY HH:mm:ss' -Operator gt -Value $DateGreaterLogon 8 | New-TableCondition -Name 'PasswordLastSet' -ComparisonType date -DateTimeFormat 'DD.MM.YYYY HH:mm:ss' -Operator gt -Value $PasswordLastSet 9 | } -TextDecoration underline -Color White -BackgroundColor SeaGreen -HighlightHeaders LastLogonDate, ObjectGUID, ObjectClass 10 | } -DateTimeSortingFormat 'DD.MM.YYYY HH:mm:ss', 'M/D/YYYY', 'YYYY-MM-DD' 11 | } -ShowHTML -FilePath "$PSScriptRoot\Example-TableConditions.html" -Online -------------------------------------------------------------------------------- /Examples/Example-Tabs/Example-Tabs10.ps1: -------------------------------------------------------------------------------- 1 | Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force 2 | 3 | $data = Get-Process | Select-Object -First 3 4 | New-HTML -Online -FilePath $PSScriptRoot\Example-Tabs10.html -ShowHTML { 5 | New-HTMLTabStyle -BorderRadius 5px -TextTransform capitalize -BackgroundColorActive SlateGrey -BackgroundColor AirForceBlue 6 | New-HTMLTab -Name 'Tab1' { 7 | New-HTMLTab -Name 'Tab 3' { 8 | 9 | } 10 | New-HTMLTab -Name 'Tab 4' { 11 | 12 | } 13 | } 14 | New-HTMLTab -Name 'Tab2' { 15 | New-HTMLSection -HeaderText 'Test Table' { 16 | New-HTMLTable -DataTable $data -DisablePaging -FixedFooter 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Examples/Example-TreeView/Example-TreeView01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\Example-TreeView01.html" { 4 | New-HTMLTree -Checkbox none { 5 | New-HTMLTreeChildCounter -Deep -HideZero -HideExpanded 6 | New-HTMLTreeNode -Title 'Power comes on' { 7 | New-HTMLTreeNode -Title 'Live screen' { 8 | New-HTMLTreeNode -Title 'New build' 9 | New-HTMLTreeNode -Title 'No new build' { 10 | New-HTMLTreeNode -Title 'Need two tries to boot' { 11 | New-HTMLTreeNode -Title 'Premature power_good signal. Try different power supply.' -Icon 'https://cdn-icons-png.flaticon.com/512/6897/6897039.png' 12 | } 13 | New-HTMLTreeNode -Title 'Does not need two tries to boot' 14 | } 15 | } 16 | New-HTMLTreeNode -Title "No live screen" { 17 | New-HTMLTreeNode -Title "Proceed to video failure chart" -Icon 'https://cdn-icons-png.flaticon.com/512/1294/1294758.png' 18 | } 19 | } 20 | } -EnableChildCounter -AutoScroll -MinimumExpandLevel 1 21 | } -Online -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-WinBox/Example-WinBox01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Data = Get-Process | Select-Object -First 3 4 | 5 | New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\Example-WinBox01.html" { 6 | New-HTMLWinBox -Title 'This is a test Window 1' -BackgroundColor Red { 7 | New-HTMLText -Text 'This is a text within modal dialog' 8 | New-HTMLTable -DataTable $Data 9 | } -Width 50% -Height 50% -X center -Y center 10 | New-HTMLWinBox -Title 'This is a test Window 2' -BackgroundColor Red { 11 | New-HTMLText -Text 'This is a text within modal dialog' 12 | New-HTMLTable -DataTable $Data 13 | } -Width 50% -Height 50% -X center 14 | } -Online -ShowHTML -------------------------------------------------------------------------------- /Examples/Example-WinBox/Example-WinBox02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'This is a test' -FilePath "$PSScriptRoot\Example-WinBox02.html" { 4 | New-HTMLWinBox -Title 'This is a test Window' -Url 'https://google.pl' 5 | } -Online -ShowHTML -------------------------------------------------------------------------------- /Examples/Example01-TableColumnSort/Example01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = Get-Process | Select-Object -First 3 4 | $ProcessSmaller = Get-Process | Select-Object -First 5 5 | 6 | New-HTML -Name 'Dashimo Test' -FilePath $PSScriptRoot\Example01.html -AutoRefresh 15 -Show { 7 | New-HTMLTable -DataTable $ProcessSmaller -DefaultSortIndex 4 -ScrollCollapse -HideFooter -Buttons @() 8 | 9 | # New-HTMLTable -DataTable $Process -DefaultSortColumn 'WorkingSet' -ScrollCollapse -HideFooter -Buttons @() 10 | 11 | # New-HTMLTable -DataTable $Process -DefaultSortColumn 'WorkingSet' -ScrollCollapse -DefaultSortOrder Descending -HideFooter -Buttons @() 12 | 13 | New-HTMLTable -DataTable $ProcessSmaller -DefaultSortIndex 4 -ScrollCollapse -HideFooter -Buttons @() -hideHeader 14 | 15 | # New-HTMLTable -DataTable $Process -DefaultSortColumn 'WorkingSet' -ScrollCollapse -HideFooter -Buttons @() -hideHeader 16 | 17 | # New-HTMLTable -DataTable $Process -DefaultSortColumn 'WorkingSet' -ScrollCollapse -DefaultSortOrder Descending -HideFooter -Buttons @() -hideHeader 18 | } -------------------------------------------------------------------------------- /Examples/Example02-TableAndTabsAndLogo/Example1.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Allusers = Get-ADUser -Filter * | Select-Object -First 10 4 | 5 | New-HTML -TitleText $ReportTitle -Online -FilePath "$PSScriptRoot\Example1.html" { 6 | New-HTMLSection -Invisible { 7 | New-HTMLSection -HeaderText "Groups 1" { 8 | New-HTMLPanel { 9 | New-HTMLTable -DataTable $Allusers -Buttons searchPanes 10 | } 11 | } 12 | New-HTMLSection -HeaderText "Groups 2" { 13 | 14 | } 15 | } 16 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example04-TableAndTabs/Example4-01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $ReportTitle = 'Test' 4 | #$EnterpriseAdminTable = Get-ADuser -Filter * | Select-Object Name, Surname, Enabled, DisplayName 5 | $EnterpriseAdminTable = Get-Process | Select-Object -First 5 6 | 7 | New-HTML -TitleText $ReportTitle -Online -FilePath "$PSScriptRoot\Example4-01.html" { 8 | New-HTMLTab -TabName 'Dashboard' { 9 | New-HTMLSection -HeaderText "Groups" { 10 | New-HTMLSection -HeaderText 'Domain Administrators' -CanCollapse { 11 | New-HTMLTable -DataTable $EnterpriseAdminTable { 12 | New-TableHeader -Color Red -Title 'This shows standard table with header' 13 | } 14 | } 15 | New-HTMLSection -HeaderText 'Domain Administrators' -CanCollapse { 16 | New-HTMLTable -DataTable $EnterpriseAdminTable 17 | } 18 | } 19 | New-HTMLSection -HeaderText 'Test 2' { 20 | New-HTMLTable -DataTable $EnterpriseAdminTable 21 | } 22 | } 23 | New-HTMLTab -TabName 'Something' { 24 | New-HTMLTable -DataTable $EnterpriseAdminTable 25 | } 26 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example08-TableAdvanced/Example08_02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | 4 | $Properties = @( 5 | 'Name' 6 | 'Id' 7 | 'PriorityClass' 8 | 'FileVersion' 9 | 'HandleCount' 10 | 'WorkingSet' 11 | 'PagedMemorySize' 12 | 'PrivateMemorySize' 13 | 'VirtualMemorySize' 14 | 'TotalProcessorTime' 15 | <# 16 | 'SI' 17 | 'Handles' 18 | 'VM' 19 | 'WS' 20 | 'PM' 21 | 'NPM' 22 | #> 23 | ) 24 | $ProcessesAll = Get-Process | Select-Object -First 1 25 | $Processes = $ProcessesAll | Select-Object -First 1 -Property $Properties 26 | 27 | New-HTML -TitleText 'Title' -FilePath $PSScriptRoot\Example08_02.html -ShowHTML { 28 | New-HTMLSection -HeaderText '2 section' { 29 | New-HTMLPanel { 30 | New-HTMLTable -DataTable $Processes -HideFooter { 31 | New-HTMLTableHeader -Title 'Process Information' 32 | } 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Examples/Example14-Other/Example14.ps1: -------------------------------------------------------------------------------- 1 | Import-Module PSWriteHTML.psd1 -Force 2 | $Processes = Get-Process | Select-Object -First 2 3 | $Processes1 = Get-Process | Select-Object -First 10 4 | $Title = 'My title' 5 | 6 | New-HTML -TitleText $Title -Online -FilePath $PSScriptRoot\Example14.html -AutoRefresh 30 { 7 | 8 | New-HTMLSection -HeaderText '0 section' -CanCollapse { 9 | New-HTMLPanel { 10 | New-HTMLTable -DataTable $Processes -HideFooter 11 | } 12 | New-HTMLPanel { 13 | New-HTMLTable -DataTable $Processes1 -HideFooter 14 | } 15 | New-HTMLPanel { 16 | 17 | } 18 | New-HTMLPanel { 19 | 20 | } 21 | New-HTMLPanel { 22 | New-HTMLTable -DataTable $Processes1 -HideFooter 23 | } 24 | } 25 | New-HTMLSection -HeaderText '1 section' { 26 | New-HTMLTable -DataTable $Processes -HideFooter 27 | } 28 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example18-Out-HTMLView.ps1/Example-Out-HTMLView1.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | Get-Process | Select-Object -First 5 | Out-HtmlView -PriorityProperties PM, NPM, Company -DefaultSortColumn Name, NPM -Filtering -FilteringLocation Both -FilePath $PSScriptRoot\Test.html 4 | 5 | Get-Process | Select-Object -First 5 | Out-HtmlView -DefaultSortIndex 5, 2 -HideFooter 6 | 7 | Get-Process | Select-Object -First 5 | Out-HtmlView -DefaultSortIndex 5, 2 -HideFooter -ScrollX -------------------------------------------------------------------------------- /Examples/Example20-TableConditionsWithSomeText/Example-TableConditions02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Process = @( 4 | [PSCustomObject] @{ 5 | Name = 'Test' 6 | Value = 'Something' 7 | } 8 | [PSCustomObject] @{ 9 | Name = 'Test' 10 | Value = 'Something' 11 | } 12 | [PSCustomObject] @{ 13 | Name = 'Test' 14 | Value = 'Something' 15 | } 16 | [PSCustomObject] @{ 17 | Name = 'Test' 18 | Value = 'Something' 19 | } 20 | ) 21 | 22 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example-TableConditions02.html { 23 | New-HTMLTable -DataTable $Process -PagingOptions @(50, 100, 150, 200) { 24 | New-HTMLTableCondition -Name 'Name' -Type string -Operator gt -Value 'Test' -BackgroundColor Yellow 25 | } 26 | } -ShowHTML -Format 27 | -------------------------------------------------------------------------------- /Examples/Example21-Experimental/Example21-01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Test = Get-Process | Select-Object -First 5 4 | 5 | #$Test | Out-HtmlView 6 | 7 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example21-01.html -Show { 8 | New-HTMLTabStyle -SlimTabs -Transition -LinearGradient -SelectorColor Gold -SelectorColorTarget AliceBlue -BorderRadius 0px 9 | New-HTMLTab -IconBrands aws -Name 'Test 1' -IconColor DarkGoldenrod { 10 | New-HTMLTable -DataTable $Test -PagingOptions @(50, 100, 150, 200) { 11 | New-HTMLTableButtonPDF -PageSize TABLOID -Orientation portrait 12 | New-HTMLTableButtonExcel -Title 'Custom' 13 | } -Title 'Test' 14 | } 15 | New-HTMLTab -Name 'Test 2' -IconSolid address-card { 16 | 17 | } 18 | New-HTMLTab -Name 'Test 3' -IconSolid camera { 19 | 20 | } 21 | New-HTMLTab -Name 'Test 4' -IconBrands microsoft { 22 | 23 | } 24 | New-HTMLTab -Name 'Test 5' -IconRegular calendar { 25 | 26 | } 27 | New-HTMLTab -Name 'Test 6' -IconSolid yin-yang { 28 | 29 | } 30 | New-HTMLTab { 31 | 32 | } 33 | } -------------------------------------------------------------------------------- /Examples/Example23-Charts/Example-ChartsBarColor.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example-ChartsBarColor.html { 4 | New-HTMLPanel { 5 | New-HTMLChart { 6 | New-ChartToolbar -Download 7 | New-ChartLegend -Name 'Time', 'Money', 'Taxes' -Color '#024DA1', '#AFD135', Green 8 | New-ChartBar -Name 'Test' -Value 1, 2, 3 9 | New-ChartBar -Name 'Test1' -Value 2, 5, 7 10 | New-ChartBar -Name 'Test2' -Value 3, 1, 2 11 | New-ChartDesign -GradientInverseColors:$false 12 | } -Title 'Testing Title' -TitleAlignment center -Gradient 13 | } 14 | } -Show #-Format -------------------------------------------------------------------------------- /Examples/Example23-Charts/Example-ChartsBarDonuts.ps1: -------------------------------------------------------------------------------- 1 |  2 | New-HTML { 3 | 4 | New-HTMLSection -HeaderText 'Donut Charts - Defaults' -CanCollapse { 5 | New-HTMLPanel { 6 | New-HTMLChart -Gradient { 7 | New-ChartDonut -Name 'Test' -Value 20 8 | New-ChartDonut -Name 'Test1' -Value 30 9 | New-ChartDonut -Name 'Test2' -Value 40 10 | New-ChartDonut -Name 'Test1' -Value 30 11 | New-ChartDonut -Name 'Test2' -Value 40 12 | } 13 | } 14 | New-HTMLPanel { 15 | New-HTMLChart -Gradient { 16 | New-ChartDonut -Name 'Test' -Value 20 17 | New-ChartDonut -Name 'Test1' -Value 30 18 | New-ChartDonut -Name 'Test2' -Value 40 19 | New-ChartDonut -Name 'Test1' -Value 30 20 | New-ChartDonut -Name 'Test2' -Value 40 21 | } 22 | } 23 | New-HTMLPanel { 24 | New-HTMLChart -Gradient { 25 | New-ChartDonut -Name 'Test' -Value 20 26 | New-ChartDonut -Name 'Test1' -Value 30 27 | New-ChartDonut -Name 'Test2' -Value 40 28 | New-ChartDonut -Name 'Test1' -Value 30 29 | New-ChartDonut -Name 'Test2' -Value 40 30 | } 31 | } 32 | } 33 | } -ShowHTML -FilePath $PSScriptRoot\Example-ChartsBarDonuts.html -Online -------------------------------------------------------------------------------- /Examples/Example24-TableTricks/Example24_01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Properties = @( 4 | 'Name' 5 | 'Id' 6 | 'PriorityClass' 7 | 'FileVersion' 8 | 'HandleCount' 9 | 'WorkingSet' 10 | 'PagedMemorySize' 11 | 'PrivateMemorySize' 12 | 'VirtualMemorySize' 13 | 'TotalProcessorTime' 14 | ) 15 | $ProcessesAll = Get-Process | Select-Object -First 10 16 | $Processes = $ProcessesAll | Select-Object -First 10 -Property $Properties 17 | 18 | New-HTML -TitleText 'Title' -Online:$false -FilePath $PSScriptRoot\Example24_01.html -ShowHTML { 19 | New-HTMLSection -HeaderText '0 section' { 20 | New-HTMLPanel { 21 | New-HTMLTable -DataTable $Processes -HideFooter -ScrollCollapse { 22 | New-HTMLTableContent -Names 'Name' -RowIndex 5 -BackGroundColor Blue 23 | New-HTMLTableContent -Names 'Name' -RowIndex 1 -BackGroundColor Yellow 24 | New-HTMLTableContent -Names 'HandleCount' -RowIndex 1 -BackGroundColor Yellow 25 | 26 | New-HTMLTableContent -ColumnIndex 7 -RowIndex 4 -BackGroundColor Gold -Color Blue -FontStyle italic -Text "I HAVE REPLACED THIS" -FontSize 15 -Alignment center 27 | New-HTMLTableContent -ColumnName 'Name' -RowIndex 4 -BackGroundColor Gold -Color Blue -FontStyle italic -Text "I HAVE REPLACED THIS" -FontSize 15 -Alignment center 28 | } #-Simplify 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Examples/Example27-SectionsPanelsContainers/Example-SectionWithCustomHeader.ps1: -------------------------------------------------------------------------------- 1 |  2 | Import-Module .\PSWriteHTML.psd1 -Force 3 | 4 | $ProcessSmaller = Get-Process | Select-Object -First 1 5 | 6 | New-HTML -Name 'Test' -FilePath "$PSScriptRoot\Example27-01.html" -Show { 7 | $CustomHeader = New-HTMLText -TextDecoration line-through -FontSize 20px { 8 | 'Test' 9 | } 10 | New-HTMLSection -HeaderText $CustomHeader { 11 | New-HTMLSection -HeaderText 'Test 1' -CanCollapse -Collapsed { 12 | New-HTMLTable -DataTable $ProcessSmaller 13 | } 14 | New-HTMLSection -HeaderText 'Test 2' -CanCollapse -Collapsed { 15 | New-HTMLTable -DataTable $ProcessSmaller 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Examples/Example27-SectionsPanelsContainers/Example27-03.ps1: -------------------------------------------------------------------------------- 1 | Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force 2 | 3 | $Test1 = Get-Process | Select-Object -First 2 -Property Name, Id, PriorityClass 4 | 5 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example27-03.html -Show { 6 | $SectionStyle1 = New-HTMLSectionStyle -RemoveShadow -BorderRadius 0px -Direction row -WritingMode vertical-lr -Rotate 180deg -RequestConfiguration 7 | #$SectionStyle2 = New-HTMLSectionStyle -RemoveShadow -BorderRadius 0px -Direction row -WritingMode vertical-lr -TextOrientation upright -RequestConfiguration -AlignContent flex-end -Align flex-end 8 | #$SectionStyle3 = New-HTMLSectionStyle -RemoveShadow -BorderRadius 0px -Direction row -WritingMode vertical-lr -RequestConfiguration -BackgroundColorContent Yellow 9 | #$SectionStyle4 = New-HTMLSectionStyle -DirectionContent row -WrapContent wrap -RequestConfiguration -BorderRadius 0px 10 | New-HTMLSection -HeaderText 'Default Section Style' { 11 | New-HTMLTable -DataTable $Test1 -HideFooter { 12 | New-HTMLTableHeader -Names 'ID', 'HandleCount' 13 | } 14 | } -StyleSheetsConfiguration $SectionStyle1 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Examples/Example27-SectionsPanelsContainers/Example27-07.ps1: -------------------------------------------------------------------------------- 1 | Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force 2 | 3 | $Test1 = Get-Process | Select-Object -First 1 -Property Name, Id, PriorityClass 4 | 5 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example27-07.html -Show { 6 | New-HTMLHeader { 7 | New-HTMLSection -Invisible { 8 | New-HTMLSection { 9 | New-HTMLAnchor -Href '#LastSection' -Text 'Link to last section' 10 | } -Invisible 11 | New-HTMLSection { 12 | New-HTMLAnchor -Href '#LastPanel' -Text 'Same link but to the right' 13 | } -Invisible -JustifyContent flex-end 14 | } 15 | } 16 | # New-HTMLMain is not nessecary but I like to use it when Header/Footer are present to distinguish how things are placed 17 | New-HTMLMain { 18 | New-HTMLTab -Name 'Tab 1' { 19 | New-HTMLSectionStyle -RemoveShadow -BorderRadius 0px 20 | New-HTMLSection -HeaderText 'Default Section Style' { 21 | New-HTMLTable -DataTable $Test1 -HideFooter 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Examples/Example27-SectionsPanelsContainers/Example27-10.ps1: -------------------------------------------------------------------------------- 1 | Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force 2 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example27-10.html -Show { 3 | New-HTMLSection -HeaderText 'Default Section Style' { 4 | New-HTMLText -Color Red -Text 'test1' -Alignment center 5 | } 6 | New-HTMLSection { 7 | New-HTMLText -Color Red -Text 'test2' -Alignment center 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Examples/Example27-SectionsPanelsContainers/Example27-15.ps1: -------------------------------------------------------------------------------- 1 | 2 | 3 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example27-15.html -Show { 4 | 5 | New-HTMLSection -HeaderText 'Test 1' { 6 | New-HTMLContainer { 7 | New-HTMLSection -HeaderText 'Test2' { 8 | 9 | } 10 | New-HTMLSection -HeaderText 'Test2' { 11 | 12 | } 13 | } 14 | New-HTMLContainer { 15 | 16 | } 17 | New-HTMLPanel { 18 | 19 | } 20 | } 21 | New-HTMLSection -HeaderText 'Test 2' { 22 | 23 | } 24 | New-HTMLSection -HeaderText 'Test 3' { 25 | 26 | } 27 | New-HTMLSection -HeaderText 'Test 4' { 28 | New-HTMLContainer { 29 | New-HTMLSection -HeaderText 'Test2' { 30 | 31 | } 32 | New-HTMLSection -HeaderText 'Test2' { 33 | 34 | } 35 | } 36 | New-HTMLContainer { 37 | 38 | } 39 | New-HTMLPanel { 40 | 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /Examples/Example29-HierarchicalTree/Example29-HierarchicalTree01.ps1: -------------------------------------------------------------------------------- 1 | #Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $ProcessSmaller = Get-Process | Select-Object -First 1 4 | 5 | New-HTML -Name 'Test' -FilePath "$PSScriptRoot\Example29-HierarchicalTree01.html" -Show { 6 | New-HTMLSection { 7 | New-HTMLSection -HeaderText 'Test 1' { 8 | New-HTMLTable -DataTable $ProcessSmaller 9 | } 10 | New-HTMLSection -HeaderText 'Test 2' { 11 | New-HTMLHierarchicalTree { 12 | New-HierarchicalTreeNode -Label 'Test' -Description 'Long test' 13 | New-HierarchicalTreeNode -Label 'Test 2nd' -To 'Test' -Description 'You need1' 14 | New-HierarchicalTreeNode -Label 'Test 3rd' -To 'Test' -Description 'You ooo' 15 | New-HierarchicalTreeNode -Label 'Test 4th' -To 'Test 2nd' -Description 'You ooo' 16 | } 17 | } 18 | } 19 | } -Online -------------------------------------------------------------------------------- /Examples/Example30-LinkedTable/Example30-LinkedProcesses.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Processes = Get-Process | Select-Object -First 3 -Property Name, ProcessName, Id, FileVersion, WorkingSet 4 | $TableID = 'RandomID' 5 | 6 | New-HTML -TitleText 'My Title' -Online -FilePath $PSScriptRoot\Example30-LinkedProcesses.html -ShowHTML { 7 | New-HTMLSection -Invisible { 8 | New-HTMLPanel { 9 | New-HTMLTable -DataTable $Processes -DataTableID $TableID 10 | } 11 | New-HTMLPanel { 12 | New-HTMLDiagram { 13 | New-DiagramEvent -ID $TableID -ColumnID 2 14 | New-DiagramNode -Label 'Processes' -IconBrands delicious 15 | foreach ($_ in $Processes) { 16 | New-DiagramNode -Label $_.ProcessName -Id $_.Id -To 'Processes' 17 | } 18 | } 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /Examples/Example30-LinkedTable/Example30-LinkedTableToTable01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Processes = Get-Process | Select-Object -First 3 -Property Name, ProcessName, Id, FileVersion, WorkingSet 4 | 5 | New-HTML -TitleText 'My Title' -Online -FilePath $PSScriptRoot\Example30-LinkedTableToTable01.html -ShowHTML { 6 | New-HTMLSection -Invisible { 7 | New-HTMLPanel { 8 | New-HTMLTable -DataTable $Processes -DataTableID 'RandomID1' 9 | } 10 | New-HTMLPanel { 11 | New-HTMLTable -DataTable $Processes -DataTableID 'RandomID2' 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Examples/Example30-LinkedTable/Example30-LinkedTableToTable02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | $Processes = Get-Process | Select-Object -First 3 -Property Name, ProcessName, Id, FileVersion, WorkingSet 4 | 5 | New-HTML -TitleText 'My Title' -Online -FilePath $PSScriptRoot\Example30-LinkedTableToTable02.html -ShowHTML { 6 | New-HTMLTableOption -DataStore Javascript 7 | New-HTMLSection -Invisible { 8 | New-HTMLPanel { 9 | New-HTMLTable -DataTable $Processes -DataTableID 'RandomID1' { 10 | New-TableEvent -ID 'RandomID2' -SourceColumnID 0 -TargetColumnId 0 11 | New-TableEvent -ID 'RandomID3' -SourceColumnID 0 -TargetColumnId 0 12 | } 13 | } 14 | New-HTMLPanel { 15 | New-HTMLTable -DataTable $Processes -DataTableID 'RandomID2' 16 | } 17 | } 18 | New-HTMLPanel { 19 | New-HTMLTable -DataTable $Processes -DataTableID 'RandomID3' 20 | } 21 | } -------------------------------------------------------------------------------- /Examples/Example35-FavIcon/Example35_01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module -Name "$PSScriptRoot\..\..\PSWriteHTML.psd1" -Force 2 | 3 | New-HTML -TitleText "Example35-FavIcon-FromFile" -FavIcon "$PSScriptRoot\favicon.png" -FilePath "$PSScriptRoot\Example35_01.html" { 4 | New-HTMLSection -HeaderText "Testing favicon" -HeaderTextAlignment center -Content { 5 | New-HTMLTable -DataTable $(Get-Process | Select-Object -First 5) 6 | } 7 | } -Online -ShowHTML -------------------------------------------------------------------------------- /Examples/Example35-FavIcon/Example35_02.ps1: -------------------------------------------------------------------------------- 1 | Import-Module -Name "$PSScriptRoot\..\..\PSWriteHTML.psd1" -Force 2 | 3 | New-HTML -TitleText "Example35-FavIcon-FromLink" -FavIcon "https://image.flaticon.com/icons/png/512/2433/2433484.png" -FilePath "$PSScriptRoot\Example35_02.html" { 4 | New-HTMLSection -HeaderText "Computer Process" -HeaderTextAlignment center -Content { 5 | New-HTMLTable -DataTable $(Get-Process | Select-Object -First 10) 6 | } 7 | } -ShowHTML -------------------------------------------------------------------------------- /Examples/Example35-FavIcon/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Examples/Example35-FavIcon/favicon.png -------------------------------------------------------------------------------- /Examples/Example37-LongTextTable/Example37.ps1: -------------------------------------------------------------------------------- 1 | Import-Module -Name "$PSScriptRoot\..\..\PSWriteHTML.psd1" -Force 2 | 3 | New-HTML -TitleText "Example37 - Word Breaking" -FilePath "$PSScriptRoot\Example37.html" { 4 | New-HTMLSection -HeaderText "Word Break for whole table" -HeaderTextAlignment center -Content { 5 | New-HTMLTable -DataTable $(Get-Process | Select-Object -First 5) -WordBreak 'break-word' 6 | } 7 | New-HTMLSection -HeaderText "Word Break per column" -HeaderTextAlignment center -Content { 8 | New-HTMLTable -DataTable $(Get-Process | Select-Object -First 5) { 9 | New-TableContent -WordBreak break-all -ColumnName 'Path' 10 | } 11 | } 12 | New-HTMLSection -HeaderText "No word break" -HeaderTextAlignment center -Content { 13 | New-HTMLTable -DataTable $(Get-Process | Select-Object -First 5) 14 | } 15 | } -Online -ShowHTML 16 | -------------------------------------------------------------------------------- /Examples/Example38-Emails/Example38-Emails01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force 2 | 3 | $OutputHTML = Email { 4 | EmailBody -FontFamily 'Calibri' -Size 15 { 5 | EmailTextBox { 6 | "Hello $UserNotify," 7 | "" 8 | "Your password is due to expire in $PasswordExpiryDays days." 9 | "" 10 | 'To change your password: ' 11 | '- press CTRL+ALT+DEL -> Change a password...' 12 | '' 13 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 14 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 15 | '' 16 | 'Alternatively you can always call Help Desk at +48 22 00 00 00' 17 | '' 18 | 'Kind regards,' 19 | 'Evotec IT' 20 | } 21 | EmailText -LineBreak 22 | } 23 | } -OutputHTML -Online 24 | 25 | # this allows us to see the content of HTML and use it for other purposes instead of sending emails 26 | $OutputHTML -------------------------------------------------------------------------------- /Examples/Example38-Emails/Example38-Emails03.ps1: -------------------------------------------------------------------------------- 1 | Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force 2 | 3 | $OutputHTML = EmailBody -FontFamily 'Calibri' -Size 15 { 4 | EmailTextBox { 5 | "Hello $UserNotify," 6 | "" 7 | "Your password is due to expire in $PasswordExpiryDays days." 8 | "" 9 | 'To change your password: ' 10 | '- press CTRL+ALT+DEL -> Change a password...' 11 | '' 12 | 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' 13 | "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." 14 | '' 15 | 'Alternatively you can always call Help Desk at +48 22 00 00 00' 16 | '' 17 | 'Kind regards,' 18 | 'Evotec IT' 19 | } 20 | EmailText -LineBreak 21 | } -Online 22 | 23 | # this allows us to see the content of HTML and use it for other purposes instead of sending emails 24 | # We skip using Email and use use EmailBody instead which should be a bit faster if that's all we care about 25 | $OutputHTML -------------------------------------------------------------------------------- /Examples/Example39-CompareObjects/Example39-03.ps1: -------------------------------------------------------------------------------- 1 |  2 | 3 | $Objects = Import-Csv -LiteralPath "C:\Users\przemyslaw.klys\Downloads\AuditLog_2022-02-06_2022-02-13.csv" 4 | $Objects.COunt 5 | 6 | $Test = foreach ($Object in $Objects) { 7 | $Object.AuditData | ConvertFrom-Json 8 | } 9 | $Test | Out-HtmlView -Filtering -ScrollX -FlattenObject -------------------------------------------------------------------------------- /Examples/Example39-TableColumnOption/Example39_01.ps1: -------------------------------------------------------------------------------- 1 | Import-Module "$PSSCriptRoot\..\..\PSWriteHTML.psd1" -Force 2 | 3 | $Process = Get-Process | Select-Object -First 20 4 | $ProcessesLimited = $Process | Select-Object -Property Id, Name, PriorityClass, ProductVersion, Company, Path, Description 5 | 6 | New-HTML -TitleText 'My title' -Online -FilePath $PSScriptRoot\Example39_01.html { 7 | New-HTMLSection -HeaderText 'Test' { 8 | New-HTMLTable -DataTable $ProcessesLimited -PagingOptions @(5, 10, 50, 100) { 9 | New-TableColumnOption -ColumnIndex 0, 1 -Hidden $false 10 | New-TableColumnOption -AllColumns -Hidden $true 11 | } 12 | } 13 | New-HTMLSection -HeaderText 'Test' { 14 | New-HTMLTable -DataTable $ProcessesLimited -PagingOptions @(5, 10, 50, 100) -DefaultSortColumn 'Id' { 15 | New-TableColumnOption -ColumnIndex (0..5) -Width 50 16 | New-TableColumnOption -ColumnIndex 1 -Sortable $true 17 | New-TableColumnOption -ColumnIndex 1, 3, 4 -Searchable $true 18 | New-TableColumnOption -AllColumns -Sortable $false -Searchable $false 19 | 20 | } 21 | } 22 | New-HTMLTable -DataTable $ProcessesLimited -DefaultSortIndex 0 -OrderMulti { 23 | New-TableColumnOption -ColumnIndex 0 -Sortable $true 24 | New-TableColumnOption -AllColumns -Sortable $false 25 | } 26 | } -ShowHTML 27 | -------------------------------------------------------------------------------- /Examples/Example44-FontIcon/Example44-FontIcon.ps1: -------------------------------------------------------------------------------- 1 | Import-Module .\PSWriteHTML.psd1 -Force 2 | 3 | New-HTMLFontIcon -IconSolid ad 4 | 5 | New-HTMLFontIcon -IconSolid ad -AsCSS -Name '.className' 6 | 7 | New-HTMLFontIcon -IconSolid ad -AsCSS 8 | 9 | New-HTMLFontIcon -IconSolid ad -AsCSS -AsHashTable -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Evotec 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Private/ChartsAll/New-ChartInternalMarker.ps1: -------------------------------------------------------------------------------- 1 | function New-ChartInternalMarker { 2 | <# 3 | .SYNOPSIS 4 | Creates a new internal marker for a chart. 5 | 6 | .DESCRIPTION 7 | This function creates a new internal marker for a chart based on the specified options. 8 | 9 | .PARAMETER Options 10 | Specifies the options for the internal marker. 11 | 12 | .PARAMETER MarkerSize 13 | Specifies the size of the marker. 14 | 15 | .EXAMPLE 16 | $markerOptions = @{ 17 | color = 'red' 18 | } 19 | New-ChartInternalMarker -Options $markerOptions -MarkerSize 10 20 | #> 21 | [CmdletBinding()] 22 | param( 23 | [System.Collections.IDictionary] $Options, 24 | [int] $MarkerSize 25 | ) 26 | if ($MarkerSize -gt 0) { 27 | $Options.markers = @{ 28 | size = $MarkerSize 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Private/ChartsAll/New-ChartInternalPattern.ps1: -------------------------------------------------------------------------------- 1 | function New-ChartInternalPattern { 2 | <# 3 | .SYNOPSIS 4 | Creates a new chart internal pattern with specified options. 5 | 6 | .DESCRIPTION 7 | The New-ChartInternalPattern function creates a new chart internal pattern with the specified options. It allows customization of the pattern style, opacity, and type. 8 | 9 | .EXAMPLE 10 | New-ChartInternalPattern -Type 'pattern' -Opacity 1 -PatternStyle 'circles' 11 | 12 | Description 13 | ----------- 14 | Creates a new chart internal pattern with circles pattern style and opacity of 1. 15 | 16 | .EXAMPLE 17 | New-ChartInternalPattern -Type 'pattern' -Opacity 0.5 -PatternStyle 'verticalLines' 18 | 19 | Description 20 | ----------- 21 | Creates a new chart internal pattern with vertical lines pattern style and opacity of 0.5. 22 | 23 | #> 24 | [CmdletBinding()] 25 | param( 26 | 27 | ) 28 | $Options.fill = [ordered]@{ 29 | type = 'pattern' 30 | opacity = 1 31 | pattern = [ordered]@{ 32 | style = @('circles', 'slantedLines', 'verticalLines', 'horizontalLines') 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Private/ChartsAll/New-ChartInternalPie.ps1: -------------------------------------------------------------------------------- 1 | function New-ChartInternalPie { 2 | <# 3 | .SYNOPSIS 4 | Creates a new internal pie chart. 5 | 6 | .DESCRIPTION 7 | This function creates a new internal pie chart based on the provided options, values, names, and type. 8 | 9 | .PARAMETER Options 10 | The options for the pie chart. 11 | 12 | .PARAMETER Values 13 | An array of values for the pie chart. 14 | 15 | .PARAMETER Names 16 | An array of names for the pie chart. 17 | 18 | .PARAMETER Type 19 | The type of the pie chart. 20 | 21 | .EXAMPLE 22 | New-ChartInternalPie -Options @{ chart = @{ type = "pie" } } -Values @(10, 20, 30) -Names @("A", "B", "C") -Type "pie" 23 | Creates a new internal pie chart with values 10, 20, 30 and names A, B, C. 24 | 25 | #> 26 | [CmdletBinding()] 27 | param( 28 | [System.Collections.IDictionary] $Options, 29 | [Array] $Values, 30 | [Array] $Names, 31 | [string] $Type 32 | ) 33 | # Chart defintion type, size 34 | $Options.chart.type = $Type.ToLower() 35 | $Options.series = @($Values) 36 | $Options.labels = @($Names) 37 | } -------------------------------------------------------------------------------- /Private/ChartsAll/New-ChartInternalSize.ps1: -------------------------------------------------------------------------------- 1 | function New-ChartInternalSize { 2 | <# 3 | .SYNOPSIS 4 | Creates a new chart with specified height and width. 5 | 6 | .DESCRIPTION 7 | This function creates a new chart with the specified height and width values. 8 | 9 | .PARAMETER Options 10 | The options for the chart. 11 | 12 | .PARAMETER Height 13 | The height of the chart. Default is 350. 14 | 15 | .PARAMETER Width 16 | The width of the chart. 17 | 18 | .EXAMPLE 19 | $chartOptions = @{ 20 | chart = @{ 21 | type = 'bar' 22 | } 23 | } 24 | New-ChartInternalSize -Options $chartOptions -Height 400 -Width 600 25 | #> 26 | [CmdletBinding()] 27 | param( 28 | [System.Collections.IDictionary] $Options, 29 | [nullable[int]] $Height = 350, 30 | [nullable[int]] $Width 31 | ) 32 | if ($null -ne $Height) { 33 | $Options.chart.height = $Height 34 | } 35 | if ($null -ne $Width) { 36 | $Options.chart.width = $Width 37 | } 38 | } -------------------------------------------------------------------------------- /Private/ChartsAll/New-ChartInternalToolTip.ps1: -------------------------------------------------------------------------------- 1 | function New-ChartInternalToolTip { 2 | <# 3 | .SYNOPSIS 4 | Creates a new internal tooltip for a chart. 5 | 6 | .DESCRIPTION 7 | This function creates a new internal tooltip for a chart with the specified options. 8 | 9 | .PARAMETER Options 10 | Specifies the options for the tooltip. 11 | 12 | .PARAMETER Enabled 13 | Indicates whether the tooltip is enabled. 14 | 15 | .PARAMETER y 16 | Specifies the y-coordinate for the tooltip. 17 | 18 | .PARAMETER x 19 | Specifies the x-coordinate for the tooltip. 20 | 21 | .EXAMPLE 22 | $tooltipOptions = @{ 23 | tooltip = @{ 24 | enabled = $true 25 | x = 10 26 | y = 20 27 | } 28 | } 29 | New-ChartInternalToolTip -Options $tooltipOptions -Enabled $true -x 10 -y 20 30 | #> 31 | [CmdletBinding()] 32 | param( 33 | [System.Collections.IDictionary] $Options, 34 | [bool] $Enabled, 35 | [System.Collections.IDictionary] $y, 36 | [System.Collections.IDictionary] $x 37 | 38 | ) 39 | 40 | if (-not $Options.tooltip) { 41 | $Options.tooltip = @{} 42 | } 43 | $Options.tooltip.enabled = $Enabled 44 | $Options.tooltip.x = $x 45 | $Options.tooltip.y = $y 46 | 47 | } -------------------------------------------------------------------------------- /Private/ChartsAll/New-ChartInternalZoom..ps1: -------------------------------------------------------------------------------- 1 | function New-ChartInternalZoom { 2 | <# 3 | .SYNOPSIS 4 | Creates a new internal zoom feature for a chart. 5 | 6 | .DESCRIPTION 7 | This function creates a new internal zoom feature for a chart with the specified options. The zoom feature allows users to zoom in on specific areas of the chart for a closer look. 8 | 9 | .PARAMETER Options 10 | Specifies the options for the zoom feature. 11 | 12 | .PARAMETER Enabled 13 | Indicates whether the zoom feature is enabled. 14 | 15 | .EXAMPLE 16 | $zoomOptions = @{} 17 | New-ChartInternalZoom -Options $zoomOptions -Enabled $true 18 | # Enables the zoom feature for the chart. 19 | 20 | .EXAMPLE 21 | $zoomOptions = @{} 22 | New-ChartInternalZoom -Options $zoomOptions -Enabled $false 23 | # Disables the zoom feature for the chart. 24 | #> 25 | [CmdletBinding()] 26 | param( 27 | [System.Collections.IDictionary] $Options, 28 | [switch] $Enabled 29 | ) 30 | if ($Enabled) { 31 | $Options.chart.zoom = @{ 32 | type = 'x' 33 | enabled = $Enabled.IsPresent 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Private/Convert-FromRotate.ps1: -------------------------------------------------------------------------------- 1 | function ConvertFrom-Rotate { 2 | <# 3 | .SYNOPSIS 4 | Converts the input value to a CSS rotation string. 5 | 6 | .DESCRIPTION 7 | This function converts the input value to a CSS rotation string based on the input type and content. 8 | 9 | .PARAMETER Rotate 10 | Specifies the value to be converted to a CSS rotation string. 11 | 12 | .EXAMPLE 13 | ConvertFrom-Rotate -Rotate 90 14 | Output: "rotate(90deg)" 15 | 16 | .EXAMPLE 17 | ConvertFrom-Rotate -Rotate "rotate(180deg)" 18 | Output: "rotate(180deg)" 19 | 20 | .EXAMPLE 21 | ConvertFrom-Rotate -Rotate "180deg" 22 | Output: "rotate(180deg)" 23 | 24 | .EXAMPLE 25 | ConvertFrom-Rotate -Rotate "180" 26 | Output: "rotate(180deg)" 27 | #> 28 | [cmdletBinding()] 29 | param( 30 | [object] $Rotate 31 | ) 32 | if ($Rotate -is [int]) { 33 | if ($Rotate -ne 0) { 34 | "rotate($($Rotate)deg)" 35 | } 36 | } elseif ($Rotate -is [string]) { 37 | if ($Rotate) { 38 | if (($Rotate -like '*deg*') -and ($Rotate -notlike '*rotate*')) { 39 | "rotate($Rotate)" 40 | } elseif (($Rotate -like '*deg*') -and ($Rotate -like '*rotate*')) { 41 | "$Rotate" 42 | } else { 43 | $Rotate 44 | } 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /Private/Convert-Image.ps1: -------------------------------------------------------------------------------- 1 | function Convert-Image { 2 | <# 3 | .SYNOPSIS 4 | Converts an image file to a binary format. 5 | 6 | .DESCRIPTION 7 | The Convert-Image function takes an image file path as input and converts it to a binary format. 8 | 9 | .PARAMETER Image 10 | Specifies the path to the image file to be converted. 11 | 12 | .PARAMETER Cache 13 | Indicates whether to cache the image file for future use. 14 | 15 | .EXAMPLE 16 | Convert-Image -Image "C:\Images\example.jpg" -Cache 17 | Description: 18 | Converts the image file "example.jpg" to a binary format and caches it for future use. 19 | 20 | #> 21 | [CmdletBinding()] 22 | param( 23 | [string] $Image, 24 | [switch] $Cache 25 | ) 26 | 27 | $ImageFile = Get-ImageFile -Image $Image -Cache:$Cache 28 | if ($ImageFile) { 29 | Convert-ImageToBinary -ImageFile $ImageFile 30 | } 31 | } -------------------------------------------------------------------------------- /Private/ConvertFrom-Size.ps1: -------------------------------------------------------------------------------- 1 | function ConvertFrom-Size { 2 | <# 3 | .SYNOPSIS 4 | Converts the input size to a pixel value. 5 | 6 | .DESCRIPTION 7 | This function converts the input size to a pixel value. It accepts either an integer or a string representing a number. 8 | 9 | .PARAMETER Size 10 | Specifies the size to convert. This can be provided as an integer or a string. 11 | 12 | .EXAMPLE 13 | ConvertFrom-Size -Size 12 14 | Output: "12px" 15 | 16 | .EXAMPLE 17 | ConvertFrom-Size -Size "24" 18 | Output: "24px" 19 | 20 | .NOTES 21 | Author: Your Name 22 | Date: Current Date 23 | Version: 1.0 24 | #> 25 | [cmdletBinding()] 26 | param( 27 | [alias('TextSize', 'FontSize')][object] $Size 28 | ) 29 | if ($Size -is [int]) { 30 | "$($Size)px" 31 | } elseif ($Size -is [string]) { 32 | $IntSize = 0 33 | $Conversion = [int]::TryParse($Size, [ref] $IntSize) 34 | if ($Conversion) { 35 | "$($Size)px" 36 | } else { 37 | $Size 38 | } 39 | } else { 40 | $Size 41 | } 42 | } -------------------------------------------------------------------------------- /Private/ConvertTo-SVG.ps1: -------------------------------------------------------------------------------- 1 | function ConvertTo-SVG { 2 | <# 3 | .SYNOPSIS 4 | Converts the input content to a data URI for embedding SVG images in HTML or CSS. 5 | 6 | .DESCRIPTION 7 | This function takes the input content and file type and converts it to a data URI suitable for embedding SVG images in HTML or CSS. It encodes the content in UTF-8 format and constructs the data URI accordingly. 8 | 9 | .PARAMETER Content 10 | Specifies the content to be converted to a data URI. 11 | 12 | .PARAMETER FileType 13 | Specifies the type of file being converted. This should be 'svg' for SVG images. 14 | 15 | .EXAMPLE 16 | ConvertTo-SVG -Content "SVG content here" -FileType 'svg' 17 | Converts the input SVG content to a data URI for embedding in HTML or CSS. 18 | 19 | #> 20 | [CmdLetBinding()] 21 | param( 22 | [string] $Content, 23 | [string] $FileType 24 | ) 25 | if ($Content) { 26 | $Replace = "data:image/$FileType;charset=utf-8," + [uri]::EscapeDataString($Content) 27 | $Replace 28 | } 29 | } -------------------------------------------------------------------------------- /Private/Get-ConfigurationCSS.ps1: -------------------------------------------------------------------------------- 1 | function Get-ConfigurationCSS { 2 | <# 3 | .SYNOPSIS 4 | Retrieves the CSS configuration for a specified feature and type. 5 | 6 | .DESCRIPTION 7 | This function retrieves the CSS configuration for a specified feature and type from the current configuration. 8 | 9 | .PARAMETER Feature 10 | Specifies the feature for which the CSS configuration is requested. 11 | 12 | .PARAMETER Type 13 | Specifies the type of CSS configuration to retrieve. 14 | 15 | .EXAMPLE 16 | Get-ConfigurationCSS -Feature "Header" -Type "Desktop" 17 | Retrieves the CSS configuration for the Header feature on the Desktop type. 18 | 19 | .EXAMPLE 20 | Get-ConfigurationCSS -Feature "Footer" -Type "Mobile" 21 | Retrieves the CSS configuration for the Footer feature on the Mobile type. 22 | #> 23 | [cmdletBinding()] 24 | param( 25 | [string] $Feature, 26 | [string] $Type 27 | ) 28 | return $Script:CurrentConfiguration.Features.$Feature.$Type.CssInline 29 | } -------------------------------------------------------------------------------- /Private/Parameters/ScriptBlock.RGBColors.ps1: -------------------------------------------------------------------------------- 1 | $Script:ScriptBlockColors = { 2 | param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters) 3 | $Script:RGBColors.Keys | Where-Object { $_ -like "*$wordToComplete*" } 4 | } -------------------------------------------------------------------------------- /Private/Remove-DotsFromCssClass.ps1: -------------------------------------------------------------------------------- 1 | function Remove-DotsFromCssClass { 2 | <# 3 | .SYNOPSIS 4 | Removes dots from CSS class names. 5 | 6 | .DESCRIPTION 7 | This function removes dots from CSS class names by trimming the leading dot from each class name. 8 | 9 | .PARAMETER Css 10 | Specifies a dictionary of CSS class names. 11 | 12 | .EXAMPLE 13 | Remove-DotsFromCssClass -Css @{ '.class1' = 'value1'; '.class2' = 'value2' } 14 | Removes dots from the CSS class names in the provided dictionary. 15 | 16 | #> 17 | [cmdletBinding()] 18 | param( 19 | [System.Collections.IDictionary] $Css 20 | ) 21 | foreach ($Key in [string[]] $Css.Keys) { 22 | $Css[$Key] = $Css[$Key].TrimStart('.') 23 | } 24 | } -------------------------------------------------------------------------------- /Private/Set-ConfigurationCSS.ps1: -------------------------------------------------------------------------------- 1 | function Set-ConfigurationCSS { 2 | <# 3 | .SYNOPSIS 4 | Sets CSS configuration for a specific feature and type. 5 | 6 | .DESCRIPTION 7 | This function sets the CSS configuration for a specific feature and type in the script's current configuration. It allows customization of CSS properties for different features and types. 8 | 9 | .PARAMETER Feature 10 | Specifies the feature for which the CSS configuration is being set. 11 | 12 | .PARAMETER Type 13 | Specifies the type of CSS configuration being set. 14 | 15 | .PARAMETER CSS 16 | Specifies the CSS properties to be set for the specified feature and type. 17 | 18 | .EXAMPLE 19 | Set-ConfigurationCSS -Feature 'Header' -Type 'Color' -CSS @{ 'color' = 'blue' } 20 | Sets the 'color' property to 'blue' for the 'Header' feature in the CSS configuration. 21 | 22 | .EXAMPLE 23 | Set-ConfigurationCSS -Feature 'Footer' -Type 'Font' -CSS @{ 'font-family' = 'Arial', 'font-size' = '12px' } 24 | Sets the font family to 'Arial' and font size to '12px' for the 'Footer' feature in the CSS configuration. 25 | #> 26 | [cmdletBinding()] 27 | param( 28 | [string] $Feature, 29 | [string] $Type, 30 | [System.Collections.IDictionary] $CSS 31 | ) 32 | $Script:CurrentConfiguration.Features.$Feature.$Type.CssInline = $CSS 33 | } -------------------------------------------------------------------------------- /Public/EmailAttachment.ps1: -------------------------------------------------------------------------------- 1 | function EmailAttachment { 2 | <# 3 | .SYNOPSIS 4 | Creates an email attachment object for header attachments. 5 | 6 | .DESCRIPTION 7 | This function creates an email attachment object specifically for header attachments. It takes an array of file paths and returns a custom object representing the attachment. 8 | 9 | .PARAMETER FilePath 10 | Specifies an array of file paths for the attachments. 11 | 12 | .EXAMPLE 13 | $Attachment = EmailAttachment -FilePath 'C:\Files\attachment1.txt', 'C:\Files\attachment2.pdf' 14 | Creates an email attachment object with two file paths for header attachments. 15 | 16 | .EXAMPLE 17 | $Files = 'C:\Files\attachment1.txt', 'C:\Files\attachment2.pdf' 18 | $Attachment = EmailAttachment -FilePath $Files 19 | Creates an email attachment object with multiple file paths for header attachments. 20 | 21 | #> 22 | [CmdletBinding()] 23 | param( 24 | [string[]] $FilePath 25 | ) 26 | [PSCustomObject] @{ 27 | Type = 'HeaderAttachment' 28 | FilePath = $FilePath 29 | } 30 | } -------------------------------------------------------------------------------- /Public/EmailBCC.ps1: -------------------------------------------------------------------------------- 1 | function EmailBCC { 2 | <# 3 | .SYNOPSIS 4 | Creates an email object for blind carbon copy (BCC) recipients. 5 | 6 | .DESCRIPTION 7 | This function creates an email object specifically for blind carbon copy (BCC) recipients. It takes an array of email addresses and returns a custom object representing the BCC recipients. 8 | 9 | .PARAMETER Addresses 10 | Specifies an array of email addresses for the BCC recipients. 11 | 12 | .EXAMPLE 13 | $BCCRecipients = EmailBCC -Addresses 'bcc1@example.com', 'bcc2@example.com' 14 | Creates an email object with two BCC recipients. 15 | 16 | .EXAMPLE 17 | $BCCList = 'bcc1@example.com', 'bcc2@example.com' 18 | $BCCRecipients = EmailBCC -Addresses $BCCList 19 | Creates an email object with multiple BCC recipients. 20 | 21 | #> 22 | [CmdletBinding()] 23 | param( 24 | [string[]] $Addresses 25 | ) 26 | 27 | [PsCustomObject] @{ 28 | Type = 'HeaderBCC' 29 | Addresses = $Addresses 30 | } 31 | } -------------------------------------------------------------------------------- /Public/EmailCC.ps1: -------------------------------------------------------------------------------- 1 | function EmailCC { 2 | <# 3 | .SYNOPSIS 4 | Creates an email object for carbon copy (CC) recipients. 5 | 6 | .DESCRIPTION 7 | This function creates an email object specifically for carbon copy (CC) recipients. It takes an array of email addresses and returns a custom object representing the CC recipients. 8 | 9 | .PARAMETER Addresses 10 | Specifies an array of email addresses for the CC recipients. 11 | 12 | .EXAMPLE 13 | $CCRecipients = EmailCC -Addresses 'cc1@example.com', 'cc2@example.com' 14 | Creates an email object with two CC recipients. 15 | 16 | .EXAMPLE 17 | $CCList = 'cc1@example.com', 'cc2@example.com' 18 | $CCRecipients = EmailCC -Addresses $CCList 19 | Creates an email object with multiple CC recipients. 20 | #> 21 | [CmdletBinding()] 22 | param( 23 | [string[]] $Addresses 24 | ) 25 | 26 | [PsCustomObject] @{ 27 | Type = 'HeaderCC' 28 | Addresses = $Addresses 29 | } 30 | } -------------------------------------------------------------------------------- /Public/EmailFrom.ps1: -------------------------------------------------------------------------------- 1 | function EmailFrom { 2 | <# 3 | .SYNOPSIS 4 | Creates an email object for the sender address. 5 | 6 | .DESCRIPTION 7 | This function creates an email object specifically for the sender address. It takes a single email address as input and returns a custom object representing the sender address. 8 | 9 | .PARAMETER Address 10 | Specifies the email address of the sender. 11 | 12 | .EXAMPLE 13 | $Sender = EmailFrom -Address 'sender@example.com' 14 | Creates an email object with the specified sender address. 15 | 16 | #> 17 | [CmdletBinding()] 18 | param( 19 | [string] $Address 20 | ) 21 | 22 | [PsCustomObject] @{ 23 | Type = 'HeaderFrom' 24 | Address = $Address 25 | } 26 | } -------------------------------------------------------------------------------- /Public/EmailHeader.ps1: -------------------------------------------------------------------------------- 1 | function EmailHeader { 2 | <# 3 | .SYNOPSIS 4 | Creates email headers based on the provided ScriptBlock. 5 | 6 | .DESCRIPTION 7 | This function creates email headers using the specified ScriptBlock. It allows customization of email headers before sending an email. 8 | 9 | .PARAMETER EmailHeader 10 | Specifies the ScriptBlock containing the email header content. 11 | 12 | .EXAMPLE 13 | $EmailHeader = { 14 | 'From: sender@example.com' 15 | 'To: recipient@example.com' 16 | 'Subject: Hello World' 17 | } 18 | $Headers = EmailHeader -EmailHeader $EmailHeader 19 | Creates email headers with sender, recipient, and subject information. 20 | 21 | #> 22 | [CmdletBinding()] 23 | param( 24 | [Parameter(Mandatory = $false, Position = 0)][ScriptBlock] $EmailHeader 25 | ) 26 | $EmailHeaders = Invoke-Command -ScriptBlock $EmailHeader 27 | $EmailHeaders 28 | } -------------------------------------------------------------------------------- /Public/EmailLayout.ps1: -------------------------------------------------------------------------------- 1 | function EmailLayout { 2 | <# 3 | .SYNOPSIS 4 | Defines the layout structure for an email content. 5 | 6 | .DESCRIPTION 7 | This function defines the layout structure for an email content using a ScriptBlock. It generates an HTML table layout for the email content. 8 | 9 | .PARAMETER Layout 10 | Specifies the ScriptBlock containing the layout structure for the email content. 11 | 12 | .EXAMPLE 13 | $EmailLayout = { 14 | 'Content goes here' 15 | } 16 | EmailLayout -Layout $EmailLayout 17 | Generates an HTML table layout for the email content with the specified content. 18 | 19 | #> 20 | [cmdletBinding()] 21 | param( 22 | [ScriptBlock] $Layout 23 | ) 24 | 25 | Enable-HTMLFeature -Feature EmailLayout 26 | 27 | if ($Layout) { 28 | $Output = & $Layout 29 | 30 | if ($Output) { 31 | New-HTMLTag -Tag 'table' -Attributes @{class = 'layoutTable'; width = '100%' } { 32 | New-HTMLTag -Tag 'tbody' -Attributes @{ class = 'layoutTableBody' } { 33 | New-HTMLTag -Tag 'tr' -Attributes @{ class = 'layoutTableRow' } { 34 | $Output 35 | } 36 | } 37 | } 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Public/EmailReplyTo.ps1: -------------------------------------------------------------------------------- 1 | function EmailReplyTo { 2 | <# 3 | .SYNOPSIS 4 | Defines the email address to which replies should be directed. 5 | 6 | .DESCRIPTION 7 | This function sets the email address to which replies should be directed when receiving notifications. 8 | 9 | .PARAMETER Address 10 | Specifies the email address to which replies should be directed. 11 | 12 | .EXAMPLE 13 | EmailReplyTo -Address "reply@example.com" 14 | Sets the email address to which replies should be directed to "reply@example.com". 15 | 16 | #> 17 | [CmdletBinding()] 18 | param( 19 | [string] $Address 20 | ) 21 | 22 | [PsCustomObject] @{ 23 | Type = 'HeaderReplyTo' 24 | Address = $Address 25 | } 26 | } -------------------------------------------------------------------------------- /Public/EmailSubject.ps1: -------------------------------------------------------------------------------- 1 | function EmailSubject { 2 | <# 3 | .SYNOPSIS 4 | Defines the subject line for an email. 5 | 6 | .DESCRIPTION 7 | This function sets the subject line for an email message. 8 | 9 | .PARAMETER Subject 10 | Specifies the subject line of the email. 11 | 12 | .EXAMPLE 13 | EmailSubject -Subject "Important Notification" 14 | Sets the subject line of the email to "Important Notification". 15 | 16 | #> 17 | [CmdletBinding()] 18 | param( 19 | [string] $Subject 20 | ) 21 | 22 | [PsCustomObject] @{ 23 | Type = 'HeaderSubject' 24 | Subject = $Subject 25 | } 26 | } -------------------------------------------------------------------------------- /Public/EmailTo.ps1: -------------------------------------------------------------------------------- 1 | 2 | function EmailTo { 3 | <# 4 | .SYNOPSIS 5 | Defines the email addresses to which the email should be sent. 6 | 7 | .DESCRIPTION 8 | This function sets the email addresses to which the email should be sent. 9 | 10 | .PARAMETER Addresses 11 | Specifies an array of email addresses to which the email should be sent. 12 | 13 | .EXAMPLE 14 | EmailTo -Addresses "user1@example.com", "user2@example.com" 15 | Sets the email addresses to which the email should be sent to "user1@example.com" and "user2@example.com". 16 | 17 | #> 18 | [CmdletBinding()] 19 | param( 20 | [string[]] $Addresses 21 | ) 22 | 23 | [PsCustomObject] @{ 24 | Type = 'HeaderTo' 25 | Addresses = $Addresses 26 | } 27 | } -------------------------------------------------------------------------------- /Public/New-ChartRadial.ps1: -------------------------------------------------------------------------------- 1 | function New-ChartRadial { 2 | <# 3 | .SYNOPSIS 4 | Creates a new radial chart object. 5 | 6 | .DESCRIPTION 7 | This function creates a new radial chart object with the specified Name, Value, and Color. 8 | 9 | .PARAMETER Name 10 | Specifies the name of the radial chart. 11 | 12 | .PARAMETER Value 13 | Specifies the value of the radial chart. 14 | 15 | .PARAMETER Color 16 | Specifies the color of the radial chart. If not provided, the default color is used. 17 | 18 | .EXAMPLE 19 | PS C:\> New-ChartRadial -Name "Chart1" -Value 75 -Color "Blue" 20 | Creates a new radial chart object named "Chart1" with a value of 75 and a blue color. 21 | 22 | .EXAMPLE 23 | PS C:\> New-ChartRadial -Name "Chart2" -Value 50 24 | Creates a new radial chart object named "Chart2" with a value of 50 using the default color. 25 | 26 | #> 27 | [alias('ChartRadial')] 28 | [CmdletBinding()] 29 | param( 30 | [string] $Name, 31 | [object] $Value, 32 | [string] $Color 33 | ) 34 | [PSCustomObject] @{ 35 | ObjectType = 'Radial' 36 | Name = $Name 37 | Value = $Value 38 | Color = if ($Color) { ConvertFrom-Color -Color $Color } else { $null } 39 | } 40 | } 41 | 42 | Register-ArgumentCompleter -CommandName New-ChartRadial -ParameterName Color -ScriptBlock $Script:ScriptBlockColors -------------------------------------------------------------------------------- /Public/New-ChartSpark.ps1: -------------------------------------------------------------------------------- 1 | function New-ChartSpark { 2 | <# 3 | .SYNOPSIS 4 | Creates a new spark chart object. 5 | 6 | .DESCRIPTION 7 | This function creates a new spark chart object with the specified Name, Value, and Color. 8 | 9 | .PARAMETER Name 10 | Specifies the name of the spark chart. 11 | 12 | .PARAMETER Value 13 | Specifies the value of the spark chart. 14 | 15 | .PARAMETER Color 16 | Specifies the color of the spark chart. 17 | 18 | .EXAMPLE 19 | PS C:\> New-ChartSpark -Name "Spark1" -Value 100 -Color "Green" 20 | Creates a new spark chart object named "Spark1" with a value of 100 and a green color. 21 | 22 | .EXAMPLE 23 | PS C:\> New-ChartSpark -Name "Spark2" -Value 50 24 | Creates a new spark chart object named "Spark2" with a value of 50 using the default color. 25 | #> 26 | [alias('ChartSpark')] 27 | [CmdletBinding()] 28 | param( 29 | [string] $Name, 30 | [object] $Value, 31 | [string] $Color 32 | ) 33 | 34 | [PSCustomObject] @{ 35 | ObjectType = 'Spark' 36 | Name = $Name 37 | Value = $Value 38 | Color = $Color 39 | } 40 | } 41 | 42 | Register-ArgumentCompleter -CommandName New-ChartSpark -ParameterName Color -ScriptBlock $Script:ScriptBlockColors -------------------------------------------------------------------------------- /Public/New-GageSector.ps1: -------------------------------------------------------------------------------- 1 | function New-GageSector { 2 | <# 3 | .SYNOPSIS 4 | Creates a new gauge sector with specified color, minimum value, and maximum value. 5 | 6 | .DESCRIPTION 7 | This function creates a new gauge sector with the provided color, minimum value, and maximum value. It is useful for visualizing data within a specific range. 8 | 9 | .PARAMETER Color 10 | Specifies the color of the gauge sector. 11 | 12 | .PARAMETER Min 13 | Specifies the minimum value of the gauge sector. 14 | 15 | .PARAMETER Max 16 | Specifies the maximum value of the gauge sector. 17 | 18 | .EXAMPLE 19 | $sector = New-GageSector -Color 'red' -Min 0 -Max 100 20 | Creates a new gauge sector with a red color, minimum value of 0, and maximum value of 100. 21 | 22 | .NOTES 23 | Additional notes 24 | #> 25 | [CmdletBinding()] 26 | param( 27 | [string] $Color, 28 | [int] $Min, 29 | [int] $Max 30 | ) 31 | 32 | [ordered] @{ 33 | color = ConvertFrom-Color -Color $Color 34 | lo = $Min 35 | hi = $Max 36 | } 37 | } 38 | Register-ArgumentCompleter -CommandName New-GageSection -ParameterName Color -ScriptBlock $Script:ScriptBlockColors -------------------------------------------------------------------------------- /Public/New-HTMLCarouselStyle.ps1: -------------------------------------------------------------------------------- 1 | function New-HTMLCarouselStyle { 2 | [cmdletBinding()] 3 | param( 4 | 5 | ) 6 | } -------------------------------------------------------------------------------- /Public/New-HTMLHorizonalLine.ps1: -------------------------------------------------------------------------------- 1 | function New-HTMLHorizontalLine { 2 | <# 3 | .SYNOPSIS 4 | Creates a horizontal line in HTML. 5 | 6 | .DESCRIPTION 7 | The New-HTMLHorizontalLine function generates a horizontal line (
) tag in HTML. 8 | 9 | .EXAMPLE 10 | New-HTMLHorizontalLine 11 | Generates a horizontal line in HTML. 12 | 13 | #> 14 | [CmdletBinding()] 15 | param() 16 | New-HTMLTag -Tag 'hr' -SelfClosing 17 | } -------------------------------------------------------------------------------- /Public/New-HTMLMermeidChart.ps1: -------------------------------------------------------------------------------- 1 | function New-HTMLMermeidChart { 2 | <# 3 | .SYNOPSIS 4 | Creates a new HTML Mermaid chart. 5 | 6 | .DESCRIPTION 7 | This function creates a new HTML Mermaid chart based on the provided Markdown scriptblock. 8 | 9 | .PARAMETER Markdown 10 | The Markdown scriptblock containing the Mermaid chart definition. 11 | 12 | .EXAMPLE 13 | New-HTMLMermeidChart -Markdown { @" 14 | graph TD; 15 | A-->B; 16 | A-->C; 17 | B-->D; 18 | C-->D; 19 | "@ } 20 | 21 | This example creates a simple flowchart with nodes A, B, C, and D connected by arrows. 22 | 23 | #> 24 | [alias('New-HTMLMermeid')] 25 | [CmdletBinding()] 26 | param( 27 | [scriptblock] $Markdown 28 | ) 29 | 30 | $Script:HTMLSchema.Features.Mermaid = $true 31 | 32 | $Data = & $Markdown 33 | if ($Data -is [string]) { 34 | $Data = $Data 35 | } else { 36 | $Data = $Data -join "`r`n" 37 | } 38 | 39 | New-HTMLTag -Tag 'div' -Attributes @{ class = 'mermaid' } { 40 | $Data 41 | } 42 | } -------------------------------------------------------------------------------- /Public/New-HTMLStatus.ps1: -------------------------------------------------------------------------------- 1 | function New-HTMLStatus { 2 | <# 3 | .SYNOPSIS 4 | Creates a new HTML status section with customizable content. 5 | 6 | .DESCRIPTION 7 | The New-HTMLStatus function creates an HTML status section with customizable content. It allows you to display status information with flexibility. 8 | 9 | .PARAMETER Content 10 | Specifies the content to be displayed within the status section as a ScriptBlock. 11 | 12 | .EXAMPLE 13 | New-HTMLStatus -Content { 14 | "Status: OK" 15 | } 16 | Creates a new HTML status section displaying "Status: OK". 17 | 18 | .EXAMPLE 19 | $content = { 20 | "Status: Error" 21 | } 22 | New-HTMLStatus -Content $content 23 | Creates a new HTML status section displaying "Status: Error". 24 | #> 25 | [CmdletBinding()] 26 | param( 27 | [Parameter(Mandatory = $false, Position = 0)][alias('')][ScriptBlock] $Content 28 | ) 29 | $Script:HTMLSchema.Features.MainFlex = $true 30 | $Script:HTMLSchema.Features.StatusButtonical = $true 31 | New-HTMLTag -Tag 'div' -Attributes @{ class = 'buttonicalService' } { 32 | #New-HTMLTag -Tag 'div' -Attributes @{ class = 'buttonical-align' } { 33 | Invoke-Command -ScriptBlock $Content 34 | # } 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /Public/New-HTMLSummaryItemData.ps1: -------------------------------------------------------------------------------- 1 | function New-HTMLSummaryItemData { 2 | <# 3 | .SYNOPSIS 4 | Creates a new HTML summary item data with specified text and information. 5 | 6 | .DESCRIPTION 7 | This function creates a new HTML summary item data with the provided text and information. It formats the output using New-HTMLText cmdlet. 8 | 9 | .PARAMETER Icon 10 | Specifies the icon for the summary item. 11 | 12 | .PARAMETER Text 13 | Specifies the text to be displayed in the summary item. This parameter is mandatory. 14 | 15 | .PARAMETER Information 16 | Specifies the information to be displayed in the summary item. This parameter is mandatory. 17 | 18 | .EXAMPLE 19 | New-HTMLSummaryItemData -Text "Total Sales" -Information "$1000" 20 | Creates a new HTML summary item with the text "Total Sales" and information "$1000". 21 | 22 | .EXAMPLE 23 | New-HTMLSummaryItemData -Text "Total Orders" -Information "50" -Icon "order.png" 24 | Creates a new HTML summary item with the text "Total Orders", information "50", and icon "order.png". 25 | #> 26 | [cmdletBinding()] 27 | param( 28 | [string] $Icon, 29 | [parameter(Mandatory)][string] $Text, 30 | [parameter(Mandatory)][alias('Value')][string] $Information 31 | ) 32 | New-HTMLText -Text "$($Text): ", $Information -Color Grey, Black -Display inline -Opacity 0.3, 1 -FontWeight bold, normal 33 | } -------------------------------------------------------------------------------- /Public/New-HTMLTimeLine.ps1: -------------------------------------------------------------------------------- 1 | function New-HTMLTimeline { 2 | <# 3 | .SYNOPSIS 4 | Creates a new HTML timeline with customizable content. 5 | 6 | .DESCRIPTION 7 | This function creates an HTML timeline with the specified content. The timeline can be used to display a sequence of events or steps in a visually appealing manner. 8 | 9 | .PARAMETER Content 10 | Specifies the content of the HTML timeline as a script block. 11 | 12 | .EXAMPLE 13 | New-HTMLTimeline -Content { 14 | New-HTMLTag -Tag 'div' -Attributes @{ class = 'event' } -Value { "Event 1" } 15 | New-HTMLTag -Tag 'div' -Attributes @{ class = 'event' } -Value { "Event 2" } 16 | New-HTMLTag -Tag 'div' -Attributes @{ class = 'event' } -Value { "Event 3" } 17 | } 18 | 19 | Creates an HTML timeline with three events. 20 | 21 | #> 22 | [cmdletBinding()] 23 | param( 24 | [Parameter(Mandatory = $false, Position = 0)][alias('TimeLineItems')][ScriptBlock] $Content 25 | ) 26 | $Script:HTMLSchema.Features.MainFlex = $true 27 | $Script:HTMLSchema.Features.TimeLine = $true 28 | New-HTMLTag -Tag 'div' -Attributes @{ class = 'timelineSimpleContainer' } { 29 | if ($null -eq $Value) { '' } else { Invoke-Command -ScriptBlock $Content } 30 | } 31 | } -------------------------------------------------------------------------------- /Public/New-TableButtonPrint.ps1: -------------------------------------------------------------------------------- 1 | function New-TableButtonPrint { 2 | <# 3 | .SYNOPSIS 4 | Creates a new table button for printing with optional title and button name. 5 | 6 | .DESCRIPTION 7 | This function creates a new table button for printing with optional title and button name. It can be used to add a print button to HTML tables. 8 | 9 | .EXAMPLE 10 | New-TableButtonPrint -Title "Print Table" -ButtonName "Print" 11 | 12 | Description 13 | ----------- 14 | Creates a new table button with the title "Print Table" and button name "Print". 15 | 16 | .PARAMETER Title 17 | The title to be displayed when hovering over the button. 18 | 19 | .PARAMETER ButtonName 20 | The text to be displayed on the button. 21 | 22 | #> 23 | [alias('TableButtonPrint', 'EmailTableButtonPrint', 'New-HTMLTableButtonPrint')] 24 | [CmdletBinding()] 25 | param( 26 | [string] $Title, 27 | [string] $ButtonName 28 | ) 29 | if (-not $Script:HTMLSchema['TableSimplify']) { 30 | $Script:HTMLSchema.Features.DataTablesButtons = $true 31 | } 32 | $Output = @{} 33 | $Output['extend'] = 'print' 34 | if ($ButtonName) { 35 | $Output['text'] = $ButtonName 36 | } 37 | if ($Title) { 38 | $Output['title'] = $title 39 | } 40 | [PSCustomObject] @{ 41 | Type = 'TableButtonPrint' 42 | Output = $Button 43 | } 44 | } -------------------------------------------------------------------------------- /Public/New-TableReplace.ps1: -------------------------------------------------------------------------------- 1 | function New-TableReplace { 2 | <# 3 | .SYNOPSIS 4 | Replaces values in a specified field of a table. 5 | 6 | .DESCRIPTION 7 | This function replaces values in a specified field of a table with the provided replacements. 8 | 9 | .PARAMETER FieldName 10 | The name of the field in the table where replacements will be made. 11 | 12 | .PARAMETER Replacements 13 | An array of strings containing the values to replace in the specified field. 14 | 15 | .EXAMPLE 16 | New-TableReplace -FieldName "Status" -Replacements @("Active", "Inactive") 17 | 18 | Description: 19 | Replaces values in the "Status" field with "Active" or "Inactive". 20 | 21 | .EXAMPLE 22 | New-TableReplace -FieldName "Priority" -Replacements @("High", "Medium", "Low") 23 | 24 | Description: 25 | Replaces values in the "Priority" field with "High", "Medium", or "Low". 26 | #> 27 | [alias('TableReplace', 'EmailTableReplace', 'New-HTMLTableReplace')] 28 | [CmdletBinding()] 29 | param( 30 | [string] $FieldName, 31 | [string[]] $Replacements 32 | 33 | ) 34 | [PSCustomObject]@{ 35 | Type = 'TableReplaceCompare' 36 | Output = @{ 37 | $FieldName = $Replacements 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Resources/CSS/accordion.min.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /** 3 | * Accordion v3.3.4 4 | * Lightweight and accessible accordion module created in pure Javascript 5 | * https://github.com/michu2k/Accordion 6 | * 7 | * Copyright (c) Michał Strumpf 8 | * Published under MIT License 9 | */ 10 | 11 | .ac{margin-top:8px;border:1px solid #eee;background-color:#fff;box-sizing:border-box}.ac .ac-header{margin:0;padding:0}.ac .ac-trigger{font:bold 16px Arial,sans-serif;color:#111;text-align:left;width:100%;padding:8px 32px 8px 8px;display:block;cursor:pointer;background-color:transparent;transition:color .25s ease;position:relative;text-decoration:none;margin:0;border:0}.ac .ac-trigger::after{content:"+";text-align:center;width:15px;-webkit-transform:translate(0,-50%);transform:translate(0,-50%);position:absolute;right:10px;top:50%}.ac .ac-trigger:focus{color:#8a8a8a}.ac .ac-panel{overflow:hidden;transition-property:height,visibility;transition-timing-function:ease}.ac .ac-panel .ac-text{font:15px/24px Arial,sans-serif;color:#111;padding:8px;margin:0}.ac.js-enabled .ac-panel{visibility:hidden}.ac.is-active .ac-panel{visibility:visible}.ac.is-active>.ac-header .ac-trigger::after{content:"–"} -------------------------------------------------------------------------------- /Resources/CSS/dataTables.alphabetSearch.css: -------------------------------------------------------------------------------- 1 | div.alphabet { 2 | position: relative; 3 | display: table; 4 | width: 100%; 5 | margin-bottom: 1em; 6 | } 7 | 8 | div.alphabet span { 9 | display: table-cell; 10 | color: #3174c7; 11 | cursor: pointer; 12 | text-align: center; 13 | } 14 | 15 | div.alphabet span:hover { 16 | text-decoration: underline; 17 | } 18 | 19 | div.alphabet span.active { 20 | color: black; 21 | } 22 | 23 | div.alphabet span.empty { 24 | color: red; 25 | } 26 | 27 | div.alphabetInfo { 28 | display: block; 29 | position: absolute; 30 | background-color: #111; 31 | border-radius: 3px; 32 | color: white; 33 | top: 2em; 34 | height: 1.8em; 35 | padding-top: 0.4em; 36 | text-align: center; 37 | z-index: 1; 38 | } 39 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.colReorder.min.css: -------------------------------------------------------------------------------- 1 | table.DTCR_clonedTable.dataTable{position:absolute !important;background-color:rgba(255, 255, 255, 0.7);z-index:202;border-radius:4px}div.DTCR_pointer{width:1px;background-color:#0259c4;z-index:201}html.dark table.DTCR_clonedTable.dataTable{background-color:rgba(33, 33, 33, 0.9)}html.dark div.DTCR_pointer{background-color:rgb(110, 168, 254)} 2 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.fixedColumns.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable thead tr>.dtfc-fixed-left,table.dataTable thead tr>.dtfc-fixed-right,table.dataTable tfoot tr>.dtfc-fixed-left,table.dataTable tfoot tr>.dtfc-fixed-right{top:0;bottom:0;z-index:3;background-color:white}table.dataTable tbody tr>.dtfc-fixed-left,table.dataTable tbody tr>.dtfc-fixed-right{z-index:1;background-color:white}div.dtfc-left-top-blocker,div.dtfc-right-top-blocker{background-color:white}html.dark table.dataTable thead tr>.dtfc-fixed-left,html.dark table.dataTable thead tr>.dtfc-fixed-right,html.dark table.dataTable tfoot tr>.dtfc-fixed-left,html.dark table.dataTable tfoot tr>.dtfc-fixed-right{background-color:var(--dt-html-background)}html.dark table.dataTable tbody tr>.dtfc-fixed-left,html.dark table.dataTable tbody tr>.dtfc-fixed-right{background-color:var(--dt-html-background)}html.dark div.dtfc-left-top-blocker,html.dark div.dtfc-right-top-blocker{background-color:var(--dt-html-background)} 2 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.fixedHeader.min.css: -------------------------------------------------------------------------------- 1 | table.fixedHeader-floating{background-color:white}table.fixedHeader-floating.no-footer{border-bottom-width:0}table.fixedHeader-locked{position:absolute !important;background-color:white}@media print{table.fixedHeader-floating{display:none}}html.dark table.fixedHeader-floating{background-color:var(--dt-html-background)}html.dark table.fixedHeader-locked{background-color:var(--dt-html-background)} 2 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.keyTable.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable tbody th.focus,table.dataTable tbody td.focus{outline:2px solid #36f;outline-offset:-2px}table.dataTable tbody tr.selected th.focus,table.dataTable tbody tr.selected td.focus{outline-color:#03c}div.dtk-focus-alt table.dataTable tbody th.focus,div.dtk-focus-alt table.dataTable tbody td.focus{outline:2px solid #ff8b33;outline-offset:-2px}html.dark table.dataTable tbody th.focus,html.dark table.dataTable tbody td.focus{outline-color:rgb(13, 110, 253)}html.dark table.dataTable tbody tr.selected th.focus,html.dark table.dataTable tbody tr.selected td.focus{outline-color:#0143a3}html.dark div.dtk-focus-alt table.dataTable tbody th.focus,html.dark div.dtk-focus-alt table.dataTable tbody td.focus{outline-color:#ff8b33} 2 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.rowGroup.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable tr.dtrg-group th{background-color:rgba(0, 0, 0, 0.1);text-align:left}table.dataTable tr.dtrg-group.dtrg-level-0 th{font-weight:bold}table.dataTable tr.dtrg-group.dtrg-level-1 th,table.dataTable tr.dtrg-group.dtrg-level-2 th,table.dataTable tr.dtrg-group.dtrg-level-3 th,table.dataTable tr.dtrg-group.dtrg-level-4 th,table.dataTable tr.dtrg-group.dtrg-level-5 th{background-color:rgba(0, 0, 0, 0.05);padding-top:.25em;padding-bottom:.25em;padding-left:2em;font-size:.9em}table.dataTable tr.dtrg-group.dtrg-level-2 th{background-color:rgba(0, 0, 0, 0.01);padding-left:2.5em}table.dataTable tr.dtrg-group.dtrg-level-3 th{background-color:rgba(0, 0, 0, 0.01);padding-left:3em}table.dataTable tr.dtrg-group.dtrg-level-4 th{background-color:rgba(0, 0, 0, 0.01);padding-left:3.5em}table.dataTable tr.dtrg-group.dtrg-level-5 th{background-color:rgba(0, 0, 0, 0.01);padding-left:4em}html.dark table.dataTable tr.dtrg-group th{background-color:rgba(255, 255, 255, 0.1)}html.dark table.dataTable tr.dtrg-group.dtrg-level-1 th{background-color:rgba(255, 255, 255, 0.05)}html.dark table.dataTable tr.dtrg-group.dtrg-level-2 th,html.dark table.dataTable tr.dtrg-group.dtrg-level-3 th,html.dark table.dataTable tr.dtrg-group.dtrg-level-4 th,html.dark table.dataTable tr.dtrg-group.dtrg-level-5 th{background-color:rgba(255, 255, 255, 0.01)} 2 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.rowReorder.min.css: -------------------------------------------------------------------------------- 1 | div.dt-rowReorder-float-parent{table-layout:fixed;outline:2px solid rgb(10, 89, 203);z-index:2001;position:absolute !important;overflow:hidden;border-radius:3px}div.dt-rowReorder-float-parent table.dt-rowReorder-float{opacity:.9;background-color:white;margin:0 !important}div.dt-rowReorder-float-parent.drop-not-allowed{cursor:not-allowed}tr.dt-rowReorder-moving{outline:2px solid #888;outline-offset:-2px}body.dt-rowReorder-noOverflow{overflow-x:hidden}table.dataTable td.reorder{text-align:center;cursor:move}html.dark div.dt-rowReorder-float-parent{outline-color:rgb(110, 168, 254)}html.dark div.dt-rowReorder-float-parent table.dt-rowReorder-float{background-color:var(--dt-html-background)}html.dark tr.dt-rowReorder-moving{outline-color:#aaa} 2 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.scroller.min.css: -------------------------------------------------------------------------------- 1 | div.dts{display:block !important}div.dts tbody th,div.dts tbody td{white-space:nowrap}div.dts div.dts_loading{z-index:1}div.dts div.dts_label{position:absolute;right:20px;background:rgba(0, 0, 0, 0.8);color:white;box-shadow:3px 3px 10px rgba(0, 0, 0, 0.5);text-align:right;border-radius:3px;padding:.4em;z-index:2;display:none}div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.025), rgba(0, 0, 0, 0.025) 10px, rgba(0, 0, 0, 0) 10px, rgba(0, 0, 0, 0) 20px)}div.dts div.dataTables_scrollBody table{background-color:white;z-index:2}div.dts div.dataTables_paginate,div.dts div.dataTables_length{display:none}html.dark div.dts div.dts_label{background:rgba(255, 255, 255, 0.8);color:black}html.dark div.dts div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 10px, rgba(255, 255, 255, 0) 10px, rgba(255, 255, 255, 0) 20px)}html.dark div.dts div.dataTables_scrollBody table{background-color:var(--dt-html-background);z-index:2} 2 | -------------------------------------------------------------------------------- /Resources/CSS/dataTables.searchHighlight.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | table.dataTable span.highlight { 4 | background-color: #FFFF88; 5 | border-radius: 0.28571429rem; 6 | } 7 | 8 | table.dataTable span.column_highlight { 9 | background-color: #ffcc99; 10 | border-radius: 0.28571429rem; 11 | } 12 | -------------------------------------------------------------------------------- /Resources/CSS/datatables.SearchFade.min.css: -------------------------------------------------------------------------------- 1 | .notMatched td{opacity:.2} 2 | -------------------------------------------------------------------------------- /Resources/CSS/datatables.noscript.css: -------------------------------------------------------------------------------- 1 | table { 2 | border-collapse: collapse; 3 | box-sizing: border-box; 4 | width: 100%; 5 | } 6 | 7 | table td { 8 | border-width: 1px; 9 | padding: 4px; 10 | text-align: left; 11 | border-top: 1px solid #ddd; 12 | } 13 | 14 | table thead th { 15 | text-align: center; 16 | font-weight: bold; 17 | padding: 4px 17px; 18 | border-bottom: 1px solid #111; 19 | background-color: white; 20 | color: black; 21 | } 22 | 23 | table tfoot th { 24 | text-align: center; 25 | font-weight: bold; 26 | padding: 4px 17px; 27 | border-top: 1px solid #111; 28 | background-color: white; 29 | color: black; 30 | } 31 | 32 | table tr:nth-of-type(odd) { 33 | background-color: #F6F6F5; 34 | } 35 | 36 | table tr:nth-of-type(even) { 37 | background-color: white; 38 | } 39 | 40 | table td, table th { 41 | border: 1px solid black; 42 | } -------------------------------------------------------------------------------- /Resources/CSS/datatables.simplify.css: -------------------------------------------------------------------------------- 1 | table.simplify { 2 | border-collapse: collapse; 3 | box-sizing: border-box; 4 | width: 100%; 5 | margin: 5px; 6 | } 7 | 8 | table.simplify td { 9 | border-width: 1px; 10 | padding: 4px; 11 | text-align: left; 12 | border-top: 1px solid #ddd; 13 | } 14 | 15 | table.simplify thead th { 16 | text-align: center; 17 | font-weight: bold; 18 | padding: 4px 17px; 19 | border-bottom: 1px solid #111; 20 | background-color: white; 21 | color: black; 22 | } 23 | 24 | table.simplify tfoot th { 25 | text-align: center; 26 | font-weight: bold; 27 | padding: 4px 17px; 28 | border-top: 1px solid #111; 29 | background-color: white; 30 | color: black; 31 | } 32 | 33 | table.simplify tr:nth-of-type(odd) { 34 | background-color: #F6F6F5; 35 | } 36 | 37 | table.simplify tr:nth-of-type(even) { 38 | background-color: white; 39 | } -------------------------------------------------------------------------------- /Resources/CSS/toasts.css: -------------------------------------------------------------------------------- 1 | .toast { 2 | text-align: left; 3 | padding: 10px 5px 10px 5px; 4 | background-color: #fff; 5 | border-radius: 4px; 6 | top: 0px; 7 | position: relative; 8 | box-shadow: 1px 7px 14px -5px rgba(0, 0, 0, 0.2); 9 | margin: 5px; 10 | } 11 | 12 | .toastBorderLeft { 13 | content: ""; 14 | position: absolute; 15 | top: 0; 16 | left: 0; 17 | width: 4px; 18 | height: 100%; 19 | border-top-left-radius: 4px; 20 | border-bottom-left-radius: 4px; 21 | } 22 | 23 | .toastBorderRight { 24 | content: ""; 25 | position: absolute; 26 | top: 0; 27 | right: 0; 28 | width: 4px; 29 | height: 100%; 30 | border-top-right-radius: 4px; 31 | border-bottom-right-radius: 4px; 32 | } 33 | 34 | .toastIcon { 35 | position: absolute; 36 | top: 35%; 37 | left: 12px; 38 | transform: translateY(-50%); 39 | width: 14px; 40 | height: 14px; 41 | padding: 7px; 42 | border-radius: 50%; 43 | display: inline-block; 44 | } 45 | 46 | .toastContent { 47 | padding-left: 70px; 48 | padding-right: 60px; 49 | } 50 | 51 | .toastTextHeader { 52 | color: #3e3e3e; 53 | font-weight: 700; 54 | margin-top: 0; 55 | margin-bottom: 8px; 56 | font-size: 16px !important; 57 | } 58 | 59 | .toastText { 60 | font-size: 14px; 61 | margin-top: 0; 62 | margin-bottom: 0; 63 | color: #878787; 64 | font-size: 14px !important; 65 | } -------------------------------------------------------------------------------- /Resources/CSS/vis-network.find.css: -------------------------------------------------------------------------------- 1 | .searchButton { 2 | padding: 5px 5px; 3 | /* Some padding */ 4 | border: none; 5 | /* marging between the buttons and input */ 6 | margin-left: 5px; 7 | /* No border */ 8 | cursor: pointer; 9 | /* Pointer/hand icon */ 10 | border-radius: 3px; 11 | /* Rounded corners */ 12 | font-size: 8pt; 13 | } 14 | 15 | .searchInput { 16 | padding: 6px; 17 | font-size: 8pt; 18 | border: 1px solid #ccc; 19 | border-radius: 3px; 20 | } 21 | 22 | .searchDiagram { 23 | position: absolute; 24 | top: 5px; 25 | right: 5px; 26 | z-index: 100; 27 | display: flex; 28 | transform: translate(-5px, 5px); 29 | } -------------------------------------------------------------------------------- /Resources/CSS/winbox.modern.min.css: -------------------------------------------------------------------------------- 1 | @keyframes popup{0%{transform:scale(.8)}to{transform:scale(1)}}.winbox.modern{background:linear-gradient(90deg,#ff00f0,#0050ff);border-radius:12px 12px 0 0;animation:popup .3s cubic-bezier(.3,1,.3,1) forwards}.winbox.modern:not(.min,.focus){background:#666}@media (hover:hover){.winbox.modern.min:not(:hover){background:#666}.winbox.modern .wb-control *{opacity:.65}.winbox.modern .wb-control :hover{opacity:1}}@media (hover:none){.winbox.modern.min{background:#666}}.winbox.modern.max{border-radius:0}.winbox.modern .wb-title{font-size:13px;text-transform:uppercase;font-weight:600}.winbox.modern .wb-body{margin:4px;color:#fff;background:#131820}.winbox.modern .wb-body::-webkit-scrollbar{width:12px;height:12px}.winbox.modern .wb-body::-webkit-scrollbar-track{background:0 0}.winbox.modern .wb-body::-webkit-scrollbar-thumb{border-radius:10px;background:#263040}.winbox.modern .wb-body::-webkit-scrollbar-thumb:window-inactive{background:#181f2a}.winbox.modern .wb-body::-webkit-scrollbar-corner{background:0 0} -------------------------------------------------------------------------------- /Resources/CSS/winbox.white.min.css: -------------------------------------------------------------------------------- 1 | .winbox.white{background:#fff}.winbox.white .wb-title{color:#000}.winbox.white .wb-control{filter:invert(1)} -------------------------------------------------------------------------------- /Resources/Images/Other/Alternate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/Images/Other/Alternate.jpg -------------------------------------------------------------------------------- /Resources/Images/Other/Blank.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/Images/Other/Blank.jpg -------------------------------------------------------------------------------- /Resources/Images/Other/Corporate.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/Images/Other/Corporate.jpg -------------------------------------------------------------------------------- /Resources/Images/Other/PowerShell.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/Images/Other/PowerShell.jpg -------------------------------------------------------------------------------- /Resources/Images/Other/Sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/Images/Other/Sample.jpg -------------------------------------------------------------------------------- /Resources/Images/Other/external-site.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/Images/Other/external-site.gif -------------------------------------------------------------------------------- /Resources/JS/ResizeImage.js: -------------------------------------------------------------------------------- 1 | // Takes a data URI and returns the Data URI corresponding to the resized image at the wanted size. 2 | function resizedataURL(datas, wantedWidth, wantedHeight) { 3 | // We create an image to receive the Data URI 4 | var img = document.createElement("img"); 5 | 6 | // When the event "onload" is triggered we can resize the image. 7 | img.onload = function () { 8 | // We create a canvas and get its context. 9 | var canvas = document.createElement("canvas"); 10 | var ctx = canvas.getContext("2d"); 11 | 12 | // We set the dimensions at the wanted size. 13 | canvas.width = wantedWidth; 14 | canvas.height = wantedHeight; 15 | 16 | // We resize the image with the canvas method drawImage(); 17 | ctx.drawImage(this, 0, 0, wantedWidth, wantedHeight); 18 | 19 | var dataURI = canvas.toDataURL(); 20 | 21 | ///////////////////////////////////////// 22 | // Use and treat your Data URI here !! // 23 | ///////////////////////////////////////// 24 | }; 25 | 26 | // We put the Data URI in the image's src attribute 27 | img.src = datas; 28 | } 29 | // Use it like that : resizedataURL('yourDataURIHere', 50, 50); 30 | -------------------------------------------------------------------------------- /Resources/JS/Sortable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/JS/Sortable.js -------------------------------------------------------------------------------- /Resources/JS/accordionSummary.js: -------------------------------------------------------------------------------- 1 | //hint: hold shift while opening to keep more than 1 open 2 | let ds = [...document.querySelectorAll('details')]; 3 | ds.forEach(d => d.addEventListener('click', e => e.shiftKey || ds.filter(i => i != d).forEach(i => i.removeAttribute('open')))) -------------------------------------------------------------------------------- /Resources/JS/enlighterjs-footer.js: -------------------------------------------------------------------------------- 1 | EnlighterJS.init("pre", "code", { 2 | language: "powershell", // - use javascript as default language 3 | theme: "enlighter", // - use theme "enlighter" as default theme 4 | indent: 2 // - replace tabs with 2 spaces 5 | }); -------------------------------------------------------------------------------- /Resources/JS/escapeRegex.js: -------------------------------------------------------------------------------- 1 | function escapeRegExp(string) { 2 | return string.toString().replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string 3 | }; -------------------------------------------------------------------------------- /Resources/JS/momentDateText.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | $('.reportDate').each(function () { 3 | var dateValue = $(this).data('reportdate'); 4 | var momentFormat = $(this).data('format'); 5 | var fromNowEnabled = $(this).data('fromnow') === true || $(this).data('fromnow') === 'true'; 6 | 7 | // First parse with the canonical format 8 | var parsedDate = moment(dateValue, "YYYY-MM-DD HH:mm:ss"); 9 | 10 | if (parsedDate.isValid()) { 11 | // If fromNow is enabled, append relative time 12 | if (fromNowEnabled) { 13 | var fromNow = parsedDate.fromNow(); 14 | $(this).append(' (' + fromNow + ')'); 15 | } 16 | } else { 17 | console.log('Invalid date:', dateValue); 18 | } 19 | }); 20 | }); -------------------------------------------------------------------------------- /Resources/JS/sectionScrolling.js: -------------------------------------------------------------------------------- 1 | window.addEventListener('DOMContentLoaded', () => { 2 | const observer = new IntersectionObserver(entries => { 3 | entries.forEach(entry => { 4 | const id = entry.target.getAttribute('id'); 5 | if (entry.intersectionRatio > 0) { 6 | document.querySelector(`nav li a[href="#${id}"]`).parentElement.classList.add('active'); 7 | } else { 8 | document.querySelector(`nav li a[href="#${id}"]`).parentElement.classList.remove('active'); 9 | } 10 | }); 11 | }); 12 | 13 | // Track all sections that have an `id` applied 14 | document.querySelectorAll('section[id]').forEach((section) => { 15 | observer.observe(section); 16 | }); 17 | }); -------------------------------------------------------------------------------- /Resources/JS/tabbisAdditional.js: -------------------------------------------------------------------------------- 1 | var tabs = tabbis.init({ 2 | tabGroup: "[data-tabs]", 3 | paneGroup: "[data-panes]", 4 | tabActive: "active", 5 | paneActive: "active", 6 | callback: function (tab, pane) { 7 | // console.log("TAB id:" + tab.id + pane.id + tableid); 8 | // this makes sure to refresh tables on given tab change to make sure they have buttons and everything 9 | // which tab has which table 10 | findObjectsToRedraw(tab.id + "-Content"); 11 | } 12 | }); 13 | 14 | // in theory should take care of removing local storage for tabbis 15 | // some errors occurs if the local storage is not cleaned after a while 16 | window.addEventListener("unload", tabbis.remove, false); 17 | -------------------------------------------------------------------------------- /Resources/JS/winbox.support.js: -------------------------------------------------------------------------------- 1 | function showWinBox(options) { 2 | new WinBox(options) 3 | } -------------------------------------------------------------------------------- /Resources/Maps/russia/russia.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvotecIT/PSWriteHTML/34df0ea9eb2dc37fb34887519d7e8bda6bc696da/Resources/Maps/russia/russia.js --------------------------------------------------------------------------------