@provoly/dashboard 0.11.7 → 0.11.9

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 (35) hide show
  1. package/esm2022/admin/components/admin-fields/store/fields.effects.mjs +3 -2
  2. package/esm2022/lib/dashboard/store/dashboard-init.service.mjs +11 -7
  3. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +3 -3
  4. package/esm2022/presentation/components/presentation.component.mjs +6 -4
  5. package/esm2022/presentation/style/css.component.mjs +2 -2
  6. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  7. package/esm2022/restitution/components/restitution-list/restitution-list.component.mjs +26 -32
  8. package/esm2022/restitution/components/restitution-list-item/restitution-list-item.component.mjs +50 -0
  9. package/esm2022/restitution/i18n/fr.translations.mjs +6 -2
  10. package/esm2022/restitution/public-api.mjs +2 -1
  11. package/esm2022/restitution/restitution.module.mjs +16 -5
  12. package/esm2022/restitution/style/css.component.mjs +2 -2
  13. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +8 -4
  14. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  15. package/fesm2022/provoly-dashboard-admin.mjs +2 -1
  16. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  17. package/fesm2022/provoly-dashboard-presentation.mjs +9 -7
  18. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  19. package/fesm2022/provoly-dashboard-restitution.mjs +96 -46
  20. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  21. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +9 -5
  22. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard.mjs +10 -6
  24. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/presentation/style/_o-pry-presentation.scss +51 -0
  27. package/restitution/components/restitution-list/restitution-list.component.d.ts +12 -8
  28. package/restitution/components/restitution-list-item/restitution-list-item.component.d.ts +21 -0
  29. package/restitution/i18n/fr.translations.d.ts +4 -0
  30. package/restitution/public-api.d.ts +1 -0
  31. package/restitution/restitution.module.d.ts +10 -9
  32. package/restitution/style/_o-restitution-list.scss +37 -2
  33. package/styles-theme/components-theme/_o-restitution-list.theme.scss +15 -0
  34. package/widgets/widget-map/component/widget-map.component.d.ts +2 -0
  35. package/widgets/widget-map/style/_o-layer-legend.scss +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.11.7",
3
+ "version": "0.11.9",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -91,3 +91,54 @@
91
91
  width: 100%;
92
92
  padding: toRem(15);
93
93
  }
94
+
95
+
96
+ .description-container {
97
+ position: relative;
98
+ width: 100%;
99
+ }
100
+
101
+ .description {
102
+ white-space: nowrap;
103
+ text-overflow: ellipsis;
104
+ overflow: hidden;
105
+ display: inherit;
106
+ position: relative;
107
+ line-height: 2rem;
108
+ box-sizing: border-box;
109
+ pointer-events:none;
110
+ }
111
+
112
+ .description:after {
113
+ content:"";
114
+ display: block;
115
+ position: absolute;
116
+ top: 0;
117
+ right: 0;
118
+ width: 40px;
119
+ height: 48px;
120
+ z-index: 1;
121
+ pointer-events:initial;
122
+ }
123
+
124
+ .description:hover:after{
125
+ cursor: pointer;
126
+ }
127
+
128
+ .description-tooltip {
129
+ position: absolute;
130
+ width: 100%;
131
+ visibility: hidden;
132
+ background-color: #fff;
133
+ padding: 20px;
134
+ -webkit-box-shadow: 0 0 50px 0 rgba(0,0,0,0.3);
135
+ opacity: 0;
136
+ transition: opacity 0.5s ease;
137
+ z-index: 2;
138
+ }
139
+
140
+ .description:hover + .description-tooltip {
141
+ visibility: visible;
142
+ transition: opacity 0.2s ease;
143
+ opacity: 1;
144
+ }
@@ -7,9 +7,12 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
7
7
  private translateService;
8
8
  private toolboxManifestService;
9
9
  private store;
10
+ showTabs: boolean;
10
11
  search$: BehaviorSubject<string>;
11
12
  type$: BehaviorSubject<string | undefined>;
12
13
  filteredWidgets$: Observable<CatalogEntry[]>;
