diff --git a/plugins/arcgis/web-app/projects/main/src/lib/arc-event/arc-event.component.scss b/plugins/arcgis/web-app/projects/main/src/lib/arc-event/arc-event.component.scss
index 3f476dc3e..af96399be 100644
--- a/plugins/arcgis/web-app/projects/main/src/lib/arc-event/arc-event.component.scss
+++ b/plugins/arcgis/web-app/projects/main/src/lib/arc-event/arc-event.component.scss
@@ -1,69 +1,8 @@
-.arc-layer-form {
- display: flex;
- flex-direction: column;
- min-width: 950px;
+.arcEvent__info {
+ flex-grow: 1;
}
-section {
- >* {
- margin-inline-start: 1em;
- }
-
- header {
- margin-inline-start: 0;
-
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin-block-end: 0;
- }
-
- .subheading {
- margin-block-start: 0;
- opacity: 0.5;
- }
-
- margin-block-end: 2em;
- }
-
- margin-block-start: 2em;
- margin-block-end: 2em;
-}
-
-.arcEvent {
- margin-block-start: 1em;
- display: grid;
- grid-template-columns: 4fr 1fr;
- max-width: max-content;
- margin-bottom: 20px;
-}
-
-.arcEvent__value {
- grid-column-start: 1;
-}
-
-.arcEvent__edit {
- grid-column-start: 2;
- text-align: end;
-}
-
-.featureLayers {
- display: grid;
- opacity: 0.5;
- font-size: 0.9em;
-}
-
-.edit-icon {
- vertical-align: middle;
-}
-
-.edit-button {
- opacity: 0.5;
- font-size: inherit;
- height: inherit;
- line-height: inherit;
- width: inherit;
+.mat-divider {
+ margin-top: 12px;
+ margin-bottom: 12px;
}
\ No newline at end of file
diff --git a/plugins/arcgis/web-app/projects/showcase/src/app/arc.service.mock.ts b/plugins/arcgis/web-app/projects/showcase/src/app/arc.service.mock.ts
index a908a8ac5..f4b582b96 100644
--- a/plugins/arcgis/web-app/projects/showcase/src/app/arc.service.mock.ts
+++ b/plugins/arcgis/web-app/projects/showcase/src/app/arc.service.mock.ts
@@ -3,31 +3,65 @@ import { Injectable } from '@angular/core'
import { ArcServiceInterface, FeatureLayer, ValidationRequest } from "../../../main/src/lib/arc.service";
import { ArcGISPluginConfig, defaultArcGISPluginConfig } from '../../../main/src/lib/ArcGISPluginConfig';
import { MageEvent } from "../../../main/src/lib/arc.service";
-import { FeatureServiceConfig } from "projects/main/src/lib/ArcGISConfig";
-export const mockArcGISEventResult = Object.freeze
({
+export const mockArcGISEventResult1 = Object.freeze({
id: 0,
- name: 'test event result name',
+ name: 'test event result name 1',
forms: [{
id: 1,
- name: 'test form result name',
+ name: 'test form result name 1',
fields: [{
- title: 'test field'
+ title: 'test field 1'
}]
}]
-})
+});
+
+export const mockArcGISEventResult2 = Object.freeze({
+ id: 1,
+ name: 'test event result name 2',
+ forms: [{
+ id: 2,
+ name: 'test form result name 2',
+ fields: [{
+ title: 'test field 2'
+ }]
+ }]
+});
+
+export const mockArcGISEventResult3 = Object.freeze({
+ id: 2,
+ name: 'test event result name 3',
+ forms: [{
+ id: 3,
+ name: 'test form result name 3',
+ fields: [{
+ title: 'test field 3'
+ }]
+ }]
+});
@Injectable({
providedIn: 'root'
})
+
export class MockArcService implements ArcServiceInterface {
fetchFeatureServiceLayers(featureServiceUrl: string): Observable {
- return of([{
- id: 0,
- name: 'mock_arcgis_layer',
- geometryType: 'point'
- }])
+ return of([
+ {
+ id: 1,
+ name: 'Layer 1',
+ geometryType: 'esriGeometryPoint',
+ events: ['test event result name 1', 'test event result name 2']
+ },
+ {
+ id: 2,
+ name: 'Layer 2',
+ geometryType: 'esriGeometryPolygon',
+ events: ['test event result name 2']
+ }
+ ]);
}
+
fetchArcConfig(): Observable {
return of({
enabled: true,
@@ -36,21 +70,21 @@ export class MockArcService implements ArcServiceInterface {
startupIntervalSeconds: 1,
updateIntervalSeconds: 1,
batchSize: 100,
- featureServices: [{
- url: 'https://arcgis.mock.com/1',
- authenticated: false,
- layers: [{
- layer: 'Mock ArcGIS Layer 1'
- },{
- layer: 'Mock ArcGIS Layer 2'
- }]
- },{
- url: 'https://arcgis.mock.com/2',
- authenticated: true,
- layers: [{
- layer: 'Mock ArcGIS Layer 1'
- }]
- }],
+ featureServices: [
+ {
+ url: 'https://mock.service.com/FeatureServer/0',
+ layers: [
+ {
+ layer: 'Layer 1',
+ events: ['test event result name 1', 'test event result name 2']
+ },
+ {
+ layer: 'Layer 2',
+ events: ['test event result name 2']
+ }
+ ]
+ }
+ ],
attachmentModifiedTolerance: 5000,
textFieldLength: 100,
textAreaFieldLength: 256,
@@ -91,36 +125,32 @@ export class MockArcService implements ArcServiceInterface {
fetchArcLayers(featureUrl: string) {
return of({
layers: [
- {
- id: 0,
- name: 'mage_sync',
- geometryType: 'esriGeometryPoint'
- },
- ]
- }
- )
+ {
+ id: 0,
+ name: 'mage_sync',
+ geometryType: 'esriGeometryPoint'
+ },
+ ]
+ }
+ )
}
fetchEvents() {
- return of([mockArcGISEventResult])
+ return of([mockArcGISEventResult1, mockArcGISEventResult2, mockArcGISEventResult3]);
}
fetchPopulatedEvents() {
- return of([mockArcGISEventResult])
+ return of([mockArcGISEventResult1, mockArcGISEventResult2, mockArcGISEventResult3]);
}
putArcConfig(config: ArcGISPluginConfig) {}
removeUserTrack(userTrackId: string): Observable {
- return of(
- defaultArcGISPluginConfig
- )
+ return of(defaultArcGISPluginConfig);
}
removeOperation(operationId: string): Observable {
- return of(
- defaultArcGISPluginConfig
- )
+ return of(defaultArcGISPluginConfig);
}
validateFeatureService(request: ValidationRequest): Observable {