From 1d7704970c628140d0eb8aea9babb83146e87985 Mon Sep 17 00:00:00 2001
From: m-akinc <7282195+m-akinc@users.noreply.github.com>
Date: Tue, 7 May 2024 17:36:45 -0500
Subject: [PATCH 1/9] Add Spright rectangle to Angular example (#2081)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
# Pull Request
## 🤨 Rationale
Part of #1977
## 👩💻 Implementation
Straightforward
## 🧪 Testing
App runs and works correctly.
## ✅ Checklist
- [x] I have updated the project documentation to reflect my changes or
determined no changes are needed.
---
.../projects/example-client-app/src/app/app.module.ts | 2 ++
.../src/app/customapp/customapp.component.html | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/angular-workspace/projects/example-client-app/src/app/app.module.ts b/angular-workspace/projects/example-client-app/src/app/app.module.ts
index ebb6a1467a..fb5eb64535 100644
--- a/angular-workspace/projects/example-client-app/src/app/app.module.ts
+++ b/angular-workspace/projects/example-client-app/src/app/app.module.ts
@@ -28,6 +28,7 @@ import { NimbleTableColumnDurationTextModule } from '@ni/nimble-angular/table-co
import { NimbleRichTextViewerModule } from '@ni/nimble-angular/rich-text/viewer';
import { NimbleRichTextEditorModule } from '@ni/nimble-angular/rich-text/editor';
import { NimbleRichTextMentionUsersModule } from '@ni/nimble-angular/rich-text-mention/users';
+import { SprightRectangleModule } from '@ni/spright-angular/rectangle';
import { AppComponent } from './app.component';
import { CustomAppComponent } from './customapp/customapp.component';
import { HeaderComponent } from './header/header.component';
@@ -100,6 +101,7 @@ import { HeaderComponent } from './header/header.component';
NimbleMappingUserModule,
NimbleRichTextMentionUsersModule,
NimbleMappingSpinnerModule,
+ SprightRectangleModule,
RouterModule.forRoot(
[
{ path: '', redirectTo: '/customapp', pathMatch: 'full' },
diff --git a/angular-workspace/projects/example-client-app/src/app/customapp/customapp.component.html b/angular-workspace/projects/example-client-app/src/app/customapp/customapp.component.html
index 7f50decebc..a2bc7ee1d5 100644
--- a/angular-workspace/projects/example-client-app/src/app/customapp/customapp.component.html
+++ b/angular-workspace/projects/example-client-app/src/app/customapp/customapp.component.html
@@ -412,5 +412,9 @@
+
+
Rectangle (Spright)
+
Spright!
+
From 4f3336686f0c26bacbbb2a25232bc70a7e623fcf Mon Sep 17 00:00:00 2001
From: m-akinc <7282195+m-akinc@users.noreply.github.com>
Date: Tue, 7 May 2024 18:53:08 -0500
Subject: [PATCH 2/9] Add Spright rectangle component to Blazor example (#2080)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
# Pull Request
## 🤨 Rationale
Part of #1977
## 👩💻 Implementation
Added the rectangle element to the bottom of the component in
`Demo.Shared`. Nothing really noteworthy to point out.
## 🧪 Testing
Ran all of the example projects and made sure things rendered properly.
## ✅ Checklist
- [x] I have updated the project documentation to reflect my changes or
determined no changes are needed.
---------
Co-authored-by: Milan Raj
---
...mble-blazor-b9a4025f-2fd1-4b3e-8295-540f02450064.json | 7 +++++++
...ight-blazor-6664d301-7c3b-4c3a-bb31-86a2c805dfbf.json | 7 +++++++
.../Examples/Demo.Client/packages.lock.json | 9 ++++++++-
.../Examples/Demo.Client/wwwroot/index.html | 2 +-
.../Examples/Demo.Hybrid/packages.lock.json | 9 ++++++++-
.../Examples/Demo.Hybrid/wwwroot/index.html | 3 ++-
.../Examples/Demo.Server/Pages/_Layout.cshtml | 2 +-
.../Examples/Demo.Server/packages.lock.json | 9 ++++++++-
.../Examples/Demo.Shared/Demo.Shared.csproj | 1 +
.../Examples/Demo.Shared/Pages/ComponentsDemo.razor | 4 ++++
.../blazor-workspace/Examples/Demo.Shared/_Imports.razor | 1 +
.../Examples/Demo.Shared/packages.lock.json | 6 ++++++
.../blazor-workspace/NimbleBlazor/NimbleBlazor.csproj | 8 ++++++--
.../blazor-workspace/SprightBlazor/SprightBlazor.csproj | 8 ++++++--
14 files changed, 66 insertions(+), 10 deletions(-)
create mode 100644 change/@ni-nimble-blazor-b9a4025f-2fd1-4b3e-8295-540f02450064.json
create mode 100644 change/@ni-spright-blazor-6664d301-7c3b-4c3a-bb31-86a2c805dfbf.json
diff --git a/change/@ni-nimble-blazor-b9a4025f-2fd1-4b3e-8295-540f02450064.json b/change/@ni-nimble-blazor-b9a4025f-2fd1-4b3e-8295-540f02450064.json
new file mode 100644
index 0000000000..ac970ed11b
--- /dev/null
+++ b/change/@ni-nimble-blazor-b9a4025f-2fd1-4b3e-8295-540f02450064.json
@@ -0,0 +1,7 @@
+{
+ "type": "none",
+ "comment": "Add Spright rectangle component to Blazor example",
+ "packageName": "@ni/nimble-blazor",
+ "email": "7282195+m-akinc@users.noreply.github.com",
+ "dependentChangeType": "none"
+}
diff --git a/change/@ni-spright-blazor-6664d301-7c3b-4c3a-bb31-86a2c805dfbf.json b/change/@ni-spright-blazor-6664d301-7c3b-4c3a-bb31-86a2c805dfbf.json
new file mode 100644
index 0000000000..493d382221
--- /dev/null
+++ b/change/@ni-spright-blazor-6664d301-7c3b-4c3a-bb31-86a2c805dfbf.json
@@ -0,0 +1,7 @@
+{
+ "type": "none",
+ "comment": "Add Spright rectangle component to Blazor example",
+ "packageName": "@ni/spright-blazor",
+ "email": "7282195+m-akinc@users.noreply.github.com",
+ "dependentChangeType": "none"
+}
diff --git a/packages/blazor-workspace/Examples/Demo.Client/packages.lock.json b/packages/blazor-workspace/Examples/Demo.Client/packages.lock.json
index a4df66bdb9..0a65346a98 100644
--- a/packages/blazor-workspace/Examples/Demo.Client/packages.lock.json
+++ b/packages/blazor-workspace/Examples/Demo.Client/packages.lock.json
@@ -340,7 +340,8 @@
"dependencies": {
"Microsoft.AspNetCore.Components.Web": "[6.*, )",
"NI.CSharp.Analyzers": "[2.0.21, 2.0.21]",
- "NimbleBlazor": "[1.0.0, )"
+ "NimbleBlazor": "[1.0.0, )",
+ "SprightBlazor": "[1.0.0, )"
}
},
"nimbleblazor": {
@@ -348,6 +349,12 @@
"dependencies": {
"Microsoft.AspNetCore.Components.Web": "[6.0.29, )"
}
+ },
+ "sprightblazor": {
+ "type": "Project",
+ "dependencies": {
+ "Microsoft.AspNetCore.Components.Web": "[6.0.29, )"
+ }
}
},
"net6.0/browser-wasm": {
diff --git a/packages/blazor-workspace/Examples/Demo.Client/wwwroot/index.html b/packages/blazor-workspace/Examples/Demo.Client/wwwroot/index.html
index 7efddcf383..8e912f7278 100644
--- a/packages/blazor-workspace/Examples/Demo.Client/wwwroot/index.html
+++ b/packages/blazor-workspace/Examples/Demo.Client/wwwroot/index.html
@@ -20,7 +20,7 @@
Reload
🗙
-
+