14
+ nonCustomWidgets$: Observable<CatalogEntry[]>;
15
+ customWidgets$: Observable<CatalogEntry[]>;
13
16
  types$: Observable<{
14
17
  icon: string;
15
18
  label: string;
@@ -18,16 +21,17 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
18
21
  selectedRestitution: Widget | null;
19
22
  mode: typeof ViewMode;
20
23
  selectedMode: ViewMode;
21
- catalog: Widget[] | undefined;
22
- automaticGridMode$: Observable<boolean>;
23
- modeAuto: boolean;
24
+ categories: {
25
+ label: string;
26
+ color: string;
27
+ }[];
28
+ categoryOpened: string;
24
29
  PryVisibilityType: typeof PryVisibilityType;
25
30
  constructor(toolboxMenuService: ToolboxMenuService, translateService: PryI18nService, toolboxManifestService: ToolboxManifestService, store: Store);
26
- dragStart($event: DragEvent, type: string): void;
27
31
  selectMode(newMode: ViewMode): void;
28
- selectRestitution(catalogEntry: CatalogEntry): void;
29
- closeRestitution($event: void): void;
30
- viewInDashboard(widget: CatalogEntry): void;
32
+ selectRestitution($event: Widget): void;
33
+ closeRestitution(): void;
34
+ toggle(category: string): void;
31
35
  static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionListComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionListComponent, "pry-catalog", never, {}, {}, never, never, false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionListComponent, "pry-catalog", never, { "showTabs": { "alias": "showTabs"; "required": false; }; }, {}, never, never, false, never>;
33
37
  }
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { CatalogEntry, PryVisibilityType, SubscriptionnerDirective, ToolboxManifestService, Widget } from '@provoly/dashboard';
3
+ import { Observable } from 'rxjs';
4
+ import { Store } from '@ngrx/store';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PryRestitutionListItemComponent extends SubscriptionnerDirective {
7
+ private store;
8
+ private toolboxManifestService;
9
+ widget: CatalogEntry;
10
+ selectRestitution: EventEmitter<Widget>;
11
+ catalog: Widget[] | undefined;
12
+ automaticGridMode$: Observable<boolean>;
13
+ automaticGridMode: boolean;
14
+ PryVisibilityType: typeof PryVisibilityType;
15
+ constructor(store: Store, toolboxManifestService: ToolboxManifestService);
16
+ dragStart($event: DragEvent, type: string): void;
17
+ emitSelectedRestitution(catalogEntry: CatalogEntry): void;
18
+ viewInDashboard(widget: CatalogEntry): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionListItemComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionListItemComponent, "pry-catalog-item", never, { "widget": { "alias": "widget"; "required": false; }; }, { "selectRestitution": "selectRestitution"; }, never, never, false, never>;
21
+ }
@@ -38,6 +38,10 @@ export declare const frTranslations: {
38
38
  update: string;
39
39
  cover: string;
40
40
  noDataSourceSelected: string;
41
+ catalogTabs: {
42
+ model: string;
43
+ noModel: string;
44
+ };
41
45
  };
42
46
  };
43
47
  };
@@ -1,4 +1,5 @@
1
1
  export * from './restitution.module';
2
2
  export * from './components/restitution-list/restitution-list.component';
3
+ export * from './components/restitution-list-item/restitution-list-item.component';
3
4
  export * from './components/restitution/restitution.component';
4
5
  export * from './components/restitution-catalog/restitution-catalog.component';
@@ -4,18 +4,19 @@ import * as i1 from "./components/restitution-list/restitution-list.component";
4
4
  import * as i2 from "./components/restitution/restitution.component";
5
5
  import * as i3 from "./style/css.component";
6
6
  import * as i4 from "./components/restitution-catalog/restitution-catalog.component";
7
- import * as i5 from "@angular/common";
8
- import * as i6 from "@provoly/dashboard";
9
- import * as i7 from "@angular/forms";
10
- import * as i8 from "@provoly/dashboard/components/stepper";
11
- import * as i9 from "@provoly/dashboard/search";
12
- import * as i10 from "@provoly/dashboard/components/card";
13
- import * as i11 from "@provoly/dashboard/components/checkbox";
14
- import * as i12 from "@provoly/dashboard/components/sinceDate";
7
+ import * as i5 from "./components/restitution-list-item/restitution-list-item.component";
8
+ import * as i6 from "@angular/common";
9
+ import * as i7 from "@provoly/dashboard";
10
+ import * as i8 from "@angular/forms";
11
+ import * as i9 from "@provoly/dashboard/components/stepper";
12
+ import * as i10 from "@provoly/dashboard/search";
13
+ import * as i11 from "@provoly/dashboard/components/card";
14
+ import * as i12 from "@provoly/dashboard/components/checkbox";
15
+ import * as i13 from "@provoly/dashboard/components/sinceDate";
15
16
  export declare class PryRestitutionModule {
16
17
  private pryTranslateService;
17
18
  constructor(pryTranslateService: PryI18nService);
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryRestitutionModule, [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i3.PryCatalogCssComponent, typeof i4.PryRestitutionCatalogComponent], [typeof i5.CommonModule, typeof i6.PryCoreModule, typeof i6.PryIconModule, typeof i7.FormsModule, typeof i8.PryStepperModule, typeof i6.PrySelectModule, typeof i6.PryDashboardModule, typeof i6.PryShareModule, typeof i9.PrySearchModule, typeof i6.PryI18nModule, typeof i10.PryCardModule, typeof i11.PryCheckboxModule, typeof i6.PryOverlayModule, typeof i12.PrySinceDateModule], [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i4.PryRestitutionCatalogComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryRestitutionModule, [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i3.PryCatalogCssComponent, typeof i4.PryRestitutionCatalogComponent, typeof i5.PryRestitutionListItemComponent], [typeof i6.CommonModule, typeof i7.PryCoreModule, typeof i7.PryIconModule, typeof i8.FormsModule, typeof i9.PryStepperModule, typeof i7.PrySelectModule, typeof i7.PryDashboardModule, typeof i7.PryShareModule, typeof i10.PrySearchModule, typeof i7.PryI18nModule, typeof i11.PryCardModule, typeof i12.PryCheckboxModule, typeof i7.PryOverlayModule, typeof i13.PrySinceDateModule], [typeof i1.PryRestitutionListComponent, typeof i2.PryRestitutionComponent, typeof i4.PryRestitutionCatalogComponent, typeof i5.PryRestitutionListItemComponent]>;
20
21
  static ɵinj: i0.ɵɵInjectorDeclaration<PryRestitutionModule>;
21
22
  }
@@ -96,6 +96,10 @@
96
96
  cursor: pointer;
97
97
  }
