@igo2/context 1.15.4 → 16.0.0-rc.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 (168) hide show
  1. package/context-theme.scss +5 -0
  2. package/{esm2020 → esm2022}/igo2-context.mjs +4 -4
  3. package/esm2022/lib/context-import-export/context-import-export/context-import-export.component.mjs +258 -0
  4. package/esm2022/lib/context-import-export/context-import-export.module.mjs +81 -0
  5. package/{esm2020 → esm2022}/lib/context-import-export/index.mjs +3 -3
  6. package/{esm2020 → esm2022}/lib/context-import-export/shared/context-export.errors.mjs +15 -15
  7. package/{esm2020 → esm2022}/lib/context-import-export/shared/context-export.interface.mjs +2 -2
  8. package/esm2022/lib/context-import-export/shared/context-export.service.mjs +38 -0
  9. package/esm2022/lib/context-import-export/shared/context-export.utils.mjs +15 -0
  10. package/esm2022/lib/context-import-export/shared/context-import.errors.mjs +33 -0
  11. package/esm2022/lib/context-import-export/shared/context-import.service.mjs +82 -0
  12. package/esm2022/lib/context-import-export/shared/context-import.utils.mjs +148 -0
  13. package/{esm2020 → esm2022}/lib/context-import-export/shared/index.mjs +8 -8
  14. package/esm2022/lib/context-manager/context-edit/context-edit-binding.directive.mjs +57 -0
  15. package/esm2022/lib/context-manager/context-edit/context-edit.component.mjs +48 -0
  16. package/{esm2020 → esm2022}/lib/context-manager/context-edit/index.mjs +3 -3
  17. package/esm2022/lib/context-manager/context-form/context-form.component.mjs +151 -0
  18. package/{esm2020 → esm2022}/lib/context-manager/context-form/index.mjs +2 -2
  19. package/esm2022/lib/context-manager/context-item/context-item.component.mjs +251 -0
  20. package/{esm2020 → esm2022}/lib/context-manager/context-item/index.mjs +2 -2
  21. package/esm2022/lib/context-manager/context-list/context-list-binding.directive.mjs +259 -0
  22. package/esm2022/lib/context-manager/context-list/context-list.component.mjs +616 -0
  23. package/{esm2020 → esm2022}/lib/context-manager/context-list/context-list.enum.mjs +7 -7
  24. package/{esm2020 → esm2022}/lib/context-manager/context-list/index.mjs +3 -3
  25. package/esm2022/lib/context-manager/context-manager.module.mjs +157 -0
  26. package/esm2022/lib/context-manager/context-permissions/context-permissions-binding.directive.mjs +108 -0
  27. package/esm2022/lib/context-manager/context-permissions/context-permissions.component.mjs +331 -0
  28. package/{esm2020 → esm2022}/lib/context-manager/context-permissions/index.mjs +3 -3
  29. package/{esm2020 → esm2022}/lib/context-manager/index.mjs +7 -7
  30. package/{esm2020 → esm2022}/lib/context-manager/shared/context.enum.mjs +13 -13
  31. package/esm2022/lib/context-manager/shared/context.interface.mjs +2 -0
  32. package/esm2022/lib/context-manager/shared/context.service.mjs +662 -0
  33. package/{esm2020 → esm2022}/lib/context-manager/shared/index.mjs +6 -6
  34. package/esm2022/lib/context-manager/shared/layer-context.directive.mjs +172 -0
  35. package/esm2022/lib/context-manager/shared/map-context.directive.mjs +79 -0
  36. package/esm2022/lib/context-map-button/bookmark-button/bookmark-button.component.mjs +74 -0
  37. package/esm2022/lib/context-map-button/bookmark-button/bookmark-dialog.component.mjs +53 -0
  38. package/{esm2020 → esm2022}/lib/context-map-button/bookmark-button/index.mjs +3 -3
  39. package/esm2022/lib/context-map-button/context-map-button.module.mjs +104 -0
  40. package/{esm2020 → esm2022}/lib/context-map-button/index.mjs +4 -4
  41. package/{esm2020 → esm2022}/lib/context-map-button/poi-button/index.mjs +4 -4
  42. package/esm2022/lib/context-map-button/poi-button/poi-button.component.mjs +179 -0
  43. package/esm2022/lib/context-map-button/poi-button/poi-dialog.component.mjs +53 -0
  44. package/{esm2020 → esm2022}/lib/context-map-button/poi-button/shared/index.mjs +3 -3
  45. package/{esm2020 → esm2022}/lib/context-map-button/poi-button/shared/poi.interface.mjs +2 -2
  46. package/esm2022/lib/context-map-button/poi-button/shared/poi.service.mjs +38 -0
  47. package/{esm2020 → esm2022}/lib/context-map-button/user-button/index.mjs +3 -3
  48. package/{esm2020 → esm2022}/lib/context-map-button/user-button/user-button.animation.mjs +17 -17
  49. package/esm2022/lib/context-map-button/user-button/user-button.component.mjs +112 -0
  50. package/esm2022/lib/context-map-button/user-button/user-dialog.component.mjs +74 -0
  51. package/{esm2020 → esm2022}/lib/context.module.mjs +45 -45
  52. package/{esm2020 → esm2022}/lib/share-map/index.mjs +5 -5
  53. package/esm2022/lib/share-map/share-map/share-map-api.component.mjs +186 -0
  54. package/esm2022/lib/share-map/share-map/share-map-url.component.mjs +251 -0
  55. package/esm2022/lib/share-map/share-map/share-map.component.mjs +60 -0
  56. package/{esm2020 → esm2022}/lib/share-map/share-map.module.mjs +67 -67
  57. package/{esm2020 → esm2022}/lib/share-map/shared/index.mjs +2 -2
  58. package/esm2022/lib/share-map/shared/share-map.service.mjs +221 -0
  59. package/{esm2020 → esm2022}/lib/sidenav/index.mjs +2 -2
  60. package/esm2022/lib/sidenav/sidenav.component.mjs +178 -0
  61. package/{esm2020 → esm2022}/lib/sidenav/sidenav.module.mjs +61 -61
  62. package/{esm2020 → esm2022}/public_api.mjs +15 -15
  63. package/{fesm2020 → fesm2022}/igo2-context.mjs +4844 -4614
  64. package/fesm2022/igo2-context.mjs.map +1 -0
  65. package/index.d.ts +5 -5
  66. package/lib/context-import-export/context-import-export/context-import-export.component.d.ts +46 -44
  67. package/lib/context-import-export/context-import-export.module.d.ts +23 -23
  68. package/lib/context-import-export/index.d.ts +2 -2
  69. package/lib/context-import-export/shared/context-export.errors.d.ts +8 -8
  70. package/lib/context-import-export/shared/context-export.interface.d.ts +5 -5
  71. package/lib/context-import-export/shared/context-export.service.d.ts +10 -10
  72. package/lib/context-import-export/shared/context-export.utils.d.ts +4 -4
  73. package/lib/context-import-export/shared/context-import.errors.d.ts +17 -17
  74. package/lib/context-import-export/shared/context-import.service.d.ts +18 -18
  75. package/lib/context-import-export/shared/context-import.utils.d.ts +15 -17
  76. package/lib/context-import-export/shared/index.d.ts +7 -7
  77. package/lib/context-manager/context-edit/context-edit-binding.directive.d.ts +20 -20
  78. package/lib/context-manager/context-edit/context-edit.component.d.ts +14 -14
  79. package/lib/context-manager/context-edit/index.d.ts +2 -2
  80. package/lib/context-manager/context-form/context-form.component.d.ts +30 -30
  81. package/lib/context-manager/context-form/index.d.ts +1 -1
  82. package/lib/context-manager/context-item/context-item.component.d.ts +32 -32
  83. package/lib/context-manager/context-item/context-item.theming.scss +21 -0
  84. package/lib/context-manager/context-item/index.d.ts +1 -1
  85. package/lib/context-manager/context-list/context-list-binding.directive.d.ts +46 -46
  86. package/lib/context-manager/context-list/context-list.component.d.ts +93 -93
  87. package/lib/context-manager/context-list/context-list.enum.d.ts +5 -5
  88. package/lib/context-manager/context-list/context-list.theming.scss +23 -0
  89. package/lib/context-manager/context-list/index.d.ts +2 -2
  90. package/lib/context-manager/context-manager.module.d.ts +37 -37
  91. package/lib/context-manager/context-manager.theming.scss +7 -0
  92. package/lib/context-manager/context-permissions/context-permissions-binding.directive.d.ts +23 -23
  93. package/lib/context-manager/context-permissions/context-permissions.component.d.ts +40 -40
  94. package/lib/context-manager/context-permissions/index.d.ts +2 -2
  95. package/lib/context-manager/index.d.ts +6 -6
  96. package/lib/context-manager/shared/context.enum.d.ts +10 -10
  97. package/lib/context-manager/shared/context.interface.d.ts +81 -75
  98. package/lib/context-manager/shared/context.service.d.ts +76 -75
  99. package/lib/context-manager/shared/index.d.ts +5 -5
  100. package/lib/context-manager/shared/layer-context.directive.d.ts +28 -28
  101. package/lib/context-manager/shared/map-context.directive.d.ts +19 -19
  102. package/lib/context-map-button/bookmark-button/bookmark-button.component.d.ts +20 -20
  103. package/lib/context-map-button/bookmark-button/bookmark-dialog.component.d.ts +9 -9
  104. package/lib/context-map-button/bookmark-button/index.d.ts +2 -2
  105. package/lib/context-map-button/context-map-button.module.d.ts +27 -27
  106. package/lib/context-map-button/index.d.ts +3 -3
  107. package/lib/context-map-button/poi-button/index.d.ts +3 -3
  108. package/lib/context-map-button/poi-button/poi-button.component.d.ts +34 -34
  109. package/lib/context-map-button/poi-button/poi-dialog.component.d.ts +9 -9
  110. package/lib/context-map-button/poi-button/shared/index.d.ts +2 -2
  111. package/lib/context-map-button/poi-button/shared/poi.interface.d.ts +7 -7
  112. package/lib/context-map-button/poi-button/shared/poi.service.d.ts +16 -16
  113. package/lib/context-map-button/user-button/index.d.ts +2 -2
  114. package/lib/context-map-button/user-button/user-button.animation.d.ts +2 -2
  115. package/lib/context-map-button/user-button/user-button.component.d.ts +25 -25
  116. package/lib/context-map-button/user-button/user-dialog.component.d.ts +15 -15
  117. package/lib/context.module.d.ts +16 -16
  118. package/lib/share-map/index.d.ts +4 -4
  119. package/lib/share-map/share-map/share-map-api.component.d.ts +27 -27
  120. package/lib/share-map/share-map/share-map-url.component.d.ts +26 -26
  121. package/lib/share-map/share-map/share-map.component.d.ts +11 -11
  122. package/lib/share-map/share-map.module.d.ts +21 -21
  123. package/lib/share-map/shared/index.d.ts +1 -1
  124. package/lib/share-map/shared/share-map.service.d.ts +17 -17
  125. package/lib/sidenav/index.d.ts +1 -1
  126. package/lib/sidenav/sidenav.component.d.ts +35 -35
  127. package/lib/sidenav/sidenav.module.d.ts +18 -18
  128. package/locale/en.context.json +199 -0
  129. package/locale/fr.context.json +199 -0
  130. package/package.json +20 -26
  131. package/public_api.d.ts +11 -11
  132. package/esm2020/lib/context-import-export/context-import-export/context-import-export.component.mjs +0 -228
  133. package/esm2020/lib/context-import-export/context-import-export.module.mjs +0 -85
  134. package/esm2020/lib/context-import-export/shared/context-export.service.mjs +0 -38
  135. package/esm2020/lib/context-import-export/shared/context-export.utils.mjs +0 -15
  136. package/esm2020/lib/context-import-export/shared/context-import.errors.mjs +0 -33
  137. package/esm2020/lib/context-import-export/shared/context-import.service.mjs +0 -79
  138. package/esm2020/lib/context-import-export/shared/context-import.utils.mjs +0 -133
  139. package/esm2020/lib/context-manager/context-edit/context-edit-binding.directive.mjs +0 -50
  140. package/esm2020/lib/context-manager/context-edit/context-edit.component.mjs +0 -46
  141. package/esm2020/lib/context-manager/context-form/context-form.component.mjs +0 -143
  142. package/esm2020/lib/context-manager/context-item/context-item.component.mjs +0 -245
  143. package/esm2020/lib/context-manager/context-list/context-list-binding.directive.mjs +0 -240
  144. package/esm2020/lib/context-manager/context-list/context-list.component.mjs +0 -592
  145. package/esm2020/lib/context-manager/context-manager.module.mjs +0 -162
  146. package/esm2020/lib/context-manager/context-permissions/context-permissions-binding.directive.mjs +0 -99
  147. package/esm2020/lib/context-manager/context-permissions/context-permissions.component.mjs +0 -306
  148. package/esm2020/lib/context-manager/shared/context.interface.mjs +0 -2
  149. package/esm2020/lib/context-manager/shared/context.service.mjs +0 -632
  150. package/esm2020/lib/context-manager/shared/layer-context.directive.mjs +0 -162
  151. package/esm2020/lib/context-manager/shared/map-context.directive.mjs +0 -70
  152. package/esm2020/lib/context-map-button/bookmark-button/bookmark-button.component.mjs +0 -66
  153. package/esm2020/lib/context-map-button/bookmark-button/bookmark-dialog.component.mjs +0 -50
  154. package/esm2020/lib/context-map-button/context-map-button.module.mjs +0 -96
  155. package/esm2020/lib/context-map-button/poi-button/poi-button.component.mjs +0 -161
  156. package/esm2020/lib/context-map-button/poi-button/poi-dialog.component.mjs +0 -50
  157. package/esm2020/lib/context-map-button/poi-button/shared/poi.service.mjs +0 -33
  158. package/esm2020/lib/context-map-button/user-button/user-button.component.mjs +0 -104
  159. package/esm2020/lib/context-map-button/user-button/user-dialog.component.mjs +0 -66
  160. package/esm2020/lib/share-map/share-map/share-map-api.component.mjs +0 -170
  161. package/esm2020/lib/share-map/share-map/share-map-url.component.mjs +0 -243
  162. package/esm2020/lib/share-map/share-map/share-map.component.mjs +0 -57
  163. package/esm2020/lib/share-map/shared/share-map.service.mjs +0 -210
  164. package/esm2020/lib/sidenav/sidenav.component.mjs +0 -170
  165. package/fesm2015/igo2-context.mjs +0 -5094
  166. package/fesm2015/igo2-context.mjs.map +0 -1
  167. package/fesm2020/igo2-context.mjs.map +0 -1
  168. package/ngcc.config.js +0 -3
