@igo2/context 19.0.3 → 20.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/fesm2022/igo2-context.mjs +292 -425
  2. package/fesm2022/igo2-context.mjs.map +1 -1
  3. package/index.d.ts +1033 -3
  4. package/package.json +12 -15
  5. package/lib/context-import-export/context-import-export/context-import-export.component.d.ts +0 -44
  6. package/lib/context-import-export/context-import-export.module.d.ts +0 -12
  7. package/lib/context-import-export/index.d.ts +0 -2
  8. package/lib/context-import-export/shared/context-export.errors.d.ts +0 -8
  9. package/lib/context-import-export/shared/context-export.interface.d.ts +0 -5
  10. package/lib/context-import-export/shared/context-export.service.d.ts +0 -10
  11. package/lib/context-import-export/shared/context-export.utils.d.ts +0 -4
  12. package/lib/context-import-export/shared/context-import.errors.d.ts +0 -17
  13. package/lib/context-import-export/shared/context-import.service.d.ts +0 -18
  14. package/lib/context-import-export/shared/context-import.utils.d.ts +0 -15
  15. package/lib/context-import-export/shared/index.d.ts +0 -7
  16. package/lib/context-manager/context-edit/context-edit-binding.directive.d.ts +0 -20
  17. package/lib/context-manager/context-edit/context-edit.component.d.ts +0 -14
  18. package/lib/context-manager/context-edit/index.d.ts +0 -2
  19. package/lib/context-manager/context-form/context-form.component.d.ts +0 -32
  20. package/lib/context-manager/context-form/index.d.ts +0 -1
  21. package/lib/context-manager/context-item/context-item.component.d.ts +0 -32
  22. package/lib/context-manager/context-item/index.d.ts +0 -1
  23. package/lib/context-manager/context-list/context-list-binding.directive.d.ts +0 -48
  24. package/lib/context-manager/context-list/context-list.component.d.ts +0 -93
  25. package/lib/context-manager/context-list/context-list.enum.d.ts +0 -5
  26. package/lib/context-manager/context-list/index.d.ts +0 -2
  27. package/lib/context-manager/context-manager.directive.d.ts +0 -7
  28. package/lib/context-manager/context-manager.module.d.ts +0 -21
  29. package/lib/context-manager/context-permissions/context-permissions-binding.directive.d.ts +0 -24
  30. package/lib/context-manager/context-permissions/context-permissions.component.d.ts +0 -40
  31. package/lib/context-manager/context-permissions/index.d.ts +0 -2
  32. package/lib/context-manager/index.d.ts +0 -7
  33. package/lib/context-manager/shared/context.enum.d.ts +0 -10
  34. package/lib/context-manager/shared/context.interface.d.ts +0 -81
  35. package/lib/context-manager/shared/context.service.d.ts +0 -81
  36. package/lib/context-manager/shared/index.d.ts +0 -5
  37. package/lib/context-manager/shared/layer-context.directive.d.ts +0 -31
  38. package/lib/context-manager/shared/map-context.directive.d.ts +0 -22
  39. package/lib/context-map-button/bookmark-button/bookmark-button.component.d.ts +0 -20
  40. package/lib/context-map-button/bookmark-button/bookmark-dialog.component.d.ts +0 -9
  41. package/lib/context-map-button/bookmark-button/index.d.ts +0 -2
  42. package/lib/context-map-button/context-map-button.directive.d.ts +0 -4
  43. package/lib/context-map-button/context-map-button.module.d.ts +0 -15
  44. package/lib/context-map-button/index.d.ts +0 -4
  45. package/lib/context-map-button/poi-button/index.d.ts +0 -3
  46. package/lib/context-map-button/poi-button/poi-button.component.d.ts +0 -35
  47. package/lib/context-map-button/poi-button/poi-dialog.component.d.ts +0 -9
  48. package/lib/context-map-button/poi-button/shared/index.d.ts +0 -2
  49. package/lib/context-map-button/poi-button/shared/poi.interface.d.ts +0 -7
  50. package/lib/context-map-button/poi-button/shared/poi.service.d.ts +0 -16
  51. package/lib/context-map-button/user-button/index.d.ts +0 -2
  52. package/lib/context-map-button/user-button/user-button.animation.d.ts +0 -2
  53. package/lib/context-map-button/user-button/user-button.component.d.ts +0 -25
  54. package/lib/context-map-button/user-button/user-dialog.component.d.ts +0 -15
  55. package/lib/context.module.d.ts +0 -16
  56. package/lib/environment/environment.interface.d.ts +0 -9
  57. package/lib/environment/index.d.ts +0 -1
  58. package/lib/share-map/index.d.ts +0 -5
  59. package/lib/share-map/share-map/share-map-api.component.d.ts +0 -34
  60. package/lib/share-map/share-map/share-map-url.component.d.ts +0 -28
  61. package/lib/share-map/share-map/share-map.component.d.ts +0 -11
  62. package/lib/share-map/share-map.module.d.ts +0 -18
  63. package/lib/share-map/shared/index.d.ts +0 -4
  64. package/lib/share-map/shared/share-map-definitions.d.ts +0 -2
  65. package/lib/share-map/shared/share-map-encoder.d.ts +0 -62
  66. package/lib/share-map/shared/share-map-legacy.service.d.ts +0 -18
  67. package/lib/share-map/shared/share-map-parser.d.ts +0 -20
  68. package/lib/share-map/shared/share-map.interface.d.ts +0 -81
  69. package/lib/share-map/shared/share-map.service.d.ts +0 -23
  70. package/lib/share-map/shared/share-map.utils.d.ts +0 -13
  71. package/lib/sidenav/index.d.ts +0 -1
  72. package/lib/sidenav/sidenav.component.d.ts +0 -36
  73. package/lib/sidenav/sidenav.module.d.ts +0 -12
  74. package/public_api.d.ts +0 -12
  75. package/src/context.theme.scss +0 -5
  76. package/src/lib/context-manager/context-item/context-item.theming.scss +0 -21
  77. package/src/lib/context-manager/context-list/context-list.theming.scss +0 -23
  78. package/src/lib/context-manager/context-manager.theming.scss +0 -7