98
98
 
99
+ pry-catalog-item {
100
+ max-height: toRem(210);
101
+ }
102
+
99
103
  &__item {
100
104
  position: relative;
101
105
  display: flex;
@@ -103,7 +107,7 @@
103
107
  justify-content: space-between;
104
108
  align-items: center;
105
109
  max-width: toRem(130);
106
- max-height: toRem(210);
110
+ height: 100%;
107
111
  text-align: center;
108
112
  cursor: move;
109
113
 
@@ -141,7 +145,6 @@
141
145
 
142
146
  &__action {
143
147
  width: 100%;
144
- margin-top: auto;
145
148
  padding: toRem(6) toRem(10);
146
149
  text-align: center;
147
150
 
@@ -158,4 +161,36 @@
158
161
  width: fit-content;
159
162
  margin-bottom: 1rem;
160
163
  }
164
+
165
+ .o-accordion {
166
+ &__title {
167
+ position: relative;
168
+ border-bottom-style: solid;
169
+ border-bottom-width: toRem(1);
170
+
171
+ // Border left colored
172
+ &:before {
173
+ content: '';
174
+ position: absolute;
175
+ left: 0;
176
+ top: 0;
177
+ bottom: 0;
178
+ width: 3px;
179
+ }
180
+
181
+ &:first-child {
182
+ border-top-style: solid;
183
+ border-top-width: toRem(1);
184
+ margin-top: toRem(10);
185
+ }
186
+
187
+ &__btn {
188
+ width: 100%;
189
+ height: 70%;
190
+ padding: 0;
191
+ text-transform: uppercase;
192
+ text-align: left;
193
+ }
194
+ }
195
+ }
161
196
  }
@@ -24,4 +24,19 @@
24
24
  }
25
25
  }
26
26
  }
27
+
28
+ .o-accordion {
29
+ &__title {
30
+ border-top-color: themed($theme-map, 'color', 'primary', 300);
31
+ border-bottom-color: themed($theme-map, 'color', 'primary', 300);
32
+
33
+ &:before {
34
+ background-color: themed($theme-map, 'color', 'accent', 600);
35
+ }
36
+
37
+ &__btn pry-icon {
38
+ color: themed($theme-map, 'color', 'accent', 600);
39
+ }
40
+ }
41
+ }
27
42
  }
@@ -66,6 +66,8 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
66
66
  legendTabOpen: boolean;
67
67
  legendTab: number;
68
68
  legendLayers$: Observable<(MapGeoServerLayerOptions | MapWMSLayerLayerOptions)[]>;
69
+ legendTop$: Observable<number>;
70
+ legendHeight$: Observable<number>;
69
71
  imageNotProvided: boolean[];
70
72
  basicActions$: Observable<('click' | 'lasso' | 'rectangle' | 'zoom' | 'move' | 'export' | 'upload')[]>;
71
73
  zoomAndCenter$: BehaviorSubject<{
@@ -2,8 +2,8 @@
2
2
 
3
3
  .m-layer-legend {
4
4
  z-index: 2;
5
- top: toRem(225);
6
5
  left: toRem(8);
6
+ overflow: hidden;
7
7
 
8
8
  &.ol-control {
9
9
  border: 1px solid #bccad8;
@@ -33,6 +33,7 @@
33
33
 
34
34
  &__image {
35
35
  background: white;
36
+ overflow: scroll;
36
37
  }
37
38
 
38
39
  &__error {