@provoly/dashboard 0.11.9 → 0.12.0

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 (34) hide show
  1. package/esm2022/dataset/components/dataset.component.mjs +3 -2
  2. package/esm2022/lib/core/core.module.mjs +5 -10
  3. package/esm2022/lib/core/public-api.mjs +1 -2
  4. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +8 -8
  5. package/esm2022/presentation/components/presentation.component.mjs +4 -4
  6. package/esm2022/presentation/components/title-presentation/title-presentation.component.mjs +33 -0
  7. package/esm2022/presentation/presentation.module.mjs +28 -11
  8. package/esm2022/presentation/public-api.mjs +2 -1
  9. package/esm2022/presentation/style/css.component.mjs +2 -2
  10. package/esm2022/restitution/components/restitution-list/restitution-list.component.mjs +15 -9
  11. package/esm2022/restitution/style/css.component.mjs +2 -2
  12. package/esm2022/search/search-home/search-home.component.mjs +3 -3
  13. package/esm2022/toolbox/components/save-view/save-view.component.mjs +4 -4
  14. package/fesm2022/provoly-dashboard-dataset.mjs +1 -0
  15. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  16. package/fesm2022/provoly-dashboard-presentation.mjs +66 -25
  17. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  18. package/fesm2022/provoly-dashboard-restitution.mjs +16 -10
  19. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  20. package/fesm2022/provoly-dashboard-search.mjs +2 -2
  21. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  22. package/fesm2022/provoly-dashboard-toolbox.mjs +3 -3
  23. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  24. package/fesm2022/provoly-dashboard.mjs +134 -157
  25. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  26. package/lib/core/core.module.d.ts +11 -12
  27. package/lib/core/public-api.d.ts +0 -1
  28. package/package.json +1 -1
  29. package/{lib/core → presentation}/components/title-presentation/title-presentation.component.d.ts +3 -2
  30. package/presentation/presentation.module.d.ts +4 -3
  31. package/presentation/public-api.d.ts +1 -0
  32. package/presentation/style/_o-pry-presentation.scss +34 -1
  33. package/restitution/components/restitution-list/restitution-list.component.d.ts +5 -5
  34. package/esm2022/lib/core/components/title-presentation/title-presentation.component.mjs +0 -26
@@ -12,17 +12,16 @@ import * as i8 from "./components/nq-color-selector/nq-color-selector.component"
12
12
  import * as i9 from "./access/access.directive";
13
13
  import * as i10 from "./components/upload/upload.component";
14
14
  import * as i11 from "./components/select-image/select-image.component";
15
- import * as i12 from "./components/title-presentation/title-presentation.component";
16
- import * as i13 from "@angular/common";
17
- import * as i14 from "@angular/router";
18
- import * as i15 from "@angular/common/http";
19
- import * as i16 from "@ngrx/store";
20
- import * as i17 from "@ngrx/effects";
21
- import * as i18 from "./components/icon/icon.module";
22
- import * as i19 from "@angular/cdk/overlay";
23
- import * as i20 from "./components/overlay/overlay.module";
24
- import * as i21 from "./i18n/i18n.module";
25
- import * as i22 from "./components/modalStatus/modalStatus.module";
15
+ import * as i12 from "@angular/common";
16
+ import * as i13 from "@angular/router";
17
+ import * as i14 from "@angular/common/http";
18
+ import * as i15 from "@ngrx/store";
19
+ import * as i16 from "@ngrx/effects";
20
+ import * as i17 from "./components/icon/icon.module";
21
+ import * as i18 from "@angular/cdk/overlay";
22
+ import * as i19 from "./components/overlay/overlay.module";
23
+ import * as i20 from "./i18n/i18n.module";
24
+ import * as i21 from "./components/modalStatus/modalStatus.module";
26
25
  export declare class PryCoreModule {
27
26
  private pryTranslateService;
28
27
  constructor(pryTranslateService: PryI18nService);
@@ -31,6 +30,6 @@ export declare class PryCoreModule {
31
30
  guardProvider?: Provider;
32
31
  }): ModuleWithProviders<PryCoreModule>;