@@ -1,46 +1,46 @@
1
- import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
2
- import { MessageService, LanguageService, StorageService } from '@igo2/core';
3
- import { AuthService } from '@igo2/auth';
4
- import { ConfirmDialogService } from '@igo2/common';
5
- import { MapService } from '@igo2/geo';
6
- import { Context, DetailedContext } from '../shared/context.interface';
7
- import { ContextService } from '../shared/context.service';
8
- import { ContextListComponent } from './context-list.component';
9
- import * as i0 from "@angular/core";
10
- export declare class ContextListBindingDirective implements OnInit, OnDestroy {
11
- private contextService;
12
- private mapService;
13
- private languageService;
14
- private confirmDialogService;
15
- private messageService;
16
- private auth;
17
- private storageService;
18
- private cdRef;
19
- private component;
20
- private contexts$$;
21
- private selectedContext$$;
22
- private defaultContextId$$;
23
- private previousMessageId;
24
- onSelect(context: Context): void;
25
- onEdit(context: Context): void;
26
- onSave(context: Context): void;
27
- onFavorite(context: Context): void;
28
- onManageTools(context: Context): void;
29
- onManagePermissions(context: Context): void;
30
- onDelete(context: Context): void;
31
- onClone(context: DetailedContext): void;
32
- onCreate(opts: {
33
- title: string;
34
- empty: boolean;
35
- }): void;
36
- loadContexts(): void;
37
- showHiddenContexts(): void;
38
- onShowContext(context: DetailedContext): void;
39
- onHideContext(context: DetailedContext): void;
40
- constructor(component: ContextListComponent, contextService: ContextService, mapService: MapService, languageService: LanguageService, confirmDialogService: ConfirmDialogService, messageService: MessageService, auth: AuthService, storageService: StorageService, cdRef: ChangeDetectorRef);
41
- ngOnInit(): void;
42
- ngOnDestroy(): void;
43
- private handleContextsChange;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextListBindingDirective, [{ self: true; }, null, null, null, null, null, null, null, null]>;
45
- static ɵdir: i0.ɵɵDirectiveDeclaration<ContextListBindingDirective, "[igoContextListBinding]", never, {}, {}, never, never, false>;
46
- }
1
+ import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
2
+ import { MessageService, LanguageService, StorageService } from '@igo2/core';
3
+ import { AuthService } from '@igo2/auth';
4
+ import { ConfirmDialogService } from '@igo2/common';
5
+ import { MapService } from '@igo2/geo';
6
+ import { Context, DetailedContext } from '../shared/context.interface';
7
+ import { ContextService } from '../shared/context.service';
8
+ import { ContextListComponent } from './context-list.component';
9
+ import * as i0 from "@angular/core";
10
+ export declare class ContextListBindingDirective implements OnInit, OnDestroy {
11
+ private contextService;
12
+ private mapService;
13
+ private languageService;
14
+ private confirmDialogService;
15
+ private messageService;
16
+ private auth;
17
+ private storageService;
18
+ private cdRef;
19
+ private component;
20
+ private contexts$$;
21
+ private selectedContext$$;
22
+ private defaultContextId$$;
23
+ private previousMessageId;
24
+ onSelect(context: Context): void;
25
+ onEdit(context: Context): void;
26
+ onSave(context: Context): void;
27
+ onFavorite(context: Context): void;
28
+ onManageTools(context: Context): void;
29
+ onManagePermissions(context: Context): void;
30
+ onDelete(context: Context): void;
31
+ onClone(context: DetailedContext): void;
32
+ onCreate(opts: {
33
+ title: string;
34
+ empty: boolean;
35
+ }): void;
36
+ loadContexts(): void;
37
+ showHiddenContexts(): void;
38
+ onShowContext(context: DetailedContext): void;
39
+ onHideContext(context: DetailedContext): void;
40
+ constructor(component: ContextListComponent, contextService: ContextService, mapService: MapService, languageService: LanguageService, confirmDialogService: ConfirmDialogService, messageService: MessageService, auth: AuthService, storageService: StorageService, cdRef: ChangeDetectorRef);
41
+ ngOnInit(): void;
42
+ ngOnDestroy(): void;
43
+ private handleContextsChange;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContextListBindingDirective, [{ self: true; }, null, null, null, null, null, null, null, null]>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ContextListBindingDirective, "[igoContextListBinding]", never, {}, {}, never, never, false, never>;
46
+ }
@@ -1,93 +1,93 @@
1
- import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
2
- import { AuthService } from '@igo2/auth';
3
- import { ConfigService, LanguageService, StorageService } from '@igo2/core';
4
- import type { IgoMap } from '@igo2/geo';
5
- import { DetailedContext, ContextsList, ContextUserPermission, ContextProfils } from '../shared/context.interface';
6
- import { ContextListControlsEnum } from './context-list.enum';
7
- import { BehaviorSubject, ReplaySubject } from 'rxjs';
8
- import { MatDialog } from '@angular/material/dialog';
9
- import { ActionStore, ActionbarMode } from '@igo2/common';
10
- import * as i0 from "@angular/core";
11
- export declare class ContextListComponent implements OnInit, OnDestroy {
12
- private cdRef;
13
- configService: ConfigService;
14
- auth: AuthService;
15
- private dialog;
16
- private languageService;
17
- private storageService;
18
- private contextsInitial;
19
- contexts$: BehaviorSubject<ContextsList>;
20
- change$: ReplaySubject<void>;
21
- private change$$;
22
- get contexts(): ContextsList;
23
- set contexts(value: ContextsList);
24
- private _contexts;
25
- get selectedContext(): DetailedContext;
26
- set selectedContext(value: DetailedContext);
27
- private _selectedContext;
28
- get map(): IgoMap;
29
- set map(value: IgoMap);
30
- private _map;
31
- get defaultContextId(): string;
32
- set defaultContextId(value: string);
33
- private _defaultContextId;
34
- collapsed: {
35
- contextScope: any;
36
- }[];
37
- select: EventEmitter<DetailedContext>;
38
- unselect: EventEmitter<DetailedContext>;
39
- edit: EventEmitter<DetailedContext>;
40
- delete: EventEmitter<DetailedContext>;
41
- save: EventEmitter<DetailedContext>;
42
- clone: EventEmitter<DetailedContext>;
43
- create: EventEmitter<{
44
- title: string;
45
- empty: boolean;
46
- }>;
47
- hide: EventEmitter<DetailedContext>;
48
- show: EventEmitter<DetailedContext>;
49
- showHiddenContexts: EventEmitter<boolean>;
50
- favorite: EventEmitter<DetailedContext>;
51
- managePermissions: EventEmitter<DetailedContext>;
52
- manageTools: EventEmitter<DetailedContext>;
53
- filterPermissionsChanged: EventEmitter<ContextUserPermission[]>;
54
- titleMapping: {
55
- ours: string;
56
- shared: string;
57
- public: string;
58
- };
59
- users: ContextProfils[];
60
- permissions: ContextUserPermission[];
61
- actionStore: ActionStore;
62
- actionbarMode: ActionbarMode;
63
- color: string;
64
- showHidden: boolean;
65
- /**
66
- * Context filter term
67
- */
68
- set term(value: string);
69
- get term(): string;
70
- _term: string;
71
- get sortedAlpha(): boolean;
72
- set sortedAlpha(value: boolean);
73
- private _sortedAlpha;
74
- showContextFilter: ContextListControlsEnum;
75
- thresholdToFilter: number;
76
- constructor(cdRef: ChangeDetectorRef, configService: ConfigService, auth: AuthService, dialog: MatDialog, languageService: LanguageService, storageService: StorageService);
77
- ngOnInit(): void;
78
- private next;
79
- private filterContextsList;
80
- ngOnDestroy(): void;
81
- showFilter(): boolean;
82
- sortContextsList(contexts: ContextsList): any;
83
- normalize(str: string): string;
84
- toggleSort(sortAlpha: boolean): void;
85
- clearFilter(): void;
86
- createContext(empty?: boolean): void;
87
- getPermission(user?: any): ContextUserPermission;
88
- userSelection(user: any, parent?: any): void;
89
- hideContext(context: DetailedContext): void;
90
- showContext(context: DetailedContext): void;
91
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextListComponent, never>;
92
- static ɵcmp: i0.ɵɵComponentDeclaration<ContextListComponent, "igo-context-list", never, { "contexts": "contexts"; "selectedContext": "selectedContext"; "map": "map"; "defaultContextId": "defaultContextId"; "term": "term"; }, { "select": "select"; "unselect": "unselect"; "edit": "edit"; "delete": "delete"; "save": "save"; "clone": "clone"; "create": "create"; "hide": "hide"; "show": "show"; "showHiddenContexts": "showHiddenContexts"; "favorite": "favorite"; "managePermissions": "managePermissions"; "manageTools": "manageTools"; "filterPermissionsChanged": "filterPermissionsChanged"; }, never, never, false>;
93
- }
1
+ import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
2
+ import { AuthService } from '@igo2/auth';
3
+ import { ConfigService, LanguageService, StorageService } from '@igo2/core';
4
+ import type { IgoMap } from '@igo2/geo';
5
+ import { DetailedContext, ContextsList, ContextUserPermission, ContextProfils } from '../shared/context.interface';
6
+ import { ContextListControlsEnum } from './context-list.enum';
7
+ import { BehaviorSubject, ReplaySubject } from 'rxjs';
8
+ import { MatDialog } from '@angular/material/dialog';
9
+ import { ActionStore, ActionbarMode } from '@igo2/common';
10
+ import * as i0 from "@angular/core";
11
+ export declare class ContextListComponent implements OnInit, OnDestroy {
12
+ private cdRef;
13
+ configService: ConfigService;
14
+ auth: AuthService;
15
+ private dialog;
16
+ private languageService;
17
+ private storageService;
18
+ private contextsInitial;
19
+ contexts$: BehaviorSubject<ContextsList>;
20
+ change$: ReplaySubject<void>;
21
+ private change$$;
22
+ get contexts(): ContextsList;
23
+ set contexts(value: ContextsList);
24
+ private _contexts;
25
+ get selectedContext(): DetailedContext;
26
+ set selectedContext(value: DetailedContext);
27
+ private _selectedContext;
28
+ get map(): IgoMap;
29
+ set map(value: IgoMap);
30
+ private _map;
31
+ get defaultContextId(): string;
32
+ set defaultContextId(value: string);
33
+ private _defaultContextId;
34
+ collapsed: {
35
+ contextScope: any;
36
+ }[];
37
+ select: EventEmitter<DetailedContext>;
38
+ unselect: EventEmitter<DetailedContext>;
39
+ edit: EventEmitter<DetailedContext>;
40
+ delete: EventEmitter<DetailedContext>;
41
+ save: EventEmitter<DetailedContext>;
42
+ clone: EventEmitter<DetailedContext>;
43
+ create: EventEmitter<{
44
+ title: string;
45
+ empty: boolean;
46
+ }>;
47
+ hide: EventEmitter<DetailedContext>;
48
+ show: EventEmitter<DetailedContext>;
49
+ showHiddenContexts: EventEmitter<boolean>;
50
+ favorite: EventEmitter<DetailedContext>;
51
+ managePermissions: EventEmitter<DetailedContext>;
52
+ manageTools: EventEmitter<DetailedContext>;
53
+ filterPermissionsChanged: EventEmitter<ContextUserPermission[]>;
54
+ titleMapping: {
55
+ ours: string;
56
+ shared: string;
57
+ public: string;
58
+ };
59
+ users: ContextProfils[];
60
+ permissions: ContextUserPermission[];
61
+ actionStore: ActionStore;
62
+ actionbarMode: ActionbarMode;
63
+ color: string;
64
+ showHidden: boolean;
65
+ /**
66
+ * Context filter term
67
+ */
68
+ set term(value: string);
69
+ get term(): string;
70
+ _term: string;
71
+ get sortedAlpha(): boolean;
72
+ set sortedAlpha(value: boolean);
73
+ private _sortedAlpha;
74
+ showContextFilter: ContextListControlsEnum;
75
+ thresholdToFilter: number;
76
+ constructor(cdRef: ChangeDetectorRef, configService: ConfigService, auth: AuthService, dialog: MatDialog, languageService: LanguageService, storageService: StorageService);
77
+ ngOnInit(): void;
78
+ private next;
79
+ private filterContextsList;
80
+ ngOnDestroy(): void;
81
+ showFilter(): boolean;
82
+ sortContextsList(contexts: ContextsList): any;
83
+ normalize(str: string): string;
84
+ toggleSort(sortAlpha: boolean): void;
85
+ clearFilter(): void;
86
+ createContext(empty?: boolean): void;
87
+ getPermission(user?: any): ContextUserPermission;
88
+ userSelection(user: any, parent?: any): void;
89
+ hideContext(context: DetailedContext): void;
90
+ showContext(context: DetailedContext): void;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContextListComponent, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContextListComponent, "igo-context-list", never, { "contexts": { "alias": "contexts"; "required": false; }; "selectedContext": { "alias": "selectedContext"; "required": false; }; "map": { "alias": "map"; "required": false; }; "defaultContextId": { "alias": "defaultContextId"; "required": false; }; "term": { "alias": "term"; "required": false; }; }, { "select": "select"; "unselect": "unselect"; "edit": "edit"; "delete": "delete"; "save": "save"; "clone": "clone"; "create": "create"; "hide": "hide"; "show": "show"; "showHiddenContexts": "showHiddenContexts"; "favorite": "favorite"; "managePermissions": "managePermissions"; "manageTools": "manageTools"; "filterPermissionsChanged": "filterPermissionsChanged"; }, never, never, false, never>;
93
+ }
@@ -1,5 +1,5 @@
1
- export declare enum ContextListControlsEnum {
2
- always = "always",
3
- never = "never",
4
- default = "default"
5
- }
1
+ export declare enum ContextListControlsEnum {
2
+ always = "always",
3
+ never = "never",
4
+ default = "default"
5
+ }
@@ -0,0 +1,23 @@
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-density-config($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,2 +1,2 @@
1
- export * from './context-list.component';
2
- export * from './context-list-binding.directive';
1
+ export * from './context-list.component';
2
+ export * from './context-list-binding.directive';
@@ -1,37 +1,37 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./context-list/context-list.component";
4
- import * as i2 from "./context-list/context-list-binding.directive";
5
- import * as i3 from "./context-item/context-item.component";
6
- import * as i4 from "./context-form/context-form.component";
7
- import * as i5 from "./context-edit/context-edit.component";
8
- import * as i6 from "./context-edit/context-edit-binding.directive";
9
- import * as i7 from "./context-permissions/context-permissions.component";
10
- import * as i8 from "./context-permissions/context-permissions-binding.directive";
11
- import * as i9 from "./shared/map-context.directive";
12
- import * as i10 from "./shared/layer-context.directive";
13
- import * as i11 from "@angular/common";
14
- import * as i12 from "@angular/forms";
15
- import * as i13 from "@angular/material/form-field";
16
- import * as i14 from "@angular/material/input";
17
- import * as i15 from "@angular/material/icon";
18
- import * as i16 from "@angular/material/button";
19
- import * as i17 from "@angular/material/tooltip";
20
- import * as i18 from "@angular/material/list";
21
- import * as i19 from "@angular/material/checkbox";
22
- import * as i20 from "@angular/material/radio";
23
- import * as i21 from "@angular/material/dialog";
24
- import * as i22 from "@angular/material/menu";
25
- import * as i23 from "@angular/material/core";
26
- import * as i24 from "@angular/material/autocomplete";
27
- import * as i25 from "@igo2/auth";
28
- import * as i26 from "@igo2/common";
29
- import * as i27 from "@igo2/core";
30
- import * as i28 from "../context-import-export/context-import-export.module";
31
- import * as i29 from "../context-map-button/context-map-button.module";
32
- export declare class IgoContextManagerModule {
33
- static forRoot(): ModuleWithProviders<IgoContextManagerModule>;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextManagerModule, never>;
35
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextManagerModule, [typeof i1.ContextListComponent, typeof i2.ContextListBindingDirective, typeof i3.ContextItemComponent, typeof i4.ContextFormComponent, typeof i5.ContextEditComponent, typeof i6.ContextEditBindingDirective, typeof i7.ContextPermissionsComponent, typeof i8.ContextPermissionsBindingDirective, typeof i9.MapContextDirective, typeof i10.LayerContextDirective], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.MatFormFieldModule, typeof i14.MatInputModule, typeof i15.MatIconModule, typeof i16.MatButtonModule, typeof i17.MatTooltipModule, typeof i18.MatListModule, typeof i19.MatCheckboxModule, typeof i20.MatRadioModule, typeof i21.MatDialogModule, typeof i22.MatMenuModule, typeof i23.MatOptionModule, typeof i24.MatAutocompleteModule, typeof i25.IgoAuthModule, typeof i26.IgoListModule, typeof i26.IgoKeyValueModule, typeof i26.IgoCollapsibleModule, typeof i26.IgoStopPropagationModule, typeof i27.IgoLanguageModule, typeof i28.IgoContextImportExportModule, typeof i29.IgoContextMapButtonModule, typeof i26.IgoActionbarModule], [typeof i1.ContextListComponent, typeof i2.ContextListBindingDirective, typeof i3.ContextItemComponent, typeof i4.ContextFormComponent, typeof i5.ContextEditComponent, typeof i6.ContextEditBindingDirective, typeof i7.ContextPermissionsComponent, typeof i8.ContextPermissionsBindingDirective, typeof i9.MapContextDirective, typeof i10.LayerContextDirective]>;
36
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextManagerModule>;
37
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./context-list/context-list.component";
4
+ import * as i2 from "./context-list/context-list-binding.directive";
5
+ import * as i3 from "./context-item/context-item.component";
6
+ import * as i4 from "./context-form/context-form.component";
7
+ import * as i5 from "./context-edit/context-edit.component";
8
+ import * as i6 from "./context-edit/context-edit-binding.directive";
9
+ import * as i7 from "./context-permissions/context-permissions.component";
10
+ import * as i8 from "./context-permissions/context-permissions-binding.directive";
11
+ import * as i9 from "./shared/map-context.directive";
12
+ import * as i10 from "./shared/layer-context.directive";
13
+ import * as i11 from "@angular/common";
14
+ import * as i12 from "@angular/forms";
15
+ import * as i13 from "@angular/material/form-field";
16
+ import * as i14 from "@angular/material/input";
17
+ import * as i15 from "@angular/material/icon";
18
+ import * as i16 from "@angular/material/button";
19
+ import * as i17 from "@angular/material/tooltip";
20
+ import * as i18 from "@angular/material/list";
21
+ import * as i19 from "@angular/material/checkbox";
22
+ import * as i20 from "@angular/material/radio";
23
+ import * as i21 from "@angular/material/dialog";
24
+ import * as i22 from "@angular/material/menu";
25
+ import * as i23 from "@angular/material/core";
26
+ import * as i24 from "@angular/material/autocomplete";
27
+ import * as i25 from "@igo2/auth";
28
+ import * as i26 from "@igo2/common";
29
+ import * as i27 from "@igo2/core";
30
+ import * as i28 from "../context-import-export/context-import-export.module";
31
+ import * as i29 from "../context-map-button/context-map-button.module";
32
+ export declare class IgoContextManagerModule {
33
+ static forRoot(): ModuleWithProviders<IgoContextManagerModule>;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgoContextManagerModule, never>;
35
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoContextManagerModule, [typeof i1.ContextListComponent, typeof i2.ContextListBindingDirective, typeof i3.ContextItemComponent, typeof i4.ContextFormComponent, typeof i5.ContextEditComponent, typeof i6.ContextEditBindingDirective, typeof i7.ContextPermissionsComponent, typeof i8.ContextPermissionsBindingDirective, typeof i9.MapContextDirective, typeof i10.LayerContextDirective], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.MatFormFieldModule, typeof i14.MatInputModule, typeof i15.MatIconModule, typeof i16.MatButtonModule, typeof i17.MatTooltipModule, typeof i18.MatListModule, typeof i19.MatCheckboxModule, typeof i20.MatRadioModule, typeof i21.MatDialogModule, typeof i22.MatMenuModule, typeof i23.MatOptionModule, typeof i24.MatAutocompleteModule, typeof i25.IgoAuthModule, typeof i26.IgoListModule, typeof i26.IgoKeyValueModule, typeof i26.IgoCollapsibleModule, typeof i26.IgoStopPropagationModule, typeof i27.IgoLanguageModule, typeof i28.IgoContextImportExportModule, typeof i29.IgoContextMapButtonModule, typeof i26.IgoActionbarModule], [typeof i1.ContextListComponent, typeof i2.ContextListBindingDirective, typeof i3.ContextItemComponent, typeof i4.ContextFormComponent, typeof i5.ContextEditComponent, typeof i6.ContextEditBindingDirective, typeof i7.ContextPermissionsComponent, typeof i8.ContextPermissionsBindingDirective, typeof i9.MapContextDirective, typeof i10.LayerContextDirective]>;
36
+ static ɵinj: i0.ɵɵInjectorDeclaration<IgoContextManagerModule>;
37
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -1,23 +1,23 @@
1
- import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
2
- import { MessageService, LanguageService } from '@igo2/core';
3
- import { Context, ContextPermission } from '../shared/context.interface';
4
- import { ContextService } from '../shared/context.service';
5
- import { ContextPermissionsComponent } from './context-permissions.component';
6
- import * as i0 from "@angular/core";
7
- export declare class ContextPermissionsBindingDirective implements OnInit, OnDestroy {
8
- private contextService;
9
- private languageService;
10
- private messageService;
11
- private cd;
12
- private component;
13
- private editedContext$$;
14
- onAddPermission(permission: ContextPermission): void;
15
- onRemovePermission(permission: ContextPermission): void;
16
- onScopeChanged(context: Context): void;
17
- constructor(component: ContextPermissionsComponent, contextService: ContextService, languageService: LanguageService, messageService: MessageService, cd: ChangeDetectorRef);
18
- ngOnInit(): void;
19
- ngOnDestroy(): void;
20
- private handleEditedContextChange;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextPermissionsBindingDirective, [{ self: true; }, null, null, null, null]>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<ContextPermissionsBindingDirective, "[igoContextPermissionsBinding]", never, {}, {}, never, never, false>;
23
- }
1
+ import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
2
+ import { MessageService, LanguageService } from '@igo2/core';
3
+ import { Context, ContextPermission } from '../shared/context.interface';
4
+ import { ContextService } from '../shared/context.service';
5
+ import { ContextPermissionsComponent } from './context-permissions.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ContextPermissionsBindingDirective implements OnInit, OnDestroy {
8
+ private contextService;
9
+ private languageService;
10
+ private messageService;
11
+ private cd;
12
+ private component;
13
+ private editedContext$$;
14
+ onAddPermission(permission: ContextPermission): void;
15
+ onRemovePermission(permission: ContextPermission): void;
16
+ onScopeChanged(context: Context): void;
17
+ constructor(component: ContextPermissionsComponent, contextService: ContextService, languageService: LanguageService, messageService: MessageService, cd: ChangeDetectorRef);
18
+ ngOnInit(): void;
19
+ ngOnDestroy(): void;
20
+ private handleEditedContextChange;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContextPermissionsBindingDirective, [{ self: true; }, null, null, null, null]>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ContextPermissionsBindingDirective, "[igoContextPermissionsBinding]", never, {}, {}, never, never, false, never>;
23
+ }
@@ -1,40 +1,40 @@
1
- import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
2
- import { UntypedFormBuilder, UntypedFormGroup, UntypedFormControl } from '@angular/forms';
3
- import { Context, ContextPermission, ContextPermissionsList, ContextProfils } from '../shared/context.interface';
4
- import { HttpClient } from '@angular/common/http';
5
- import { Subscription } from 'rxjs';
6
- import { AuthService } from '@igo2/auth';
7
- import { ConfigService } from '@igo2/core';
8
- import * as i0 from "@angular/core";
9
- export declare class ContextPermissionsComponent implements OnInit {
10
- private formBuilder;
11
- private cd;
12
- private http;
13
- authService: AuthService;
14
- private config;
15
- form: UntypedFormGroup;
16
- get context(): Context;
17
- set context(value: Context);
18
- private _context;
19
- get permissions(): ContextPermissionsList;
20
- set permissions(value: ContextPermissionsList);
21
- private _permissions;
22
- get profils(): ContextProfils[];
23
- set profils(value: ContextProfils[]);
24
- private _profils;
25
- get canWrite(): boolean;
26
- private baseUrlProfils;
27
- formControl: UntypedFormControl;
28
- formValueChanges$$: Subscription;
29
- addPermission: EventEmitter<ContextPermission>;
30
- removePermission: EventEmitter<ContextPermission>;
31
- scopeChanged: EventEmitter<Context>;
32
- constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, http: HttpClient, authService: AuthService, config: ConfigService);
33
- ngOnInit(): void;
34
- displayFn(profil?: ContextProfils): string | undefined;
35
- handleFormSubmit(value: any): void;
36
- private buildForm;
37
- onProfilSelected(value: any): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextPermissionsComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<ContextPermissionsComponent, "igo-context-permissions", never, { "context": "context"; "permissions": "permissions"; }, { "addPermission": "addPermission"; "removePermission": "removePermission"; "scopeChanged": "scopeChanged"; }, never, never, false>;
40
- }
1
+ import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
2
+ import { UntypedFormBuilder, UntypedFormGroup, UntypedFormControl } from '@angular/forms';
3
+ import { Context, ContextPermission, ContextPermissionsList, ContextProfils } from '../shared/context.interface';
4
+ import { HttpClient } from '@angular/common/http';
5
+ import { Subscription } from 'rxjs';
6
+ import { AuthService } from '@igo2/auth';
7
+ import { ConfigService } from '@igo2/core';
8
+ import * as i0 from "@angular/core";
9
+ export declare class ContextPermissionsComponent implements OnInit {
10
+ private formBuilder;
11
+ private cd;
12
+ private http;
13
+ authService: AuthService;
14
+ private config;
15
+ form: UntypedFormGroup;
16
+ get context(): Context;
17
+ set context(value: Context);
18
+ private _context;
19
+ get permissions(): ContextPermissionsList;
20
+ set permissions(value: ContextPermissionsList);
21
+ private _permissions;
22
+ get profils(): ContextProfils[];
23
+ set profils(value: ContextProfils[]);
24
+ private _profils;
25
+ get canWrite(): boolean;
26
+ private baseUrlProfils;
27
+ formControl: UntypedFormControl;
28
+ formValueChanges$$: Subscription;
29
+ addPermission: EventEmitter<ContextPermission>;
30
+ removePermission: EventEmitter<ContextPermission>;
31
+ scopeChanged: EventEmitter<Context>;
32
+ constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, http: HttpClient, authService: AuthService, config: ConfigService);
33
+ ngOnInit(): void;
34
+ displayFn(profil?: ContextProfils): string | undefined;
35
+ handleFormSubmit(value: any): void;
36
+ private buildForm;
37
+ onProfilSelected(value: any): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContextPermissionsComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<ContextPermissionsComponent, "igo-context-permissions", never, { "context": { "alias": "context"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; }, { "addPermission": "addPermission"; "removePermission": "removePermission"; "scopeChanged": "scopeChanged"; }, never, never, false, never>;
40
+ }
@@ -1,2 +1,2 @@
1
- export * from './context-permissions.component';
2
- export * from './context-permissions-binding.directive';
1
+ export * from './context-permissions.component';
2
+ export * from './context-permissions-binding.directive';
@@ -1,6 +1,6 @@
1
- export * from './shared';
2
- export * from './context-list';
3
- export * from './context-item';
4
- export * from './context-form';
5
- export * from './context-edit';
6
- export * from './context-permissions';
1
+ export * from './shared';
2
+ export * from './context-list';
3
+ export * from './context-item';
4
+ export * from './context-form';
5
+ export * from './context-edit';
6
+ export * from './context-permissions';
@@ -1,10 +1,10 @@
1
- export declare enum TypePermission {
2
- null = 0,
3
- read = 1,
4
- write = 2
5
- }
6
- export declare enum Scope {
7
- public = 0,
8
- protected = 1,
9
- private = 2
10
- }
1
+ export declare enum TypePermission {
2
+ null = 0,
3
+ read = 1,
4
+ write = 2
5
+ }
6
+ export declare enum Scope {
7
+ public = 0,
8
+ protected = 1,
9
+ private = 2
10
+ }