Skip to content

Commit b0cf692

Browse files
refactor: use standalone components
Closes #305
1 parent c3bed7d commit b0cf692

File tree

101 files changed

+958
-281
lines changed

Some content is hidden

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

101 files changed

+958
-281
lines changed

projects/ngx-openlayers/src/lib/attribution.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { Component, ElementRef, OnInit } from '@angular/core';
22
import { Attribution } from 'ol/control';
33

44
@Component({
5-
selector: 'aol-attribution',
6-
template: '<ng-content></ng-content>',
5+
selector: 'aol-attribution',
6+
template: '<ng-content></ng-content>',
7+
standalone: true,
78
})
89
export class AttributionComponent implements OnInit {
910
instance: Attribution;

projects/ngx-openlayers/src/lib/attributions.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { AttributionComponent } from './attribution.component';
33
import { SourceComponent } from './sources/source.component';
44

55
@Component({
6-
selector: 'aol-attributions',
7-
template: '<ng-content></ng-content>',
6+
selector: 'aol-attributions',
7+
template: '<ng-content></ng-content>',
8+
standalone: true,
89
})
910
export class AttributionsComponent implements AfterViewInit {
1011
@ContentChildren(AttributionComponent)

projects/ngx-openlayers/src/lib/collectioncoordinates.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import { GeometryPolygonComponent } from './geom/geometrypolygon.component';
99
import { MapComponent } from './map.component';
1010

1111
@Component({
12-
selector: 'aol-collection-coordinates',
13-
template: ` <div class="aol-collection-coordinates"></div> `,
12+
selector: 'aol-collection-coordinates',
13+
template: ` <div class="aol-collection-coordinates"></div> `,
14+
standalone: true,
1415
})
1516
export class CollectionCoordinatesComponent implements OnChanges, OnInit {
1617
@Input()

projects/ngx-openlayers/src/lib/content.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component, ElementRef } from '@angular/core';
22

33
@Component({
4-
selector: 'aol-content',
5-
template: '<ng-content></ng-content>',
4+
selector: 'aol-content',
5+
template: '<ng-content></ng-content>',
6+
standalone: true,
67
})
78
export class ContentComponent {
89
constructor(public elementRef: ElementRef) {}

projects/ngx-openlayers/src/lib/controls/attribution.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { Attribution } from 'ol/control';
33
import { MapComponent } from '../map.component';
44

55
@Component({
6-
selector: 'aol-control-attribution',
7-
template: ``,
6+
selector: 'aol-control-attribution',
7+
template: ``,
8+
standalone: true,
89
})
910
export class ControlAttributionComponent implements OnInit, OnDestroy {
1011
@Input()

projects/ngx-openlayers/src/lib/controls/control.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { ContentComponent } from '../content.component';
44
import { MapComponent } from '../map.component';
55

66
@Component({
7-
selector: 'aol-control',
8-
template: ` <ng-content></ng-content> `,
7+
selector: 'aol-control',
8+
template: ` <ng-content></ng-content> `,
9+
standalone: true,
910
})
1011
export class ControlComponent implements OnInit, OnDestroy {
1112
@ContentChild(ContentComponent, { static: true })

projects/ngx-openlayers/src/lib/controls/default.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import { Options as ZoomOptions } from 'ol/control/Zoom';
88
import { MapComponent } from '../map.component';
99

1010
@Component({
11-
selector: 'aol-control-defaults',
12-
template: '',
11+
selector: 'aol-control-defaults',
12+
template: '',
13+
standalone: true,
1314
})
1415
export class DefaultControlComponent implements OnInit, OnDestroy {
1516
@Input()

projects/ngx-openlayers/src/lib/controls/fullscreen.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { FullScreen } from 'ol/control';
33
import { MapComponent } from '../map.component';
44

55
@Component({
6-
selector: 'aol-control-fullscreen',
7-
template: ` <ng-content></ng-content> `,
6+
selector: 'aol-control-fullscreen',
7+
template: ` <ng-content></ng-content> `,
8+
standalone: true,
89
})
910
export class ControlFullScreenComponent implements OnInit, OnDestroy {
1011
@Input()

projects/ngx-openlayers/src/lib/controls/mouseposition.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { ProjectionLike } from 'ol/proj';
55
import { MapComponent } from '../map.component';
66

77
@Component({
8-
selector: 'aol-control-mouseposition',
9-
template: ``,
8+
selector: 'aol-control-mouseposition',
9+
template: ``,
10+
standalone: true,
1011
})
1112
export class ControlMousePositionComponent implements OnInit, OnDestroy {
1213
@Input()

projects/ngx-openlayers/src/lib/controls/overviewmap.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import { Layer } from 'ol/layer';
55
import { MapComponent } from '../map.component';
66

77
@Component({
8-
selector: 'aol-control-overviewmap',
9-
template: ` <ng-content></ng-content> `,
8+
selector: 'aol-control-overviewmap',
9+
template: ` <ng-content></ng-content> `,
10+
standalone: true,
1011
})
1112
export class ControlOverviewMapComponent implements OnInit, OnChanges, OnDestroy {
1213
@Input()

0 commit comments

Comments
 (0)