33
32
  static ɵfac: i0.ɵɵFactoryDeclaration<PryCoreModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.BaseToolboxActionComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.PryTitlePresentationComponent], [typeof i13.CommonModule, typeof i14.RouterModule, typeof i15.HttpClientModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i18.PryIconModule, typeof i19.OverlayModule, typeof i20.PryOverlayModule, typeof i21.PryI18nModule, typeof i22.PryModalStatusModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.PryTitlePresentationComponent]>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.BaseToolboxActionComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent], [typeof i12.CommonModule, typeof i13.RouterModule, typeof i14.HttpClientModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i17.PryIconModule, typeof i18.OverlayModule, typeof i19.PryOverlayModule, typeof i20.PryI18nModule, typeof i21.PryModalStatusModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent]>;
35
34
  static ɵinj: i0.ɵɵInjectorDeclaration<PryCoreModule>;
36
35
  }
@@ -107,7 +107,6 @@ export * from './i18n/i18n.service';
107
107
  export * from './i18n/fr.translations';
108
108
  export * from './i18n/en.translations';
109
109
  export * from './i18n/deep-merge.function';
110
- export * from './components/title-presentation/title-presentation.component';
111
110
  export * from './errors/http-error-interceptor.service';
112
111
  export * from './components/modalStatus/modalStatus.component';
113
112
  export * from './components/modalStatus/modalStatus.module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.11.9",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -1,11 +1,12 @@
1
1
  import { Store } from '@ngrx/store';
2
2
  import { Observable } from 'rxjs';