@@ -1,18 +0,0 @@
1
- import { Params } from '@angular/router';
2
- import { RouteServiceOptions } from '@igo2/core/route';
3
- import { LayerOptions } from '@igo2/geo';
4
- import { PositionParams } from './share-map.interface';
5
- export declare class ShareMapLegacyParser {
6
- private options;
7
- constructor(options: RouteServiceOptions);
8
- parseUrl(params: Params): LayerOptions[] | undefined;
9
- parsePosition(params: Params): PositionParams;
10
- private readLayersQueryParamsByType;
11
- private getQueryKeyByType;
12
- private sanitizeUrl;
13
- private getQueryParam;
14
- private extractLayersByService;
15
- private removeParenthesis;
16
- private extractLayersOptions;
17
- private computeLayerVisibilityFromUrl;
18
- }
@@ -1,20 +0,0 @@
1
- import { Params } from '@angular/router';
2
- import { RouteServiceOptions } from '@igo2/core/route';
3
- import { type AnyLayerOptions } from '@igo2/geo';
4
- import { ShareMapLegacyParser } from './share-map-legacy.service';
5
- import { PositionParams, ShareMapKeysDefinitions } from './share-map.interface';
6
- export declare class ShareMapParser {
7
- private keysDefinitions;
8
- private legacyOptions;
9
- legacy: ShareMapLegacyParser;
10
- constructor(keysDefinitions: ShareMapKeysDefinitions, legacyOptions: RouteServiceOptions);
11
- parseLayers(params: Params): AnyLayerOptions[] | undefined;
12
- private splitParam;
13
- parsePosition(params: Params): PositionParams | undefined;
14
- private parseLayer;
15
- private parseGroup;
16
- private extractVersionFromUrl;
17
- private extractUrlIndex;
18
- private extractLayerNames;
19
- private extractLayerProperties;
20
- }
@@ -1,81 +0,0 @@
1
- import { RouteServiceOptions } from '@igo2/core/route';
2
- import { LayerGroupOptions, LayerOptions } from '@igo2/geo';
3
- export declare const ServiceType: readonly ["wms", "wmts", "arcgisrest", "imagearcgisrest", "tilearcgisrest"];
4
- export type ServiceType = (typeof ServiceType)[number];
5
- export declare enum ServiceTypeEnum {
6
- wms = 0,
7
- wmts = 1,
8
- arcgisrest = 2,
9
- imagearcgisrest = 3,
10
- tilearcgisrest = 4
11
- }
12
- export interface ShareOption {
13
- layerlistControls: {
14
- querystring: string;
15
- };
16
- }
17
- export declare const LayerParamsKeys: readonly ["index", "names", "type", "version", "queryString", "visible", "opacity", "zIndex", "parentId"];
18
- export type LayerParamsKeys = (typeof LayerParamsKeys)[number];
19
- export declare const GroupParamsKeys: readonly ["title", "id", "expanded", "visible", "opacity", "zIndex", "parentId"];
20
- export type GroupParamsKeys = (typeof GroupParamsKeys)[number];
21
- declare const PositionParamsKeys: readonly ["center", "zoom", "rotation", "projection"];
22
- type PositionParamsKeys = (typeof PositionParamsKeys)[number];
23
- export interface ShareMapKeysDefinitions {
24
- urlsKey: string;
25
- contextKey: string;
26
- languageKey: string;
27
- pos: DefinitionKeyParams<PositionParamsKeys>;
28
- layers: DefinitionKeyParams<LayerParamsKeys>;
29
- groups: DefinitionKeyParams<GroupParamsKeys>;
30
- }
31
- export interface DefinitionKeyParams<T extends string> extends BaseKeyParams {
32
- params: DefinitionParams<T>;
33
- }
34
- export type DefinitionParams<T extends string = string> = Record<T, BaseKeyParams | undefined>;
35
- export interface BaseKeyParams {
36
- key: string;
37
- parse?: (value: string) => unknown;
38
- stringify?: (value: unknown) => string;
39
- }
40
- export interface PositionParams {
41
- center?: [number, number];
42
- zoom?: number;
43
- rotation?: number;
44
- projection?: string;
45
- }
46
- export interface LayerProperties {
47
- zIndex: number;
48
- visibility: boolean;
49
- type: ServiceType;
50
- opacity: number;
51
- parentId: string;
52
- }
53
- export interface UrlParsedParam {
54
- position: PositionParams;
55
- layersOptions: LayerOptions[];
56
- context: string;
57
- }
58
- export type LayerParams = BaseLayerParams & {
59
- index: number;
60
- names: string;
61
- type: string;
62
- queryString?: string;
63
- };
64
- export type GroupParams = BaseLayerParams & Pick<LayerGroupOptions, 'title' | 'id'> & {
65
- expanded?: boolean;
66
- };
67
- type BaseLayerParams = Pick<LayerOptions, 'visible' | 'opacity' | 'zIndex' | 'parentId'>;
68
- export interface ShareMapRouteKeysOptions extends RouteServiceOptions {
69
- context: string;
70
- urls: string;
71
- position: string;
72
- layers: string;
73
- groups: string;
74
- center: string;
75
- zoom: string;
76
- projection: string;
77
- rotation: string;
78
- opacity: string;
79
- }
80
- export declare const SHARE_MAP_KEYS_DEFAULT_OPTIONS: ShareMapRouteKeysOptions;
81
- export {};
@@ -1,23 +0,0 @@
1
- import { Params } from '@angular/router';
2
- import { RouteService, RouteServiceOptions } from '@igo2/core/route';
3
- import { ShareMapEncoder } from './share-map-encoder';
4
- import { ShareMapParser } from './share-map-parser';
5
- import { ShareMapKeysDefinitions, ShareMapRouteKeysOptions } from './share-map.interface';
6
- import * as i0 from "@angular/core";
7
- export declare class ShareMapService {
8
- routeService: RouteService;
9
- document: Document;
10
- private language;
11
- options: ShareMapRouteKeysOptions;
12
- optionsLegacy: RouteServiceOptions;
13
- keysDefinitions: ShareMapKeysDefinitions;
14
- encoder: ShareMapEncoder;
15
- parser: ShareMapParser;
16
- constructor(routeService: RouteService, document: Document);
17
- getContext(params: Params): string | undefined;
18
- getZoom(params: Params): number | undefined;
19
- getUrlWithApi(formValues: any): string;
20
- hasPositionParams(params: Params): boolean;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ShareMapService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<ShareMapService>;
23
- }
@@ -1,13 +0,0 @@
1
- import { Params } from '@angular/router';
2
- import { RouteServiceOptions } from '@igo2/core/route';
3
- import { AnyDataSourceOptions, AnyLayerOptions } from '@igo2/geo';
4
- import { ServiceType, ShareMapKeysDefinitions } from './share-map.interface';
5
- export declare function buildDataSourceOptions(type: ServiceType, url: string, layers: string[], version: string): AnyDataSourceOptions;
6
- export declare function getFlattenOptions(options: AnyLayerOptions[]): AnyLayerOptions[];
7
- /**
8
- * Checks if the provided query parameters contain legacy parameter pairs
9
- * (e.g., layers and URLs) that indicate older configuration formats.
10
- */
11
- export declare function hasLegacyParams(params: Params, optionsLegacy: RouteServiceOptions): boolean;
12
- export declare function hasModernShareParams(params: Params, keysDefinitions: ShareMapKeysDefinitions): boolean;
13
- export declare function getParamValue(params: Params, key: string): string | undefined;
@@ -1 +0,0 @@
1
- export * from './sidenav.component';
@@ -1,36 +0,0 @@
1
- import { Title } from '@angular/platform-browser';
2
- import { FlexibleState } from '@igo2/common/flexible';
3
- import { Tool } from '@igo2/common/tool';
4
- import type { Media } from '@igo2/core/media';
5
- import { Feature } from '@igo2/geo';
6
- import type { IgoMap } from '@igo2/geo';
7
- import * as i0 from "@angular/core";
8
- export declare class SidenavComponent {
9
- titleService: Title;
10
- private format;
11
- get map(): IgoMap;
12
- set map(value: IgoMap);
13
- private _map;
14
- get opened(): boolean;
15
- set opened(value: boolean);
16
- private _opened;
17
- get feature(): Feature;
18
- set feature(value: Feature);
19
- private _feature;
20
- get tool(): Tool;
21
- set tool(value: Tool);
22
- private _tool;
23
- get media(): Media;
24
- set media(value: Media);
25
- private _media;
26
- get title(): string;
27
- set title(value: string);
28
- private _title;
29
- topPanelState: FlexibleState;
30
- get featureTitle(): string;
31
- constructor(titleService: Title);
32
- zoomToFeatureExtent(): void;
33
- toggleTopPanel(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<SidenavComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<SidenavComponent, "igo-sidenav", never, { "map": { "alias": "map"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "tool": { "alias": "tool"; "required": false; }; "media": { "alias": "media"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
36
- }
@@ -1,12 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./sidenav.component";
4
- /**
5
- * @deprecated import the SidenavComponent directly
6
- */
7
- export declare class IgoSidenavModule {
8
- static forRoot(): ModuleWithProviders<IgoSidenavModule>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoSidenavModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoSidenavModule, never, [typeof i1.SidenavComponent], [typeof i1.SidenavComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoSidenavModule>;
12
- }
package/public_api.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export * from './lib/context.module';
2
- export * from './lib/context-import-export/context-import-export.module';
3
- export * from './lib/context-manager/context-manager.module';
4
- export * from './lib/context-map-button/context-map-button.module';
5
- export * from './lib/share-map/share-map.module';
6
- export * from './lib/sidenav/sidenav.module';
7
- export * from './lib/context-import-export';
8
- export * from './lib/context-manager';
9
- export * from './lib/context-map-button';
10
- export * from './lib/environment';
11
- export * from './lib/share-map';
12
- export * from './lib/sidenav';
@@ -1,5 +0,0 @@
1
- @use './lib/context-manager/context-manager.theming.scss' as context-manager;
2
-
3
- @mixin themes($theme) {
4
- @include context-manager.themes($theme);
5
- }
@@ -1,21 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- @include density($theme);
6
- }
7
-
8
- @mixin density($theme) {
9
- $density: mat.get-theme-density($theme);
10
-
11
- $theme: map.merge(
12
- $theme,
13
- (
14
- density: $density - 2
15
- )
16
- );
17
-
18
- igo-context-item {
19
- @include mat.icon-button-density($theme);
20
- }
21
- }
@@ -1,23 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- @include density($theme);
6
- }
7
-
8
- @mixin density($theme) {
9
- $density: mat.get-theme-density($theme);
10
-
11
- $theme: map.merge(
12
- $theme,
13
- (
14
- density: $density - 2
15
- )
16
- );
17
-
18
- igo-context-list {
19
- @include mat.icon-button-density($theme);
20
- @include mat.list-density($theme);
21
- @include mat.form-field-density($theme);
22
- }
23
- }
@@ -1,7 +0,0 @@
1
- @use './context-list/context-list.theming.scss' as context-list;
2
- @use './context-item/context-item.theming.scss' as context-item;
3
-
4
- @mixin themes($theme) {
5
- @include context-list.theme($theme);
6
- @include context-item.theme($theme);
7
- }