From 835a96d3435cf51aa2672a1743cb1368fb00c711 Mon Sep 17 00:00:00 2001
From: Brandy Carney <6577830+brandyscarney@users.noreply.github.com>
Date: Wed, 18 Dec 2024 19:06:58 -0500
Subject: [PATCH 1/3] docs(picker): update angular to standalone
---
.../controller/angular/example_component_ts.md | 2 ++
.../inline/isOpen/angular/example_component_ts.md | 2 ++
.../inline/trigger/angular/example_component_ts.md | 2 ++
.../angular/example_component_ts.md | 2 ++
.../picker/basic/angular/example_component_html.md | 11 +++++++++++
.../picker/basic/angular/example_component_ts.md | 11 +++++++++++
static/usage/v8/picker/basic/index.md | 11 +++++++++--
.../picker/modal/angular/example_component_ts.md | 10 ++++++++++
.../angular/example_component_html.md | 14 ++++++++++++++
.../prefix-suffix/angular/example_component_ts.md | 11 +++++++++++
static/usage/v8/picker/prefix-suffix/index.md | 11 +++++++++--
11 files changed, 83 insertions(+), 4 deletions(-)
create mode 100644 static/usage/v8/picker/basic/angular/example_component_html.md
create mode 100644 static/usage/v8/picker/basic/angular/example_component_ts.md
create mode 100644 static/usage/v8/picker/prefix-suffix/angular/example_component_html.md
create mode 100644 static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md
diff --git a/static/usage/v7/picker/controller/angular/example_component_ts.md b/static/usage/v7/picker/controller/angular/example_component_ts.md
index 16f56cd0ca7..b24d969f9fc 100644
--- a/static/usage/v7/picker/controller/angular/example_component_ts.md
+++ b/static/usage/v7/picker/controller/angular/example_component_ts.md
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
+import { IonButton } from '@ionic/angular/standalone';
import { PickerController } from '@ionic/angular';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ imports: [IonButton],
})
export class ExampleComponent {
constructor(private pickerCtrl: PickerController) {}
diff --git a/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md b/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
index 69a5fb611aa..8ffd3a78435 100644
--- a/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
+++ b/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
@@ -1,9 +1,11 @@
```ts
import { Component } from '@angular/core';
+import { IonButton, IonPicker } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ imports: [IonButton, IonPicker],
})
export class ExampleComponent {
isPickerOpen = false;
diff --git a/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md b/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
index 7a638c60964..017da010e32 100644
--- a/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
+++ b/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
@@ -1,9 +1,11 @@
```ts
import { Component } from '@angular/core';
+import { IonButton, IonPicker } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ imports: [IonButton, IonPicker],
})
export class ExampleComponent {
public pickerColumns = [
diff --git a/static/usage/v7/picker/multiple-column/angular/example_component_ts.md b/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
index 6f252e19dc9..c0566ec7733 100644
--- a/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
+++ b/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
@@ -1,9 +1,11 @@
```ts
import { Component } from '@angular/core';
+import { IonButton, IonPicker } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ imports: [IonButton, IonPicker],
})
export class ExampleComponent {
public pickerColumns = [
diff --git a/static/usage/v8/picker/basic/angular/example_component_html.md b/static/usage/v8/picker/basic/angular/example_component_html.md
new file mode 100644
index 00000000000..c3f180464f4
--- /dev/null
+++ b/static/usage/v8/picker/basic/angular/example_component_html.md
@@ -0,0 +1,11 @@
+```html
+
+
+ --
+ Javascript
+ Typescript
+ Rust
+ C#
+
+
+```
diff --git a/static/usage/v8/picker/basic/angular/example_component_ts.md b/static/usage/v8/picker/basic/angular/example_component_ts.md
new file mode 100644
index 00000000000..53958c3c51d
--- /dev/null
+++ b/static/usage/v8/picker/basic/angular/example_component_ts.md
@@ -0,0 +1,11 @@
+```ts
+import { Component } from '@angular/core';
+import { IonPicker, IonPickerColumn, IonPickerColumnOption } from '@ionic/angular/standalone';
+
+@Component({
+ selector: 'app-example',
+ templateUrl: 'example.component.html',
+ imports: [IonPicker, IonPickerColumn, IonPickerColumnOption],
+})
+export class ExampleComponent {}
+```
diff --git a/static/usage/v8/picker/basic/index.md b/static/usage/v8/picker/basic/index.md
index ded2d4fe4b3..57c99c522c9 100644
--- a/static/usage/v8/picker/basic/index.md
+++ b/static/usage/v8/picker/basic/index.md
@@ -1,7 +1,9 @@
import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
-import angular from './angular.md';
+
+import angular_example_component_html from './angular/example_component_html.md';
+import angular_example_component_ts from './angular/example_component_ts.md';
import react from './react.md';
import vue from './vue.md';
@@ -11,7 +13,12 @@ import vue from './vue.md';
javascript,
react,
vue,
- angular,
+ angular: {
+ files: {
+ 'src/app/example.component.html': angular_example_component_html,
+ 'src/app/example.component.ts': angular_example_component_ts,
+ },
+ },
}}
src="usage/v8/picker/basic/demo.html"
size="medium"
diff --git a/static/usage/v8/picker/modal/angular/example_component_ts.md b/static/usage/v8/picker/modal/angular/example_component_ts.md
index 406b87a5af2..72ecb6a854e 100644
--- a/static/usage/v8/picker/modal/angular/example_component_ts.md
+++ b/static/usage/v8/picker/modal/angular/example_component_ts.md
@@ -1,10 +1,20 @@
```ts
import { Component } from '@angular/core';
+import {
+ IonButton,
+ IonButtons,
+ IonModal,
+ IonPicker,
+ IonPickerColumn,
+ IonPickerColumnOption,
+ IonToolbar,
+} from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: './example.component.html',
styleUrls: ['./example.component.css'],
+ imports: [IonButton, IonButtons, IonModal, IonPicker, IonPickerColumn, IonPickerColumnOption, IonToolbar],
})
export class ExampleComponent {
currentValue = 'javascript';
diff --git a/static/usage/v8/picker/prefix-suffix/angular/example_component_html.md b/static/usage/v8/picker/prefix-suffix/angular/example_component_html.md
new file mode 100644
index 00000000000..2505b4d1a26
--- /dev/null
+++ b/static/usage/v8/picker/prefix-suffix/angular/example_component_html.md
@@ -0,0 +1,14 @@
+```html
+
+
+ $
+ --
+ 1
+ 2
+ 3
+ 4
+ 5
+ USD
+
+
+```
diff --git a/static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md b/static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md
new file mode 100644
index 00000000000..53958c3c51d
--- /dev/null
+++ b/static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md
@@ -0,0 +1,11 @@
+```ts
+import { Component } from '@angular/core';
+import { IonPicker, IonPickerColumn, IonPickerColumnOption } from '@ionic/angular/standalone';
+
+@Component({
+ selector: 'app-example',
+ templateUrl: 'example.component.html',
+ imports: [IonPicker, IonPickerColumn, IonPickerColumnOption],
+})
+export class ExampleComponent {}
+```
diff --git a/static/usage/v8/picker/prefix-suffix/index.md b/static/usage/v8/picker/prefix-suffix/index.md
index af398fd03a6..0b50e1e63a1 100644
--- a/static/usage/v8/picker/prefix-suffix/index.md
+++ b/static/usage/v8/picker/prefix-suffix/index.md
@@ -1,7 +1,9 @@
import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
-import angular from './angular.md';
+
+import angular_example_component_html from './angular/example_component_html.md';
+import angular_example_component_ts from './angular/example_component_ts.md';
import react from './react.md';
import vue from './vue.md';
@@ -11,7 +13,12 @@ import vue from './vue.md';
javascript,
react,
vue,
- angular,
+ angular: {
+ files: {
+ 'src/app/example.component.html': angular_example_component_html,
+ 'src/app/example.component.ts': angular_example_component_ts,
+ },
+ },
}}
src="usage/v8/picker/prefix-suffix/demo.html"
size="medium"
From fc313418f094ecec49ebe2cab7b117d0eb748b4d Mon Sep 17 00:00:00 2001
From: Brandy Carney <6577830+brandyscarney@users.noreply.github.com>
Date: Fri, 20 Dec 2024 15:12:05 -0500
Subject: [PATCH 2/3] docs(picker): update angular to standalone
---
.../usage/v7/picker/controller/angular/example_component_ts.md | 1 +
.../v7/picker/inline/isOpen/angular/example_component_ts.md | 1 +
.../v7/picker/inline/trigger/angular/example_component_ts.md | 1 +
.../v7/picker/multiple-column/angular/example_component_ts.md | 1 +
static/usage/v8/picker/basic/angular/example_component_ts.md | 1 +
.../v8/picker/prefix-suffix/angular/example_component_ts.md | 1 +
6 files changed, 6 insertions(+)
diff --git a/static/usage/v7/picker/controller/angular/example_component_ts.md b/static/usage/v7/picker/controller/angular/example_component_ts.md
index b24d969f9fc..77eb0f08604 100644
--- a/static/usage/v7/picker/controller/angular/example_component_ts.md
+++ b/static/usage/v7/picker/controller/angular/example_component_ts.md
@@ -6,6 +6,7 @@ import { PickerController } from '@ionic/angular';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ styleUrls: ['example.component.css'],
imports: [IonButton],
})
export class ExampleComponent {
diff --git a/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md b/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
index 8ffd3a78435..bdf81973591 100644
--- a/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
+++ b/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
@@ -5,6 +5,7 @@ import { IonButton, IonPicker } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ styleUrls: ['example.component.css'],
imports: [IonButton, IonPicker],
})
export class ExampleComponent {
diff --git a/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md b/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
index 017da010e32..52939e998dd 100644
--- a/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
+++ b/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
@@ -5,6 +5,7 @@ import { IonButton, IonPicker } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ styleUrls: ['example.component.css'],
imports: [IonButton, IonPicker],
})
export class ExampleComponent {
diff --git a/static/usage/v7/picker/multiple-column/angular/example_component_ts.md b/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
index c0566ec7733..a85699deba7 100644
--- a/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
+++ b/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
@@ -5,6 +5,7 @@ import { IonButton, IonPicker } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ styleUrls: ['example.component.css'],
imports: [IonButton, IonPicker],
})
export class ExampleComponent {
diff --git a/static/usage/v8/picker/basic/angular/example_component_ts.md b/static/usage/v8/picker/basic/angular/example_component_ts.md
index 53958c3c51d..a2519198b50 100644
--- a/static/usage/v8/picker/basic/angular/example_component_ts.md
+++ b/static/usage/v8/picker/basic/angular/example_component_ts.md
@@ -5,6 +5,7 @@ import { IonPicker, IonPickerColumn, IonPickerColumnOption } from '@ionic/angula
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ styleUrls: ['example.component.css'],
imports: [IonPicker, IonPickerColumn, IonPickerColumnOption],
})
export class ExampleComponent {}
diff --git a/static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md b/static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md
index 53958c3c51d..a2519198b50 100644
--- a/static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md
+++ b/static/usage/v8/picker/prefix-suffix/angular/example_component_ts.md
@@ -5,6 +5,7 @@ import { IonPicker, IonPickerColumn, IonPickerColumnOption } from '@ionic/angula
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
+ styleUrls: ['example.component.css'],
imports: [IonPicker, IonPickerColumn, IonPickerColumnOption],
})
export class ExampleComponent {}
From 5babb95bbc540ce4452fa048486f44ca12692c29 Mon Sep 17 00:00:00 2001
From: Brandy Carney <6577830+brandyscarney@users.noreply.github.com>
Date: Thu, 26 Dec 2024 16:57:50 -0500
Subject: [PATCH 3/3] docs(picker): update angular to standalone
---
.../controller/angular/example_component_ts.md | 3 +--
.../isOpen/angular/example_component_ts.md | 9 ++++++++-
.../trigger/angular/example_component_ts.md | 9 ++++++++-
.../angular/example_component_ts.md | 17 ++++++++++++++++-
static/usage/v8/picker/basic/angular.md | 11 -----------
static/usage/v8/picker/prefix-suffix/angular.md | 14 --------------
.../angular/example_component_ts.md | 12 ++++++++++++
.../v8/picker/theming/css-properties/index.md | 2 ++
8 files changed, 47 insertions(+), 30 deletions(-)
delete mode 100644 static/usage/v8/picker/basic/angular.md
delete mode 100644 static/usage/v8/picker/prefix-suffix/angular.md
create mode 100644 static/usage/v8/picker/theming/css-properties/angular/example_component_ts.md
diff --git a/static/usage/v7/picker/controller/angular/example_component_ts.md b/static/usage/v7/picker/controller/angular/example_component_ts.md
index 77eb0f08604..35edd60c597 100644
--- a/static/usage/v7/picker/controller/angular/example_component_ts.md
+++ b/static/usage/v7/picker/controller/angular/example_component_ts.md
@@ -1,7 +1,6 @@
```ts
import { Component } from '@angular/core';
-import { IonButton } from '@ionic/angular/standalone';
-import { PickerController } from '@ionic/angular';
+import { IonButton, PickerController } from '@ionic/angular/standalone';
@Component({
selector: 'app-example',
diff --git a/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md b/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
index bdf81973591..9bd0236210c 100644
--- a/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
+++ b/static/usage/v7/picker/inline/isOpen/angular/example_component_ts.md
@@ -2,6 +2,13 @@
import { Component } from '@angular/core';
import { IonButton, IonPicker } from '@ionic/angular/standalone';
+interface PickerValue {
+ languages: {
+ text: string;
+ value: string;
+ };
+}
+
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
@@ -42,7 +49,7 @@ export class ExampleComponent {
},
{
text: 'Confirm',
- handler: (value) => {
+ handler: (value: PickerValue) => {
console.log(`You selected: ${value.languages.value}`);
},
},
diff --git a/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md b/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
index 52939e998dd..3af371232cf 100644
--- a/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
+++ b/static/usage/v7/picker/inline/trigger/angular/example_component_ts.md
@@ -2,6 +2,13 @@
import { Component } from '@angular/core';
import { IonButton, IonPicker } from '@ionic/angular/standalone';
+interface PickerValue {
+ languages: {
+ text: string;
+ value: string;
+ };
+}
+
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
@@ -40,7 +47,7 @@ export class ExampleComponent {
},
{
text: 'Confirm',
- handler: (value) => {
+ handler: (value: PickerValue) => {
console.log(`You selected: ${value.languages.value}`);
},
},
diff --git a/static/usage/v7/picker/multiple-column/angular/example_component_ts.md b/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
index a85699deba7..f2e223cceff 100644
--- a/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
+++ b/static/usage/v7/picker/multiple-column/angular/example_component_ts.md
@@ -2,6 +2,21 @@
import { Component } from '@angular/core';
import { IonButton, IonPicker } from '@ionic/angular/standalone';
+interface PickerValue {
+ meat: {
+ text: string;
+ value: string;
+ };
+ veggies: {
+ text: string;
+ value: string;
+ };
+ crust: {
+ text: string;
+ value: string;
+ };
+}
+
@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
@@ -70,7 +85,7 @@ export class ExampleComponent {
},
{
text: 'Confirm',
- handler: (value) => {
+ handler: (value: PickerValue) => {
console.log(`You selected a ${value.crust.text} pizza with ${value.meat.text} and ${value.veggies.text}`);
},
},
diff --git a/static/usage/v8/picker/basic/angular.md b/static/usage/v8/picker/basic/angular.md
deleted file mode 100644
index c3f180464f4..00000000000
--- a/static/usage/v8/picker/basic/angular.md
+++ /dev/null
@@ -1,11 +0,0 @@
-```html
-
-
- --
- Javascript
- Typescript
- Rust
- C#
-
-
-```
diff --git a/static/usage/v8/picker/prefix-suffix/angular.md b/static/usage/v8/picker/prefix-suffix/angular.md
deleted file mode 100644
index 2505b4d1a26..00000000000
--- a/static/usage/v8/picker/prefix-suffix/angular.md
+++ /dev/null
@@ -1,14 +0,0 @@
-```html
-
-
- $
- --
- 1
- 2
- 3
- 4
- 5
- USD
-
-
-```
diff --git a/static/usage/v8/picker/theming/css-properties/angular/example_component_ts.md b/static/usage/v8/picker/theming/css-properties/angular/example_component_ts.md
new file mode 100644
index 00000000000..a2519198b50
--- /dev/null
+++ b/static/usage/v8/picker/theming/css-properties/angular/example_component_ts.md
@@ -0,0 +1,12 @@
+```ts
+import { Component } from '@angular/core';
+import { IonPicker, IonPickerColumn, IonPickerColumnOption } from '@ionic/angular/standalone';
+
+@Component({
+ selector: 'app-example',
+ templateUrl: 'example.component.html',
+ styleUrls: ['example.component.css'],
+ imports: [IonPicker, IonPickerColumn, IonPickerColumnOption],
+})
+export class ExampleComponent {}
+```
diff --git a/static/usage/v8/picker/theming/css-properties/index.md b/static/usage/v8/picker/theming/css-properties/index.md
index 29f6db3c1c9..1c5abe28947 100644
--- a/static/usage/v8/picker/theming/css-properties/index.md
+++ b/static/usage/v8/picker/theming/css-properties/index.md
@@ -4,6 +4,7 @@ import javascript from './javascript.md';
import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_css from './angular/example_component_css.md';
+import angular_example_component_ts from './angular/example_component_ts.md';
import vue from './vue.md';
@@ -25,6 +26,7 @@ import react_main_css from './react/main_css.md';
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.css': angular_example_component_css,
+ 'src/app/example.component.ts': angular_example_component_ts,
},
},
}}