3
- import { PryI18nService } from '../../i18n/i18n.service';
3
+ import { ManifestDescription, PryI18nService } from '@provoly/dashboard';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class PryTitlePresentationComponent {
6
6
  private store;
7
7
  private i18nService;
8
- presentationTitle$: Observable<string>;
8
+ presentation$: Observable<ManifestDescription | null>;
9
+ presentationTitle$: Observable<string | null>;
9
10
  constructor(store: Store, i18nService: PryI18nService);
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PryTitlePresentationComponent, never>;
11
12
  static ɵcmp: i0.ɵɵComponentDeclaration<PryTitlePresentationComponent, "pry-title-presentation", never, {}, {}, never, never, false, never>;
@@ -2,17 +2,18 @@ import { PryI18nService } from '@provoly/dashboard';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./components/presentation.component";
4
4
  import * as i2 from "./components/add-edit-presentation/add-edit-presentation.component";
5
- import * as i3 from "./style/css.component";
6
- import * as i4 from "@angular/common";
5
+ import * as i3 from "./components/title-presentation/title-presentation.component";
6
+ import * as i4 from "./style/css.component";
7
7
  import * as i5 from "@provoly/dashboard";
8
8
  import * as i6 from "@angular/forms";
9
9
  import * as i7 from "@provoly/dashboard/components/sinceDate";
10
10
  import * as i8 from "@provoly/dashboard/toolbox";
11
11
  import * as i9 from "@provoly/dashboard/components/checkbox";
12
+ import * as i10 from "@angular/common";
12
13
  export declare class PryPresentationModule {
13
14
  private pryTranslateService;
14
15
  constructor(pryTranslateService: PryI18nService);
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryPresentationCssComponent], [typeof i4.CommonModule, typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryPresentationCssComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule, typeof i10.CommonModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
17
18
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPresentationModule>;
18
19
  }
@@ -1,4 +1,5 @@
1
1
  export * from './presentation.module';
2
2
  export * from './components/presentation.component';
3
3
  export * from './components/add-edit-presentation/add-edit-presentation.component';
4
+ export * from './components/title-presentation/title-presentation.component';
4
5
  export * from './style/css.component';
@@ -2,6 +2,12 @@
2
2
 
3
3
  /* Organism - pry-presentation */
4
4
 
5
+ .o-manifest-layout__toolbox {
6
+ div:first-child {
7
+ margin-left: auto;
8
+ }
9
+ }
10
+
5
11
  .o-manifest-layout__content {
6
12
  height: 100%;
7
13
 
@@ -127,7 +133,7 @@
127
133
 
128
134
  .description-tooltip {
129
135
  position: absolute;
130
- width: 100%;
136
+ max-width: 50vw;
131
137
  visibility: hidden;
132
138
  background-color: #fff;
133
139
  padding: 20px;
@@ -142,3 +148,30 @@
142
148
  transition: opacity 0.2s ease;
143
149
  opacity: 1;
144
150
  }
151
+
152
+ .title-tooltip {
153
+ transform: translateY(4rem);
154
+ }
155
+
156
+ h1.a-presentation-title {
157
+ font-size: 16px;
158
+ padding-right: 20px;
159
+ }
160
+
161
+ .title-container {
162
+ display: flex;
163
+ }
164
+
165
+ .info-icon {
166
+ position: relative;
167
+ width: 1.5rem;
168
+ height: 1.5rem;
169
+ border-radius: 50%;
170
+ background-color: #ccc;
171
+ cursor: pointer;
172
+ display: inline-flex;
173
+ justify-content: center;
174
+ align-items: center;
175
+ align-self: center;
176
+ margin-right: 1rem;
177
+ }
@@ -8,6 +8,9 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
8
8
  private toolboxManifestService;
9
9
  private store;
10
10
  showTabs: boolean;
11
+ get customModels(): string[];
12
+ set customModels(models: string[]);
13
+ private _customModels;
11
14
  search$: BehaviorSubject<string>;
12
15
  type$: BehaviorSubject<string | undefined>;
13
16
  filteredWidgets$: Observable<CatalogEntry[]>;
@@ -21,10 +24,7 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
21
24
  selectedRestitution: Widget | null;
22
25
  mode: typeof ViewMode;
23
26
  selectedMode: ViewMode;
24
- categories: {
25
- label: string;
26
- color: string;
27
- }[];
27
+ categories: string[];
28
28
  categoryOpened: string;
29
29
  PryVisibilityType: typeof PryVisibilityType;
30
30
  constructor(toolboxMenuService: ToolboxMenuService, translateService: PryI18nService, toolboxManifestService: ToolboxManifestService, store: Store);
@@ -33,5 +33,5 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
33
33
  closeRestitution(): void;
34
34
  toggle(category: string): void;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionListComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionListComponent, "pry-catalog", never, { "showTabs": { "alias": "showTabs"; "required": false; }; }, {}, never, never, false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionListComponent, "pry-catalog", never, { "showTabs": { "alias": "showTabs"; "required": false; }; "customModels": { "alias": "customModels"; "required": false; }; }, {}, never, never, false, never>;
37
37
  }
@@ -1,26 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { combineLatest, map } from 'rxjs';
3
- import { DashboardSelectors } from '../../../dashboard/store/dashboard.selectors';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@ngrx/store";
6
- import * as i2 from "../../i18n/i18n.service";
7
- import * as i3 from "@angular/common";
8
- export class PryTitlePresentationComponent {
9
- constructor(store, i18nService) {
10
- this.store = store;
11
- this.i18nService = i18nService;
12
- this.presentationTitle$ = combineLatest([this.store.select(DashboardSelectors.presentation)]).pipe(map(([presentation]) => {
13
- if (presentation.current) {
14
- return presentation.current.name;
15
- }
16
- return this.i18nService.instant('@pry.header.noCurrentPresentation');
17
- }));
18
- }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryTitlePresentationComponent, deps: [{ token: i1.Store }, { token: i2.PryI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
20
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: PryTitlePresentationComponent, selector: "pry-title-presentation", ngImport: i0, template: "<div>\n <h1 class=\"a-h1 a-presentation-title\">{{ presentationTitle$ | async }}</h1>\n</div>\n", dependencies: [{ kind: "pipe", type: i3.AsyncPipe, name: "async" }] }); }
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryTitlePresentationComponent, decorators: [{
23
- type: Component,
24
- args: [{ selector: 'pry-title-presentation', template: "<div>\n <h1 class=\"a-h1 a-presentation-title\">{{ presentationTitle$ | async }}</h1>\n</div>\n" }]
25
- }], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.PryI18nService }]; } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGl0bGUtcHJlc2VudGF0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Byb3Zv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