Skip to content

Commit bcaebc3

Browse files
authored
Merge branch 'vnext' into rkaraivanov/textarea-samples
2 parents 8101a35 + 1b805b8 commit bcaebc3

File tree

3,375 files changed

+1261364
-478993
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,375 files changed

+1261364
-478993
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# code owners must approve PRs
2-
* @HUSSAR-mtrela
2+
# * @HUSSAR-mtrela
33

44
# *.md @HUSSAR-mtrela
55
# *.js @HUSSAR-mtrela

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ This repository contains over 300 examples on how to use [Ignite UI for Web ](ht
4242
[Multi-Column Combobox](https://www.infragistics.com/products/ignite-ui-web-components/web-components/components/editors/multi-column-combobox)
4343

4444

45+
## Branches
46+
47+
> **_NOTE:_** You should use [master](https://github.com/IgniteUI/igniteui-wc-examples/tree/master) branch of this repository if you want to run samples on your computer. Use the [vnext](https://github.com/IgniteUI/igniteui-wc-examples/tree/vnext) branch only when you want to contribute new samples to this repository.
48+
4549
## Preview
4650

4751
You can preview and browse all samples in this repository by opening our [Web Components Browser](https://www.infragistics.com/webcomponents-demos/samples/index). Alternatively, you you can view these samples with detailed information in our [Web Component Documentation](https://infragistics.com/webcomponentssite/components/general-getting-started.html).
@@ -56,6 +60,7 @@ In addition, you can run each sample project individually from the [./samples](.
5660
To set up this project locally, clone this repository:
5761
```
5862
git clone https://github.com/IgniteUI/igniteui-wc-examples.git
63+
git checkout master
5964
```
6065

6166
## Running Individual Sample

azure-pipelines/build-pipeline.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ trigger:
44
- vnext
55
- master
66
- btraykov/azure-pipeline
7-
pr:
8-
branches:
9-
exclude:
10-
- '*' # must quote since "*" is a YAML reserved character; we want a string
7+
8+
# This pipeline is meant to build specific branches for deployment. It's not meant to be a part of PR validation.
9+
pr: none
10+
1111
parameters:
1212
- name: isVerbose
1313
displayName: 'Get verbose output from steps - where configurable'
@@ -34,17 +34,25 @@ stages:
3434
inputs:
3535
command: 'custom'
3636
workingDir: '$(Build.SourcesDirectory)'
37-
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
38-
customEndpoint: 'internal proget'
37+
customCommand: 'config -L project set @infragistics:registry=http://proget.infragistics.local:81/npm/IgniteUILicensed/'
38+
customEndpoint: 'internal licensed proget'
3939

4040
- task: Npm@1
4141
displayName: 'npm ci --legacy-peer-deps'
4242
inputs:
4343
command: custom
4444
workingDir: '$(Build.SourcesDirectory)'
45-
verbose: ${{ parameters.isVerbose }}
46-
customCommand: ci --legacy-peer-deps
45+
customCommand: 'ci --legacy-peer-deps'
46+
customEndpoint: 'internal licensed proget'
4747

48+
- task: Npm@1
49+
displayName: 'Register licensed npm registry in .npmrc'
50+
inputs:
51+
command: 'custom'
52+
workingDir: '$(Build.SourcesDirectory)'
53+
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
54+
customEndpoint: 'public proget'
55+
4856
- task: PowerShell@2
4957
displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
5058
inputs:
@@ -95,4 +103,4 @@ stages:
95103
displayName: 'Publish pipeline artifact'
96104
inputs:
97105
targetPath: '$(Build.ArtifactStagingDirectory)/WebComponentsSamples.zip'
98-
artifact: 'WebComponentsSamplesBrowser'
106+
artifact: 'WebComponentsSamplesBrowser'

browser/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ This browser application allows you to browse all samples of the [IgniteUI for W
3838
[Date Picker](https://www.infragistics.com/products/ignite-ui-web-components/web-components/components/editors/date-picker),
3939
[Multi-Column Combobox](https://www.infragistics.com/products/ignite-ui-web-components/web-components/components/editors/multi-column-combobox)
4040

41+
## Branches
42+
43+
> **_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.
44+
4145
# Instructions
4246

4347
Follow these instructions to run all samples locally in a browser application.

browser/public/index.html

Lines changed: 158 additions & 0 deletions
Large diffs are not rendered by default.

browser/src/router.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ export class Router {
5858
private displaySample(sample: any) {
5959
let tagName = sample.htmlTagName;
6060
this._targetEle.innerHTML = `<${tagName} class="sample-content"></${tagName}>`;
61+
this._targetEle.addEventListener('wheel', this.preventDocumentScroll, { passive: false });
6162
}
6263

6364
private public_url = "";
6465

6566
public async navigateToRoute(route: string) {
6667
let navBarIsHidden: boolean = true;
6768

69+
// clear event listener before routing to a new sample
70+
this._targetEle.removeEventListener('wheel', this.preventDocumentScroll);
71+
6872
if (route.indexOf("/webcomponents-demos") === 0) {
6973
this.public_url = "/webcomponents-demos";
7074
route = route.substring("/webcomponents-demos".length);
@@ -162,4 +166,10 @@ export class Router {
162166
// }
163167
}
164168

169+
private preventDocumentScroll(event:any) {
170+
if (event.target.outerHTML.toLowerCase().includes('igx')) {
171+
event.preventDefault();
172+
}
173+
}
174+
165175
}

browser/tasks/gulp-samples.js

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,21 @@ var sampleSources = [
7070
// '!' + igConfig.SamplesCopyPath + '/grids/tree/**/package.json',
7171
// '!' + igConfig.SamplesCopyPath + '/grids/tree-grid/**/package.json',
7272
'!' + igConfig.SamplesCopyPath + '/grids/tree-grid/row-styles/package.json', // BUG webTreeGridRowStylesHandler does not export
73+
74+
// '!' + igConfig.SamplesCopyPath + '/grids/tree-grid/editing-lifecycle/package.json', // BUG TS2339: Property 'cancel' does not exist on type 'IgcGridEditEventArgs'.
75+
// '!' + igConfig.SamplesCopyPath + '/grids/tree-grid/multi-column-headers-export/package.json', // BUG Module '"igniteui-webcomponents-grids/grids"' has no exported member 'IgcExporterEventEventArgs'.
76+
// '!' + igConfig.SamplesCopyPath + '/grids/tree-grid/multi-column-headers-overview/package.json', // BUG Property 'treegrid' does not exist on type 'TreeGridMultiColumnHeadersOverview'. Did you mean 'treeGrid'?
77+
// '!' + igConfig.SamplesCopyPath + '/grids/tree-grid/multi-column-headers-overview/package.json', // BUG Type 'IgcTreeGridComponent' is missing the following properties from type 'IgcGridComponent':
78+
// '!' + igConfig.SamplesCopyPath + '/grids/tree-grid/multi-column-headers-overview/package.json', // BUG: Type 'IgcTreeGridComponent' is not assignable to type 'IgcGridComponent'.
79+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/keyboard-custom-navigation/package.json', // BUG export 'GridKeydownTargetType' (imported as 'GridKeydownTargetType') was not found in 'igniteui-webcomponents-grids/grids'
80+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/cascading-combo/package.json', // BUG Cannot find name 'CodeGenHelper'.
81+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/editing-events/package.json', // BUG Property 'cancel' does not exist on type 'IgcGridEditEventArgs'.
82+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/editing-lifecycle/package.json', // BUG Property 'cancel' does not exist on type 'IgcGridEditEventArgs'.
83+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/keyboard-custom-navigation/package.json', // BUG Property 'event' does not exist on type 'IgcGridKeydownEventArgs'.
84+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/keyboard-custom-navigation/package.json', // BUG 'GridKeydownTargetType' only refers to a type, but is being used as a value here.
85+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/keyboard-mrl-navigation/package.json', // BUG Property 'event' does not exist on type 'IgcGridKeydownEventArgs'.
86+
// '!' + igConfig.SamplesCopyPath + '/grids/grid/multi-column-headers-export/package.json', // BUG Module '"igniteui-webcomponents-grids/grids"' has no exported member 'IgcExporterEventEventArgs'.
87+
7388
// '!' + igConfig.SamplesCopyPath + '/grids/grid/**/package.json',
7489
// '!' + igConfig.SamplesCopyPath + '/grids/pivot-grid/**/package.json',
7590
// '!' + igConfig.SamplesCopyPath + '/editors/**/package.json',
@@ -960,20 +975,20 @@ function updateIG(cb) {
960975
// { name: "igniteui-webcomponents-core", version: "3.2.2" }, // PUBLIC NPM
961976
let packageUpgrades = [
962977
// these IG packages are often updated:
963-
{ name: "igniteui-webcomponents-core" , version: "4.3.1" },
964-
{ name: "igniteui-webcomponents-charts" , version: "4.3.1" },
965-
{ name: "igniteui-webcomponents-excel" , version: "4.3.1" },
966-
{ name: "igniteui-webcomponents-gauges" , version: "4.3.1" },
967-
{ name: "igniteui-webcomponents-grids" , version: "4.3.1" },
968-
{ name: "igniteui-webcomponents-inputs" , version: "4.3.1" },
969-
{ name: "igniteui-webcomponents-layouts" , version: "4.3.1" },
970-
{ name: "igniteui-webcomponents-maps" , version: "4.3.1" },
971-
{ name: "igniteui-webcomponents-spreadsheet-chart-adapter", version: "4.3.1" },
972-
{ name: "igniteui-webcomponents-spreadsheet" , version: "4.3.1" },
973-
{ name: "igniteui-webcomponents-datasources" , version: "4.3.1" },
978+
{ name: "igniteui-webcomponents-core" , version: "4.8.1-alpha.0" },
979+
{ name: "igniteui-webcomponents-charts" , version: "4.8.1-alpha.0" },
980+
{ name: "igniteui-webcomponents-excel" , version: "4.8.1-alpha.0" },
981+
{ name: "igniteui-webcomponents-gauges" , version: "4.8.1-alpha.0" },
982+
{ name: "igniteui-webcomponents-grids" , version: "4.8.1-alpha.0" },
983+
{ name: "igniteui-webcomponents-inputs" , version: "4.8.1-alpha.0" },
984+
{ name: "igniteui-webcomponents-layouts" , version: "4.8.1-alpha.0" },
985+
{ name: "igniteui-webcomponents-maps" , version: "4.8.1-alpha.0" },
986+
{ name: "igniteui-webcomponents-spreadsheet-chart-adapter", version: "4.8.1-alpha.0" },
987+
{ name: "igniteui-webcomponents-spreadsheet" , version: "4.8.1-alpha.0" },
988+
{ name: "igniteui-webcomponents-datasources" , version: "4.8.1-alpha.0" },
974989
// these IG packages are sometimes updated:
975-
{ name: "igniteui-webcomponents", version: "4.5.0" },
976-
{ name: "igniteui-dockmanager", version: "1.14.2" },
990+
{ name: "igniteui-webcomponents", version: "4.8.0" },
991+
{ name: "igniteui-dockmanager", version: "1.14.3" },
977992
// other packages:
978993
{ name: "webpack", version: "^5.74.0" },
979994
{ name: "webpack-cli", version: "^4.10.0" },

browser/templates/sample/ReadMe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,17 @@ This folder contains implementation of {PlatformName} application with example o
2121
</body>
2222
</html>
2323

24+
## Branches
25+
26+
> **_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.
27+
2428
## Instructions
2529

2630
To set up this project locally, execute these commands:
2731

2832
```
2933
git clone {RepositoryUrl}.git
34+
git checkout master
3035
cd ./{RepositoryName}
3136
cd {SampleFolderPath}
3237
```

0 commit comments

Comments
 (0)