Skip to content

Commit 0358999

Browse files
HUSSAR-mtrelamddifilippo89IMinchev64IGvaleriesagoldenbaum
authored
RELEASE - 25.2 push to production (#964)
* Update index.tsx * refactor(grids): change cell merging samples grid height (#949) * update packages for 25.2 release (#953) * mdd-fix-nav-interaction (#954) * mdd-fix-nav-interaction #939 * Update package-lock.json --------- Co-authored-by: HUSSAR-mtrela (Martin Trela) <[email protected]> * User Annotation Layer sample for React (#956) * Mdd update bing map with enterprise key (#958) * mdd-update-with-enterprise-key-dialog mdd-update-with-enterprise-key-dialog * mdd-update-bing-maps mdd-update-bing-maps * mdd-update mdd-update * mdd-fix-build-error (#959) * mdd-fix-build-error mdd-fix-build-error reduce all the extra tile series to keep sample clean * Update index.tsx * Update index.tsx * mdd-update-display-all-peer-review mdd-update-display-all-peer-review * Update index.tsx * Update index.tsx * mdd-update-root-bing-display-all (#961) mdd-update-root-bing-display-all * mdd-fix-custom-imagery-navigation (#962) mdd-fix-custom-imagery-navigation * Initial plan * Add grid-lite package and create all 13 sample components Co-authored-by: ChronosSF <[email protected]> * Add package.json files for all grid-lite samples and regenerate routing Co-authored-by: ChronosSF <[email protected]> * Remove all ReadMe.md files generated by gulp task Co-authored-by: ChronosSF <[email protected]> * fix(grid-lite): some basic fixes from import * Use React version of Dock Manager in the samples (#957) * fix(dockmanager): update all dock manager samples to use IgrDockManager * fix(grid-lite): applying various fixes for the grid-lite samples * fix(grid-lite): reintroducing intrinsic elements defs for grid-lite * fix(grid-lite): multiple grid-lite fixes (#965) * fix(cd): fixing build pipeline to not replace packages wrongly * fix(checkbox, radio, switch): add gap for wrapper on sample level * refactor(checkbox, radio, switch): align with blazor samples --------- Co-authored-by: mddifilippo89 <[email protected]> Co-authored-by: IMinchev <[email protected]> Co-authored-by: IGvaleries <[email protected]> Co-authored-by: Andrew Goldenbaum <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: ChronosSF <[email protected]> Co-authored-by: Stamen Stoychev <[email protected]> Co-authored-by: Maria Tsvyatkova <[email protected]> Co-authored-by: Bozhidara Pachilova <[email protected]> Co-authored-by: Vasya Kacheshmarova <[email protected]>
1 parent 2675701 commit 0358999

File tree

1,083 files changed

+12089
-5483
lines changed

Some content is hidden

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

1,083 files changed

+12089
-5483
lines changed

azure-pipelines/build-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ stages:
9999
targetType: 'inline'
100100
script: |
101101
Get-ChildItem -Include "*.tsx","*.ts" -Recurse | `
102-
ForEach { (Get-Content $_.PSPath | ForEach { ($_ -replace '([from|import])\s?[''"](igniteui-[react|dockmanager].*)[''"]', '$1 "@infragistics/$2"') }) | `
102+
ForEach { (Get-Content $_.PSPath | ForEach { ($_ -replace '(from|import)\s?[''"](igniteui-(react|dockmanager).*)[''"]', '$1 "@infragistics/$2"') }) | `
103103
Set-Content $_.PSPath }
104104
105105
- task: PowerShell@2

browser/config-overrides.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ module.exports = function override(config, env) {
180180
chunks: 'all',
181181
},
182182
igniteuiDockmanager: {
183-
test: /[\\/]node_modules[\\/](igniteui-dockmanager)[\\/]/,
184-
name: 'igniteui-dockmanager',
183+
test: /[\\/]node_modules[\\/](igniteui-react-dockmanager)[\\/]/,
184+
name: 'igniteui-react-dockmanager',
185185
chunks: 'all',
186186
}
187187
};

browser/package-lock.json

Lines changed: 817 additions & 2094 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

browser/package.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@
2424
"dompurify": "^3.3.0",
2525
"file-saver": "1.3.8",
2626
"igniteui-dockmanager": "^1.17.0",
27-
"igniteui-react": "^19.3.0",
28-
"igniteui-react-charts": "19.2.2",
29-
"igniteui-react-core": "19.2.2",
30-
"igniteui-react-dashboards": "19.2.2",
31-
"igniteui-react-data-grids": "19.2.2",
32-
"igniteui-react-datasources": "19.2.2",
33-
"igniteui-react-excel": "19.2.2",
34-
"igniteui-react-gauges": "19.2.2",
35-
"igniteui-react-grids": "^19.3.0",
36-
"igniteui-react-inputs": "19.2.2",
37-
"igniteui-react-layouts": "19.2.2",
38-
"igniteui-react-maps": "19.2.2",
39-
"igniteui-react-spreadsheet": "19.2.2",
40-
"igniteui-react-spreadsheet-chart-adapter": "19.2.2",
27+
"igniteui-grid-lite": "1.0.0-alpha.9",
28+
"igniteui-react": "^19.4.0-rc.4",
29+
"igniteui-react-charts": "19.3.0-beta.0",
30+
"igniteui-react-core": "19.3.0-beta.0",
31+
"igniteui-react-dashboards": "19.3.0-beta.0",
32+
"igniteui-react-data-grids": "19.3.0-beta.0",
33+
"igniteui-react-datasources": "19.3.0-beta.0",
34+
"igniteui-react-dockmanager": "^19.4.0-rc.4",
35+
"igniteui-react-excel": "19.3.0-beta.0",
36+
"igniteui-react-gauges": "19.3.0-beta.0",
37+
"igniteui-react-grids": "^19.4.0-rc.4",
38+
"igniteui-react-inputs": "19.3.0-beta.0",
39+
"igniteui-react-layouts": "19.3.0-beta.0",
40+
"igniteui-react-maps": "19.3.0-beta.0",
41+
"igniteui-react-spreadsheet": "19.3.0-beta.0",
42+
"igniteui-react-spreadsheet-chart-adapter": "19.3.0-beta.0",
4143
"igniteui-webcomponents": "^6.3.0",
4244
"lit-html": "^3.2.0",
4345
"marked": "^16.4.1",

browser/public/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"23.2.915","date":"2025-10-23 14:55:33","note":"this file is auto-generated"}
1+
{"version":"23.2.915","date":"2025-11-25 10:38:39","note":"this file is auto-generated"}

browser/src/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,3 @@ root.render(
3434
// Learn more about service workers: https://bit.ly/CRA-PWA
3535
RegisterServiceWorker();
3636
// serviceWorker.unregister();
37-
38-
// // copied from https://stenciljs.com/docs/react
39-
// import { applyPolyfills, defineCustomElements } from 'igniteui-dockmanager/loader';
40-
41-
// applyPolyfills().then(() => {
42-
// defineCustomElements();
43-
// });
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"23.2.915","date":"2025-10-23 14:55:33","note":"this file is auto-generated"}
1+
{"version":"23.2.915","date":"2025-11-25 10:38:39","note":"this file is auto-generated"}

browser/src/navigation/SamplesBrowser.tsx

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export class SamplesBrowser extends React.Component<any, any>
4141
public navLinks: any[] = [];
4242
public navRoutes: any[] = [];
4343
public navLookup: Map<string, SampleInfo> = new Map();
44+
public navRoutingProviders: RoutingGroup[] = [];
4445
public igrVersion: string = "";
4546
public sbContent: any;
4647

@@ -77,6 +78,7 @@ export class SamplesBrowser extends React.Component<any, any>
7778
}
7879

7980
this.onSampleOpen = this.onSampleOpen.bind(this);
81+
this.onComponentToggle = this.onComponentToggle.bind(this);
8082
// console.log(TestsRoutes.DataRoutes)
8183

8284
const routingProviders: RoutingGroup[] = [
@@ -96,14 +98,15 @@ export class SamplesBrowser extends React.Component<any, any>
9698

9799
for (const routingData of routingProviders) {
98100
this.populateLookup(routingData);
99-
this.populateLinks(SamplesRouter.getLinks(routingData, this.onSampleOpen));
100101
this.populateRoutes(SamplesRouter.getRoutes(routingData));
102+
this.navRoutingProviders.push(routingData);
101103
}
102104
this.state = {
103105
SidebarVisible: true,
104106
SelectedGroup: '',
105107
SelectedControl: '',
106108
SelectedSample: 'react samples browser',
109+
ExpandedComponents: {},
107110
}
108111
}
109112

@@ -146,6 +149,30 @@ export class SamplesBrowser extends React.Component<any, any>
146149
}
147150
};
148151

152+
public onComponentToggle = (componentName: string) => {
153+
const expanded = { ...this.state.ExpandedComponents };
154+
if (expanded[componentName]) {
155+
delete expanded[componentName];
156+
} else {
157+
expanded[componentName] = true;
158+
}
159+
this.setState({ ExpandedComponents: expanded });
160+
};
161+
162+
public renderNavLinks() {
163+
const navLinks: any[] = [];
164+
for (const routingData of this.navRoutingProviders) {
165+
const links = SamplesRouter.getLinks(
166+
routingData,
167+
this.onSampleOpen,
168+
this.onComponentToggle,
169+
this.state.ExpandedComponents
170+
);
171+
navLinks.push(...links);
172+
}
173+
return navLinks;
174+
}
175+
149176
public render() {
150177

151178
const sbBrowsingMode = SamplesRouter.isBrowsingMode();
@@ -201,7 +228,7 @@ export class SamplesBrowser extends React.Component<any, any>
201228
<div className="sbRoot">
202229
<div className="sbSidebar" style={sbSidebarStyle}>
203230
{/* <Link to={`/samples`}>Samples home</Link> */}
204-
{this.navLinks}
231+
{this.renderNavLinks()}
205232
</div>
206233

207234
<div className="sbContent" style={sbContentStyle} ref={this.sbContentRef}>

browser/src/navigation/SamplesRouter.tsx

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class SamplesRouter {
1818
// console.log("SB pathname '" + location.pathname + "'");
1919

2020
if (location.pathname === "/" ||
21-
location.pathname.indexOf("/samples") > 0) {
21+
location.pathname.indexOf("/samples") >= 0) {
2222
return true;
2323
}
2424
return false;
@@ -44,7 +44,12 @@ export class SamplesRouter {
4444
return routes;
4545
}
4646

47-
public static getLinks(group: RoutingGroup, onSampleOpen: (sample: RoutingSample) => void): any[] {
47+
public static getLinks(
48+
group: RoutingGroup,
49+
onSampleOpen: (sample: RoutingSample) => void,
50+
onComponentToggle: (componentName: string) => void,
51+
expandedComponents: { [key: string]: boolean }
52+
): any[] {
4853
let lists: any[] = [];
4954
// if (routePrefix === undefined) { routePrefix = ""; }
5055

@@ -70,14 +75,20 @@ export class SamplesRouter {
7075
);
7176
}
7277
let navListID = 'sbNav-list-' + component.name
73-
let navList = <div className='sbNavigation-list' key={navListID} id={navListID} style={{display: "none"}} >{links}</div>;
78+
let isExpanded = expandedComponents[component.name] === true;
79+
let navList = <div
80+
className='sbNavigation-list'
81+
key={navListID}
82+
id={navListID}
83+
style={{display: isExpanded ? "block" : "none"}}
84+
>{links}</div>;
7485

7586
let navComponentID = 'sbNav-component-' + component.name
7687
let navComponent = <div
7788
className='sbNavigation-control'
7889
key={navComponentID}
7990
id={navComponentID}
80-
onClick={(e) => this.onClickToggle(component)}>&#10148; {component.name}</div>;
91+
onClick={(e) => onComponentToggle(component.name)}>&#10148; {component.name}</div>;
8192

8293
lists.push(navComponent);
8394
lists.push(navList);
@@ -96,19 +107,4 @@ export class SamplesRouter {
96107
});
97108
onSampleOpen(sample);
98109
}
99-
100-
public static onClickToggle(component: RoutingComponent): void {
101-
let navList = document.getElementById("sbNav-list-" + component.name);
102-
if (navList) {
103-
let style = navList.style as CSSStyleDeclaration;
104-
let isVisible = style.display === "none";
105-
// let state = navList.getAttribute("state") as string;
106-
// let isVisible = state === "expanded";
107-
// navList.setAttribute("state", isVisible ? "expanded" : "collapsed");
108-
navList.setAttribute("style", isVisible ? "display: block;" : "display: none;");
109-
}
110-
}
111-
112-
113110
}
114-

browser/src/typedecls.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
/* tslint:disable */
22
declare module JSX {
33
interface IntrinsicElements {
4-
"igc-dockmanager": any;
4+
"igc-grid-lite": any;
5+
"igc-avatar": any;
6+
"igc-rating": any;
7+
"igc-checkbox": any;
8+
"igc-select": any;
9+
"igc-select-item": any;
510
}
611
}
712
/* tslint:enable */

0 commit comments

Comments
 (0)