Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
098220c
exported latest xplat samples
HUSSAR-mtrela Aug 25, 2023
520e82f
Merge pull request #60 from IgniteUI/mt-export-xplat
HUSSAR-mtrela Aug 25, 2023
e819b9f
fix issue #59
HUSSAR-mtrela Sep 1, 2023
54518c1
Merge pull request #63 from IgniteUI/mt-expo-fixes
HUSSAR-mtrela Sep 1, 2023
588118a
mdd-update-23.2.18
mddifilippo89 Sep 19, 2023
8d716be
Custom chart samples for Angular
agoldenbaum Sep 19, 2023
a7111a5
fixed package and gulp script
HUSSAR-mtrela Sep 20, 2023
3c9f44d
Merge pull request #64 from IgniteUI/mdd-update-packages
HUSSAR-mtrela Sep 20, 2023
aea5321
update-readme-script
HUSSAR-mtrela Sep 20, 2023
75ebf83
Merge pull request #66 from IgniteUI/mt/update-readme-script
HUSSAR-mtrela Sep 20, 2023
ba9eb5b
Update package.json
HUSSAR-mtrela Sep 21, 2023
9c02547
Update package.json
HUSSAR-mtrela Sep 21, 2023
865f30a
Merge pull request #65 from IgniteUI/arg-custom-chart-samples
HUSSAR-mtrela Sep 21, 2023
0c5497f
sort-packages
HUSSAR-mtrela Sep 29, 2023
a1c7f6f
Merge pull request #67 from IgniteUI/mt/sort-packages
HUSSAR-mtrela Sep 29, 2023
f360c76
update and sort packages
HUSSAR-mtrela Sep 29, 2023
5b95ff5
Merge pull request #68 from IgniteUI/mt/beta-packages
HUSSAR-mtrela Sep 29, 2023
2a54310
Update README.md
HUSSAR-mtrela Oct 6, 2023
d8dbd9b
Merge pull request #69 from IgniteUI/mt/readme
HUSSAR-mtrela Oct 6, 2023
88cef2c
sort packages
HUSSAR-mtrela Oct 18, 2023
eebcb2a
Merge pull request #70 from IgniteUI/mt/sort-packages2
HUSSAR-mtrela Oct 18, 2023
20993de
export new samples
HUSSAR-mtrela Oct 18, 2023
a4a4758
Merge pull request #71 from IgniteUI/mt/export-sample-oct
HUSSAR-mtrela Oct 18, 2023
41d8a03
updated readme files
HUSSAR-mtrela Oct 19, 2023
a587e32
Merge pull request #72 from IgniteUI/mt/readme2
HUSSAR-mtrela Oct 19, 2023
5a9520e
mdd-update-angular17 (#73)
mddifilippo89 Nov 13, 2023
138afa2
updated plat specific samples to angular-17 (#85)
mddifilippo89 Nov 17, 2023
e6336a8
Adding changes from build igniteui-xplat-examples-output+PRs_2023.11.…
azure-pipelines[bot] Nov 20, 2023
21836dd
Azure DevOps build pipeline (#84)
HUSSAR-mtrela Nov 21, 2023
cedbd1f
Adding changes from build igniteui-xplat-examples-output+PRs_2023.12.…
azure-pipelines[bot] Dec 13, 2023
6c149e4
mdd-fix-casing-issue-manually (#89)
mddifilippo89 Dec 14, 2023
e6a599b
Adding changes from build igniteui-xplat-examples-output+PRs_2023.12.…
azure-pipelines[bot] Dec 19, 2023
9bd47eb
fix gulp scripts
HUSSAR-mtrela Jan 3, 2024
544f892
gen readme
HUSSAR-mtrela Jan 3, 2024
cfc2267
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.3…
azure-pipelines[bot] Jan 3, 2024
0f59cbc
Merge pull request #95 from IgniteUI/mt/release-updates
HUSSAR-mtrela Jan 3, 2024
2990320
Try using node 18 for compatibility with Angular 17
turbobobbytraykov Jan 4, 2024
eb1a95f
Add runtime-settable verbosity of npm steps
turbobobbytraykov Jan 4, 2024
e35f7e1
Merge pull request #96 from IgniteUI/btraykov-try-node-18
HUSSAR-mtrela Jan 5, 2024
90c2360
gen readme
HUSSAR-mtrela Jan 5, 2024
dcc7bb8
gen stats
HUSSAR-mtrela Jan 5, 2024
8fccd7b
fixed auto-gen of FormatSpecifiers
HUSSAR-mtrela Jan 5, 2024
27d71fb
init arrays in sample info in gulpscript
HUSSAR-mtrela Jan 5, 2024
dabfd17
Merge pull request #100 from IgniteUI/mt-sample-fixes
HUSSAR-mtrela Jan 5, 2024
56d6257
mdd-redo-17.2.0-beta.0
mddifilippo89 Jan 5, 2024
d1e4205
Merge branch 'vnext' into mdd-redo-17.2.0-beta.0
HUSSAR-mtrela Jan 5, 2024
97a9a63
Merge pull request #101 from IgniteUI/mdd-redo-17.2.0-beta.0
HUSSAR-mtrela Jan 5, 2024
ca22966
sample cleanup script (#102)
HUSSAR-mtrela Jan 5, 2024
e01d8f5
Export chart highlighting sample (#104)
agoldenbaum Jan 9, 2024
5f0755f
Update Angular browser packages (#107)
agoldenbaum Jan 9, 2024
27e7a47
Update web components package (#108)
agoldenbaum Jan 9, 2024
1c1155d
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 12, 2024
f5f4531
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 12, 2024
5e62a9b
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 15, 2024
e81b100
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 15, 2024
bc72256
readme-files (#114)
HUSSAR-mtrela Jan 16, 2024
fa47f72
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 17, 2024
6fd7b85
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 18, 2024
fd7b449
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 18, 2024
72f7141
mdd-update-ig (#119)
mddifilippo89 Jan 18, 2024
a302d6a
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.1…
azure-pipelines[bot] Jan 19, 2024
afc5897
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.2…
azure-pipelines[bot] Jan 23, 2024
a989f49
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.2…
azure-pipelines[bot] Jan 23, 2024
7ecf2bb
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.2…
azure-pipelines[bot] Jan 25, 2024
f38b7f7
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.2…
azure-pipelines[bot] Jan 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/samples/**/node_modules/
/samples/**/package-lock.json
/samples/**/.angular
/samples/**/.git
# /samples-tmp/
# /samples-tmp/**/node_modules/

Expand All @@ -17,6 +18,7 @@
/browser/src/samples
/browser/src/assets/code-viewer/*.json
/browser/src/assets/samples/*.json
/browser/src/assets/stats.json
!/browser/src/assets/samples/meta.json
!/browser/src/assets/samples/shared.json
/browser/dist
Expand Down
45 changes: 40 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Examples of Ignite UI for Angular Components

This repository contains over 400 examples on how to use [Ignite UI for Angular](https://www.infragistics.com/products/ignite-ui-Angular/Angular/components/general-getting-started.html) components:
This repository contains an Angular browser app and 500+ examples on how to use [Ignite UI for Angular](https://www.infragistics.com/products/ignite-ui-Angular/Angular/components/general-getting-started.html) components:

- Charts:
[Area](https://www.infragistics.com/products/ignite-ui-angular/angular/components/charts/types/area-chart),
Expand All @@ -32,6 +32,12 @@ This repository contains over 400 examples on how to use [Ignite UI for Angular]
[Linear Gauge](https://www.infragistics.com/products/ignite-ui-angular/angular/components/linear-gauge.html),
[Radial Gauges](https://www.infragistics.com/products/ignite-ui-angular/angular/components/radial-gauge.html)

You can run each sample project individually from the ./samples folder or you can browse all samples in one website from the ./browser folder.

## Branches

> **_NOTE:_** You should use [master](https://github.com/IgniteUI/igniteui-angular-examples/tree/master) branch of this repository if you want to run samples on your computer. Use the [vnext](https://github.com/IgniteUI/igniteui-angular-examples/tree/vnext) branch only when you want to contribute new samples to this repository.

## Preview

You can preview and browse all samples in this repository by opening our [Angular Samples Browser](https://www.infragistics.com/angular-demos-dv/samples/). Alternatively, you you can view these samples with detailed information in our [Angular Help Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general-getting-started).
Expand All @@ -49,13 +55,17 @@ To set up this project locally, clone this repository:
git clone https://github.com/IgniteUI/igniteui-angular-examples.git
```


## Running Individual Sample

- check out the **master** branch

- in VS Code, open a folder with existing sample, e.g.
```
./samples/charts/category-chart/axis-options/
```
- type `npm install` command in terminal window
- type `npm install --legacy-peer-deps` command in terminal window

- type `npm run start` command in terminal window

- Wait until the build is completed and then open [http://localhost:4200](http://localhost:4200) in your browser.
Expand All @@ -65,11 +75,18 @@ At this point, you should see a website hosted example of [Ignite UI for Angular

## Running All Samples

- check out the **master** branch

- open VS Code as Administrator
- open the folder that contains this repository, e.g. `C:\GitHub\igniteui-angular-examples\`

- open the folder that contains this repository, e.g.
```CMD
C:\GitHub\igniteui-angular-examples\
```

- select **View** - **Terminal** menu item

- type `npm install` command in terminal window
- type `npm install --legacy-peer-deps` command in terminal window

This will install required packages and [Ignite UI for Angular](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general-getting-started) packages

Expand Down Expand Up @@ -108,7 +125,7 @@ Wait until the build is completed and then open [http://localhost:4200](http://l

- rename class to the name of .tsx file

- type `npm install` command in terminal window
- type `npm install --legacy-peer-deps` command in terminal window

- type `npm run start` command in terminal window

Expand Down Expand Up @@ -153,3 +170,21 @@ NOTE this will re-generate the Readme.md file in the new sample
## Learn More

To learn more about **Ignite UI for Angular** components, check out the [Angular documentation](https://www.infragistics.com/products/ignite-ui-Angular/Angular/components/general-getting-started.html).


# Updating Version of IgniteUI Packages

Perform these steps to update version of **Ignite UI for Angular** packages in all samples. NOTE that the order of these steps is very important.

- open this repo in VS Code
- open [browser.js](./browser/tasks/browser.js) file
- navigate to the `updateIG` function
- change version of **Ignite UI for Angular** packages in the `packageUpgrades` array
- open terminal window
- run `cd browser` command
- run `gulp updateIG` command
- run `npm install --legacy-peer-deps` command
- create pull request with your changes
- open the [Igniteui-xplat-example](https://github.com/IgniteUI/igniteui-xplat-examples) repo in VS Code
- update version of **Ignite UI for Angular** packages in [Angular template](https://github.com/IgniteUI/igniteui-xplat-examples/blob/23.2.x/editor-templates/Angular/main-template/package.json)
- create pull request with your changes in [Igniteui-xplat-example](https://github.com/IgniteUI/igniteui-xplat-examples) repo
78 changes: 78 additions & 0 deletions azure-pipelines/build-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
trigger:
branches:
include:
- 'vnext'
- 'btraykov-azure-pipeline'
- 'master'

# This pipeline is meant to run on changes pushed to the vnext branch only.
# If it runs on PRs, it will create PRs to the destination repos' vnext branches - we don't want that.
pr: none

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

parameters:
- name: isVerbose
displayName: 'Get verbose output from steps - where configurable'
type: boolean
default: false

pool:
name: BuildAgentOnPrem

jobs:
- job:
displayName: Build
workspace:
clean: resources
steps:
- checkout: self
clean: true
persistCredentials: true
path: igniteui-angular-examples # this is explicitly required by the samples browser build process

- task: NodeTool@0
inputs:
versionSource: 'spec'
versionSpec: '18.x'

- task: Npm@1
displayName: 'npm install'
inputs:
command: 'install'
workingDir: '$(Build.SourcesDirectory)\browser'
verbose: ${{ parameters.isVerbose }}

- task: PowerShell@2
displayName: 'Apply very special configuration'
inputs:
targetType: 'inline'
script: |
Write-Output $pwd

((Get-Content -Path package.json -Raw) -replace 'build --configuration production','build --configuration production --base-href=/angular-demos-dv/') | Set-Content -Path package.json
workingDirectory: '$(Build.SourcesDirectory)\browser'

- task: Npm@1
displayName: 'npm run build'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)\browser'
customCommand: 'run build'
verbose: ${{ parameters.isVerbose }}

- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)\browser'
Contents: 'web.config'
TargetFolder: '$(Build.SourcesDirectory)\browser\dist'
OverWrite: true

- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)\browser\dist'
artifact: 'dist'
publishLocation: 'pipeline'

# TODO Once the project can adhere to the IG Angular schematic,
# use it or use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed)
7 changes: 4 additions & 3 deletions browser/.browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not > 0.5%
not last 2 versions
not dead
IE 9-11 # For IE 9-11 support, remove 'not'.
not IE 9-11
Safari >=15
35 changes: 22 additions & 13 deletions browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,31 @@

# Browser App for Angular Components

This browser application allows you to browse all samples of the [Ignite UI for Angular](https://www.infragistics.com/products/ignite-ui-Angular/Angular/components/general-getting-started.html) in a single website.
The **browser** folder contains an Angular app for browsing 500+ examples of [Ignite UI for Angular](https://www.infragistics.com/products/ignite-ui-Angular/Angular/components/general-getting-started.html) components.

## Setup
To setup the project run:

```
npm install
```
## Branches

To start the dev server (including IE support) run:
> **_NOTE:_** You should use [master](https://github.com/IgniteUI/igniteui-angular-examples/tree/master) branch of this repository if you want to run samples on your computer. Use the [vnext](https://github.com/IgniteUI/igniteui-angular-examples/tree/vnext) branch only when you want to contribute new samples to this repository.

```
npm run start
```

## Running with the DocFX project
## Instructions

Follow these instructions to run and browse all samples:

- open VS Code as Administrator

- open the folder that contains this repository, e.g. `C:\GitHub\igniteui-angular-examples\`

- select **View** - **Terminal** menu item

- type `npm install --legacy-peer-deps` command in terminal window

This will install required packages and [Ignite UI for Angular](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general-getting-started) packages

- type `npm run start` command in terminal window to start this application locally

Note this application copies all individually sample projects from [./samples](./samples) to [./browser/src](./browser/src) folder when it is about to start running. Therefore, any changes to [./browser/src](./browser/src) will be overridden on consecutive run of the application.

Wait until the build is completed and then open [http://localhost:4200](http://localhost:4200) in your browser. You should see a website with navigation menu for browning all samples in this repository.

In order to combine the execution of both [DocFX](https://github.com/IgniteUI/igniteui-docfx) and Ignite UI Angular Samples projects, use `npm run start`.
After starting both projects you will see the embed samples into the DocFX site builder, under `localhost:port` hostname.
15 changes: 9 additions & 6 deletions browser/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
Expand All @@ -16,7 +17,10 @@
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js",
"hammerjs"
],
"assets": [
"src/assets",
"src/assets/favicon.ico"
Expand Down Expand Up @@ -45,7 +49,6 @@
}
],
"optimization": true,
"aot": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
Expand Down Expand Up @@ -74,21 +77,21 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "my-app:build"
"buildTarget": "my-app:build"
},
"configurations": {
"production": {
"browserTarget": "my-app:build:production"
"buildTarget": "my-app:build:production"
},
"es5": {
"browserTarget": "my-app:build:es5"
"buildTarget": "my-app:build:es5"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "my-app:build"
"buildTarget": "my-app:build"
}
},
"test": {
Expand Down
2 changes: 2 additions & 0 deletions browser/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ gulp.task('updateBrowser', gulp.series(
browser.findSamples,
browser.copySamples,
browser.updateCodeViewer,
browser.updateReadme,
browser.generateStats,
// browser.copyBootstrapCss,
));
Expand Down Expand Up @@ -89,6 +90,7 @@ gulp.task('updateSamples', gulp.series(
browser.updateSamples
));

gulp.task('cleanSamples', browser.cleanSamples);

gulp.task('updateIG', browser.updateIG);
gulp.task('copyBootstrapCss', browser.copyBootstrapCss);
Expand Down
Loading