Skip to content

Commit

Permalink
Fixes #1045
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Sep 24, 2019
1 parent e063638 commit d661d17
Show file tree
Hide file tree
Showing 35 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/avatar.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function New-UDMuAvatar {
param(
[Parameter ()][string]$Id = (New-Guid).ToString(),
[Parameter ()][string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter ()][string]$Image,
[Parameter ()][string]$Alt,
[Parameter ()][string]$ClassName,
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/button.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function New-UDMuButton {
[string]$Href,

[Parameter()]
[string]$Id = (New-Guid).ToString()
[string]$Id = ([Guid]::NewGuid()).ToString()

)

Expand Down
14 changes: 7 additions & 7 deletions src/UniversalDashboard.MaterialUI/Scripts/card.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function New-UDMuCard {
[CmdletBinding()]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[string]$ClassName,
Expand Down Expand Up @@ -111,7 +111,7 @@ function New-UDMuCardToolbar {
[CmdletBinding()]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[string]$ClassName,
Expand Down Expand Up @@ -171,7 +171,7 @@ function New-UDMuCardHeader {
[CmdletBinding()]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[string]$ClassName,
Expand Down Expand Up @@ -229,7 +229,7 @@ function New-UDMuCardBody {
[CmdletBinding()]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[string]$ClassName,
Expand Down Expand Up @@ -288,7 +288,7 @@ function New-UDMuCardExpand {
[CmdletBinding()]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[string]$ClassName,
Expand Down Expand Up @@ -345,7 +345,7 @@ function New-UDMuCardFooter {
[CmdletBinding()]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[string]$ClassName,
Expand Down Expand Up @@ -401,7 +401,7 @@ function New-UDMuCardMedia {
[OutputType([Hashtable])]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[ValidateSet("img", "video", "audio")]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/checkbox.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function New-UDMuCheckBox {
[string]$LabelPlacement,

[Parameter(Position = 8)]
[string]$Id = (New-Guid).ToString()
[string]$Id = ([Guid]::NewGuid()).ToString()

)

Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/chips.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function New-UDMuChip {
[CmdletBinding(DefaultParameterSetName = 'Icon')]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter(Position = 0)]
[string]$Label,
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/icon-button.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDIconButton {
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter ()]
[PSTypeName('UniversalDashboard.Icon')]$Icon,
[Parameter ()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/link.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function New-UDMuLink {
param(
[Parameter (HelpMessage="Enter id for this object")][string]$Id = (New-Guid).ToString(),
[Parameter (HelpMessage="Enter id for this object")][string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter (HelpMessage="Enter url, this can be remote or local")][string]$url,
[Parameter (HelpMessage="Show line under the text or content")]
[ValidateSet('none','hover','always')][string]$underline = "none",
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard.MaterialUI/Scripts/list.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function New-UDMuList {
param(
[Parameter ()][string]$Id = (New-Guid).ToString(),
[Parameter ()][string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter ()][scriptblock]$Content,
[Parameter ()][string]$SubHeader,
[Parameter ()][Hashtable]$Style
Expand All @@ -24,7 +24,7 @@ function New-UDMuList {
function New-UDMuListItem {
[CmdletBinding()]
param(
[Parameter ()][string]$Id = (New-Guid).ToString(),
[Parameter ()][string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter ()][ValidateSet("Icon","Avatar")][string]$AvatarType,
[Parameter ()][object]$OnClick,
[Parameter ()][switch]$IsButton,
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/paper.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function New-UDMuPaper {
param(
[Parameter()][string]$Id = (New-Guid).ToString(),
[Parameter()][string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter()][ScriptBlock]$Content,
[Parameter()][switch]$IsEndPoint,
[Parameter()][string]$Width = '500',
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/pdf.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDPdf {
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[string]$FilePath
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.MaterialUI/Scripts/typography.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function New-UDMuTypography {
[CmdletBinding(DefaultParameterSetName = "text")]
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),

[Parameter()]
[ValidateSet ("h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "caption", "button", "overline", "srOnly", "inherit", "display4", "display3", "display2", "display1", "headline", "title", "subheading")]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/button.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDButton {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
$Text,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/card.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function New-UDCard {
[CmdletBinding(DefaultParameterSetName = 'text')]
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
[String]$Title,
[Parameter(ParameterSetName = 'content')]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/checkbox.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDCheckbox {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
$Label,
[Parameter()]
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Scripts/collapsible.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDCollapsible {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter(Mandatory = $true, Position = 0)]
[ScriptBlock]$Items,
[Parameter()]
Expand Down Expand Up @@ -33,7 +33,7 @@ function New-UDCollapsibleItem {
[CmdletBinding(DefaultParameterSetName = "content")]
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
[String]$Title,
[Parameter()]
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Scripts/collection.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDCollection {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
[ScriptBlock]$Content,
[Parameter()]
Expand Down Expand Up @@ -43,7 +43,7 @@ function New-UDCollectionItem {
[CmdletBinding(DefaultParameterSetName = 'content')]
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
[ScriptBlock]$Content,
[Parameter(ParameterSetName = 'content')]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/column.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function New-UDColumn {
[CmdletBinding(DefaultParameterSetName = 'content')]
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),

[Parameter()]
[Alias('Size')]
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Scripts/fab.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDFab {
param(
[Parameter()]
[string] $Id = (New-Guid),
[string] $Id = ([Guid]::NewGuid()),
[Parameter()]
[ScriptBlock]$Content,
[Parameter()]
Expand Down Expand Up @@ -61,7 +61,7 @@ function New-UDFab {
function New-UDFabButton {
param(
[Parameter()]
[string] $Id = (New-Guid),
[string] $Id = ([Guid]::NewGuid()),
[Parameter()]
[UniversalDashboard.Models.DashboardColor]$ButtonColor,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/grid-layout.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDGridLayout {
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter()]
[int]$RowHeight = 30,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/grid.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDGrid {
param(
[Parameter()]
[string]$Id = (New-Guid),
[string]$Id = ([Guid]::NewGuid()),
[Parameter()]
[string]$Title,
[Parameter()]
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Scripts/image-carousel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function New-UDImageCarousel {
[Parameter()]
[ScriptBlock]$Items,
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter()]
[switch]$ShowIndicators,
[Parameter()]
Expand Down Expand Up @@ -63,7 +63,7 @@ function New-UDImageCarouselItem {
[Parameter()]
[string]$TextPosition,
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter()]
[string]$Title,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/link.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDLink {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
[string]$Text,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/radio.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDRadio {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
[String]$Label,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/row.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function New-UDRow {
[CmdletBinding(DefaultParameterSetName = 'static')]
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter(ParameterSetName = "static", Position = 0)]
[ScriptBlock]$Columns,
[Parameter(ParameterSetName = "dynamic")]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/select.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDSelect {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
[ScriptBlock]$Option,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/switch.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDSwitch {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
$OnText = "On",
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard.Materialize/Scripts/table.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDTable {
param(
[Parameter()]
[string]$Id = (New-Guid),
[string]$Id = ([Guid]::NewGuid()),
[Parameter()]
[string]$Title,
[Parameter(Mandatory = $true)]
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Scripts/tabs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function New-UDTabContainer {
[Parameter(Mandatory, ParameterSetName = "Static")]
[ScriptBlock]$Tabs,
[Parameter()]
[string]$Id = (New-Guid).ToString()
[string]$Id = ([Guid]::NewGuid()).ToString()
)

End {
Expand All @@ -24,7 +24,7 @@ function New-UDTab {
[Parameter(Mandatory, ParameterSetName = "static")]
[ScriptBlock]$Content,
[Parameter()]
[string]$Id = (New-Guid).ToString()
[string]$Id = ([Guid]::NewGuid()).ToString()
)

End {
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard/Controls/src/heading.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDHeading {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter(ParameterSetName = "Content")]
[ScriptBlock]$Content,
[Parameter(ParameterSetName = "Text")]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard/Controls/src/icon.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDIcon {
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[string]$Id = ([Guid]::NewGuid()).ToString(),
[Parameter()]
[UniversalDashboard.Models.FontAwesomeIcons]$Icon,
[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard/Controls/src/iframe.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function New-UDIFrame {
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter()]
$Uri
)
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard/Controls/src/image.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function New-UDImage {
[CmdletBinding(DefaultParameterSetName = 'url')]
param(
[Parameter()]
[String]$Id = (New-Guid),
[String]$Id = ([Guid]::NewGuid()),
[Parameter(ParameterSetName = 'url')]
[String]$Url,
[Parameter(ParameterSetName = 'path')]
Expand Down
Loading

0 comments on commit d661d17

Please sign in to comment.